Page 1 of 1

Extra Page Attribute

Posted: Sun Jul 04, 2010 8:02 am
by Galfaroth
Dear Community,
I've just installed your outstanding CMS ME. What I only need is an ability to make more Extra Page Attributes different for every Article. In the Admin page, you can define only 3 Extra Page Attributes. Is there any way to make more extra page attributes through some options or any module that is already done? Also how to tag this attribute in the template? {$extra_1} or sth?

Best!
Peter

Re: Extra Page Attribute

Posted: Sun Jul 04, 2010 8:40 am
by kermit
use the {page_attr} tag to get the extra attributes into smarty variables:

in your page content...

{page_attr key='extra1' assign='myvar1'}

then {$myvar1} would contain extra1

if you need more than three, use the page-specific smarty logic ('options' tab when editing page) and simply assign variables:

{assign var='myvar4' value='this is number four'}

then use {$myvar4}

alternatively, you could use one-liner content blocks in your template (see help for {content} tag}

Re: Extra Page Attribute

Posted: Sun Jul 04, 2010 11:15 am
by athena_pallas
Hi, Galfaroth

Could you tell us what is your purpose ?

Re: Extra Page Attribute

Posted: Sun Jul 04, 2010 6:23 pm
by Galfaroth
I just wanted to thank you all!
Your guides were very clear for me and now I'm satisfied with the results :).