Log in | Register | Lost password

Bottom
Smarty code snippet?
  • Posted: 26.06.2008, 16:08
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    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.
  • Posted: 30.06.2008, 14:20
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    That's unfortunately not possible. The current filter settings are not available in the templates.
  • Posted: 30.06.2008, 17:22
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    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
  • Posted: 08.07.2008, 20:44
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    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!

Template courtesy of Designs By Darren.