We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36446
    • 184 Posts
    Hi!
    I want to have a prev next navigation but the next and prev link should only link to ressources where a tv is set and not to all ressources within a parent.

    I tried with the siblingsnav snippet but could not find a way to set a tvfilter. Next thing i tried was with pdoNeighbors snippet but this also does not allow tvfilters.
    I could get a list of all ressources with this;
    [[!pdoResources
    &tpl=`projektnav`
    &parents=`4`
    &tvFilters=`Film!=`
    &includeTVs=`1`]]
    but that gives me a list of all related ressources and not only the next and prev ressource. Anyone has a hint for me? Thanks!!

    UPDATE:
    Okay - nearly got it with this:

       [[!pdoNeighbors? &resources=`[[!pdoResources?
        &tpl=`projektnav`	
       &parents=`4`
       &tvFilters=`Film!=`
       &includeTVs=`1`]] `]]



    [ed. note: flanger last edited this post 6 years, 7 months ago.]
      https://www.beautyislife-shop.de - premium make-up!
      https://www.topsterne.de - sell it here!
      ---------------------------------------------------------
      • 33238
      • 388 Posts
      Try giving the TV a value:

      &tvFilters=`Film==YES`

      then will display only the pages with the TV Films with the values YES on it.
        --
        ysanmiguel.com
        • 36446
        • 184 Posts
        Hi - thanks! Yes - this works as well so there is no need to use both - pdoRessources AND pdoNeighbors! Thanks! So here is another working code for anyone who is interested:
        [[!pdoNeighbors? &tvFilters=`yourTV==YES` 
        &tplNext=`next`
        &tplPrev=`prev`
        &parents=`4`
        &includeTVs=`1
        ]]
        
          https://www.beautyislife-shop.de - premium make-up!
          https://www.topsterne.de - sell it here!
          ---------------------------------------------------------
          • 33238
          • 388 Posts
          Your welcome.
          Mate, mark it as answered.
            --
            ysanmiguel.com