- Moderated by:
- Support
-
- rank:
-
Helper
- registered:
- May 2004
- Status:
- offline
- last visit:
- 30.11.08
- Posts:
- 196
if you want to pass parameters to a Smarty, you can use the cat modifier
You can use it like that
Code
<!--[ pnmodurl modname=pnForum type=user func=main fragment=$forum.cat_id|cat:"cat" ]-->">
in order to have the following ouput
Code
index.php?module=pnForum#2cat
AND you can use it like that
Code
<!--[ pnmodurl modname=pnForum type=user func=main fragment="cat"|cat:$forum.cat_id ]-->">
in order to have the following ouput
Code
index.php?module=pnForum#cat2
http://www.smarty.net/manual/en/language.modifier.cat.php
--
4 pages of french & english Zik.1 tips -
- rank:
-
Helper
- registered:
- August 2003
- Status:
- offline
- last visit:
- 01.12.08
- Posts:
- 468
Yeah, you can do nice stuff with the modifiers:
the page with all of them: http://www.smarty.ne…guage.modifiers.php
Also multiple cats after each other:
Code
<!--[pnpageaddvar name="rawtext" value='<style type="text/css">'|cat:$parsedstyle|cat:'</style>']-->
or an inline string replacement
Code
<!--[pnml name=$scrollstyle|replace:'%DIVID%':$divid assign=parsedstyle]-->
--
http://www.erikspaan.nl
http://www.avwijchen.nl
Involved in: BlankTheme, StoriesExt, Menu templates, SmugView and zikula.nl -
