Log in | Register | Lost password

Bottom
How to use pagesetter function in home.htm template ?
  • Posted: 30.09.2007, 11:41
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Hi everybody !

    I would like to make a menu with list of my category from pagesetter.
    I've read this tutorial : http://marcarea.com/tuto/menu01.php to create this menu. It works perfectly if I add link in home.htm template but I would like to do something like that :

    Code

    <li>

    <a href="#">Category 69</a>

    <ul class="sousMenu">

    <li><!--[pnmodapifunc modname=pagesetter func=CatBrowser additionalvars="orderby=title:asc" field="category" listClass="menuDeroulant" showcount="yes" trim="no" topValue=69]--></li>

    </ul>

    </li>


    But of course, it doesn't works :s
    Did someebody has ever try to do that or has an idea ?

    Thank you very much !
  • Posted: 30.09.2007, 17:04
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    CatBrowser is a pagesetter plugin, not a part of the pagesetter core...

    First you will have to upload function.pagesetter_CatBrowser.php to /includes/classes/Smarty/plugins/ to make it a global plugin, not just accessible when pagesetter is the active module. Once you've done that you can use the plugin anywhere in postNuke.

    Be sure to include the class in your theme's style.css.

    You'll most likely have to play around a bit but this code "should" work...

    Code

    <!--[pagesetter_CatBrowser additionalvars="orderby=title:asc" field="category" listClass="menuDeroulant" showcount="yes" trim="no" topValue=69]-->
  • Posted: 30.09.2007, 17:15
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    It works after I've had :
    function.pagesetter_CatBrowser.php
    function.pagesetter_createFilter.php
    function.pagesetter_CountPubs.php

    in pnRender plugin's folder and wrote

    Code

    <!--[pagesetter_CatBrowser additionalvars="orderby=title:asc" tid="1" field="category" listClass="menuDeroulant" showcount="yes" trim="no" topValue=69]-->


    in home.htm ;)

    Thanks for your help :-D

Template courtesy of Designs By Darren.