custom content fields

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
seriousmedia
Forum Members
Forum Members
Posts: 11
Joined: Thu Jan 31, 2008 12:39 pm

custom content fields

Post by seriousmedia »

Is there an easy way of creating additional fields for a content-page, so users can edit these through the ususal edit-content page?
I guess i have to create a module myself that creates a custom content-type (like the catalog module)?

Any other ways to do this?

greetings,

Ramon van de Laar
www.seriousmedia.nl
Nick Smart
Forum Members
Forum Members
Posts: 116
Joined: Mon Jul 28, 2008 4:48 pm
Location: Cambridge, UK

Re: custom content fields

Post by Nick Smart »

Just add this to your template:

Code: Select all

{content block="somename"}
and then any page you edit using that template will have an extra content area.

Nick
seriousmedia
Forum Members
Forum Members
Posts: 11
Joined: Thu Jan 31, 2008 12:39 pm

Re: custom content fields

Post by seriousmedia »

Great,

is there any way to type (single line input-field) the fields of is it always a textarea?
Nick Smart
Forum Members
Forum Members
Posts: 116
Joined: Mon Jul 28, 2008 4:48 pm
Location: Cambridge, UK

Re: custom content fields

Post by Nick Smart »

Yes (and I learnt something new too).

Read the help for the content tag - "Extensions - Tags - Content" in the admin menu. Set the parameter to =1 or ="1" to set it to true.

Nick
seriousmedia
Forum Members
Forum Members
Posts: 11
Joined: Thu Jan 31, 2008 12:39 pm

Re: custom content fields

Post by seriousmedia »

Found it!  ;D

{content block='block name' oneline=true} should work fine!

greetings,

Ramon van de Laar
www.seriousmedia.nl
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: custom content fields

Post by Dr.CSS »

Really if you would have just read the content of every page in the default install you would have found all this and more...

WHY oh why, can anyone tell me, does it seem like no one reads all the pages that come with a default install, it talks about all the modules, tags, menus, all kinds of stuff about cmsms that I see questions about daily...

They might as well just fill the pages with lipsum corum....
Post Reply

Return to “Developers Discussion”