Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Creating a new field similar to $Content


5 Posts   1488 Views


31 May 2008 at 12:03am (Last edited: 3 June 2008 11:43pm), Community Member, 78 Posts

Hi, I am currently working on my first CMS website using SS and at the moment I do not have a great knowledge of PHP.

I am trying to create a new field which I want to use for a specific page type (an article holder) that would allow me to add an image to it just like $Content

Any ideas?


31 May 2008 at 8:05am Community Member, 787 Posts

Use a HTMLEditorField.

See :

Good luck !


3 June 2008 at 11:38pm Community Member, 78 Posts

Ok that does seem to be what I am looking for but where would i place the snippet of code in my headlinearticlepage.php file, would i need any other code as well and where would that go.

So basically what i am trying to do is create a headline news item which sits at the top of my article holder page with the other stories below. This headline story will sit in its own div with an image to the left and the article headline, sub-header, date and content paragraph to the right of the image. So the other HTMLEditorField that i want to add will be where I insert the image so i can draw from it separately to the $content feild.

Does this sound like a feasible idea/method of approach?

Hope that makes sense : )


4 June 2008 at 12:17am Community Member, 787 Posts

Sounds like you need to take a thorough look the tutorials. ;-)

Isn't it enough adding a separate imagefield to your holderpage to get the result you want ?

If I understand correctly, you want to create a list of news-items with 1 main (feature)-article on top of that page ?


4 June 2008 at 2:03am (Last edited: 4 June 2008 2:04am), Community Member, 78 Posts

Ok, ok, my bad. 2 cut a long story short I skipped the staff tutorials because I worked through them last year but couldn't grasp making a template so left SS until recently, and then i only did the tutorials i thought relevant.

Excuses eh!

But thanks for the push in the right direction - much appreciated. And yes thats correct.