Topic: Smarty code snippet?
Converted
avatar
12
Posts: 0

Posted:
26.Jun 2008 - 16:08

Hi all,

For those of you who understand the Smarty codes used in Pagesetter better than I do, I am in need of some help. I am using the PS-StaticContent templates and am trying to make the title of the active category display in my list-header.html template, so far to no avail. Does anyone have any ideas? Thanks for any help you can give.
Converted
avatar
12
Posts: 0

Posted:
30.Jun 2008 - 14:20

That's unfortunately not possible. The current filter settings are not available in the templates.
Converted
avatar
12
Posts: 0

Posted:
30.Jun 2008 - 17:22

Hi,

Not tested but it might works using pagesetter_getCategoryItem plugin from Breadcrumbs package at http://www.pagesetter.net/index.php?module=pagesetter&func=viewpub&tid=4&pid=50

Something like that :

Code

<!--[nocache]-->



<!--[pnvarcleanfrominput name="filter" assign="category"]-->

<!--[assign var="category" value=$category|replace:"YOUR_CATEGORY_NAME:eq:":""]-->



<!--[pagesetter_getCategoryItem id=$category assign="categoryInfos"]-->



AND MY TITLE IS : <!--[$categoryInfos.title]-->



<!--[/nocache]-->




edited by: chakal, Jun 30, 2008 - 06:23 PM
Converted
avatar
12
Posts: 0

Posted:
8.Jul 2008 - 20:44

Sorry, haven't checked back here in a while. Issue is resolved, I got help over at the PN forums. (Zikula, whatever lol) Thanks though!