Log in | Register | Lost password

Bottom
filter with a category ?
  • Posted: 14.12.2005, 23:30
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    my code :

    Code

    <!--[pagesetter_createFilter filter=sector:eq:`$sector.id`, assign=listGTFilter]-->

    <!--[pagesetter_readpubCount tid=$core.tid filter=$listGTFilter assign=Count]-->

    <!--[if $Count > 0]-->

    <!--[pagesetter_inlinePubList tid=$core.tid filter=$listGTFilter pubcnt=10 tpl=inlineList orderby=title]-->

    <!--[/if]-->


    I have not result on my selection, are they specific rules with category champ ?
    i don't understand, it's working with a tid filter, but not with a category filter ...
  • Posted: 15.12.2005, 00:04
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Try removing the ' ' from $sector.id With quotes you're making a filter that will filter by the literal value of "$sector.id" where you want the smarty returned value (a number etc...)

    That should do it, if not report back and we'll figure it out.
  • Posted: 05.01.2006, 12:45
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I have the same problem.

    I simply want to display links to similar pages with the same category, same publication type etc.

    Code

    <!--[pagesetter_createFilter filter=Chapters:eq:$Chapters.id assign=listFilter]-->

    <ul><!--[pagesetter_inlinePubList tid=$core.tid filter=$listFilter pubcnt=6 ]--></ul>





    edited by: carmoda, Jan 05, 2006 - 01:46 PM
  • Posted: 05.01.2006, 13:34
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Try this, you need quotes " " around the filter expression... and the back ticks `` around the variable

    Code

    <!--[pagesetter_createFilter filter="Chapters:eq:`$Chapters.id`" assign=listFilter]-->

    <ul><!--[pagesetter_inlinePubList tid=$core.tid filter=$listFilter pubcnt=6 ]--></ul>




    edited by: RemShowdown, Jan 05, 2006 - 02:34 PM
  • Posted: 05.01.2006, 22:54
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    That didn't work either :-(

    it was the category name i was using. For some reason spelling the the category 'Chapters' as it appeared in pagesetter admin, didn't return anything. I did however notice that my menu block WAS working on this category so i had a little look at what i was using there.

    Bingo!

    the category was called 'Chapters' but the publication referred to this field as 'Chapter' [no plural]

    The moral of this story is be careful to keep your naming convention strict!

    :-)

Template courtesy of Designs By Darren.