Page 1 of 1

custom content fields

Posted: Fri Aug 29, 2008 8:51 am
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

Re: custom content fields

Posted: Fri Aug 29, 2008 9:04 am
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

Re: custom content fields

Posted: Fri Aug 29, 2008 9:20 am
by seriousmedia
Great,

is there any way to type (single line input-field) the fields of is it always a textarea?

Re: custom content fields

Posted: Fri Aug 29, 2008 9:34 am
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

Re: custom content fields

Posted: Fri Aug 29, 2008 9:46 am
by seriousmedia
Found it!  ;D

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

greetings,

Ramon van de Laar
www.seriousmedia.nl

Re: custom content fields

Posted: Sat Aug 30, 2008 6:44 am
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....