How to include smarty in page title and men items?

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
dennis05
Forum Members
Forum Members
Posts: 15
Joined: Tue Oct 24, 2006 4:26 pm

How to include smarty in page title and men items?

Post by dennis05 »

Hi!

I need to have smarty tags work for the menu item text and page title text. In special, I'd like to use {php} within these fields. Any hint how I can do this quickly?

Cheers
cyberman

Re: How to include smarty in page title and men items?

Post by cyberman »

Maybe you should describe what you want to do inside menu and page title tag so helping would be a lot easier.
dennis05
Forum Members
Forum Members
Posts: 15
Joined: Tue Oct 24, 2006 4:26 pm

Re: How to include smarty in page title and men items?

Post by dennis05 »

Thank's for your quick reply. I'd like to call a php function which returns my menu text.

this is what I would like to enter into the field menu text and page title:

{php}echo my_func();{/php}
cyberman

Re: How to include smarty in page title and men items?

Post by cyberman »

And what does my_func()?
dennis05
Forum Members
Forum Members
Posts: 15
Joined: Tue Oct 24, 2006 4:26 pm

Re: How to include smarty in page title and men items?

Post by dennis05 »

As I wrote in my previous post: It returns the actual text which should be dispalyed in the menu.
cyberman

Re: How to include smarty in page title and men items?

Post by cyberman »

I've read your post :). Why do you want "dynamic" menu text?

Could it be you does not understand menumanager - menu text will be returned by menumanager.

Please help us to understand so we can help.

It looks like the easiest way is to set my_func in a user defined tag and call it in MenuManager template instead the currenty used functions.
wuschel

Re: How to include smarty in page title and men items?

Post by wuschel »

A user tag and a smarty tag is always the same. CMSMS makes from a user tag a real smarty tag.
Post Reply

Return to “Tips and Tricks”