Page 1 of 1

How to include smarty in page title and men items?

Posted: Thu Jul 05, 2007 4:07 pm
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

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

Posted: Thu Jul 05, 2007 4:15 pm
by cyberman
Maybe you should describe what you want to do inside menu and page title tag so helping would be a lot easier.

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

Posted: Thu Jul 05, 2007 4:21 pm
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}

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

Posted: Thu Jul 05, 2007 4:37 pm
by cyberman
And what does my_func()?

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

Posted: Thu Jul 05, 2007 4:43 pm
by dennis05
As I wrote in my previous post: It returns the actual text which should be dispalyed in the menu.

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

Posted: Thu Jul 05, 2007 4:51 pm
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.

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

Posted: Thu Jul 05, 2007 5:24 pm
by wuschel
A user tag and a smarty tag is always the same. CMSMS makes from a user tag a real smarty tag.