Extra Page Attribute

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Galfaroth
New Member
New Member
Posts: 2
Joined: Sun Jul 04, 2010 7:59 am

Extra Page Attribute

Post 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
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: Extra Page Attribute

Post 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}
Last edited by kermit on Sun Jul 04, 2010 8:42 am, edited 1 time in total.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
athena_pallas
Power Poster
Power Poster
Posts: 272
Joined: Wed Sep 13, 2006 4:41 pm
Location: Belgium

Re: Extra Page Attribute

Post by athena_pallas »

Hi, Galfaroth

Could you tell us what is your purpose ?
Galfaroth
New Member
New Member
Posts: 2
Joined: Sun Jul 04, 2010 7:59 am

Re: Extra Page Attribute

Post by Galfaroth »

I just wanted to thank you all!
Your guides were very clear for me and now I'm satisfied with the results :).
Locked

Return to “Modules/Add-Ons”