We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36604
    • 268 Posts
    Hello,


    I'm still looking for a clean solution to build a correct call to create links ONLY corresponding the following tree part menu depending on wich language context we are.

    Thank for helping

    (0)
    Context WEB
    |_ Accueil(1) [excluded]
    +|_ sub1 (8)
    +|_ sub2 (9)
    +|_ sub3 (10)
    |
    ...
    ...
    |_PAGE2 (2)
    +|_ cat1 (25) [exclude all those potential child /template (5)/ ]
    ...
    ...
    -------------------------- second CX -------
    Context EN
    |_ Home (3) [excluded ??]
    +|_ sub1 (11)
    +|_ sub2 (12)
    +|_ sub3 (13)
    |
    ...
    ...
    |_PAGE2B (7)
    +|_ cat1 (36) [exclude all those potential child /template (5)/ ]
    ...
    ...

    In every case I have not the same result in each contexts.
    I can not exclude the Home (3) in english cx as I can exclude the accueil(1) in the default web cx. All tries I did to exclude it make the menu totally navished

    here's the last versions of my call (don't focus on the different complex &tpl) for FR and EN cx

    WEB (fr) callWFH-fr
    [[Wayfinder? &startId=`0` &level=`2` 
    
    &selfClass=`current`
    &startItemTpl=`WF-homeTPL` 
    &rowIdPrefix=`go_` 
    &outerTpl=`WF-outerTpl` 
    &parentRowTpl=`WF-menuH-parentRowTpl` 
    &innerTpl=`WF-innerTplFLAT` 
    &innerRowTpl=`WF-menuH-innerRowTpl` 
    &rowTpl=`WF-rowTpl0`
    &excludeDocs=`25`
    &where=`[{"template:!=": "5"}]` 
     &includeDocs=`0`
    ]]


    EN $callWFH-en
    [[Wayfinder? 
    &contexts=`en`
    &startId=`0` 
    &level=`2` 
    &selfClass=`current` 
    &startItemTpl=`WF-homeTPL` &displayStart=`1` 
    &rowIdPrefix=`go_` &outerTpl=`WF-outerTpl` 
    &parentRowTpl=`WF-menuH-parentRowTpl` 
    &innerTpl=`WF-innerTplFLAT` 
    &innerRowTpl=`WF-menuH-innerRowTpl` 
    &rowTpl=`WF-rowTpl0` 
    &excludeDocs=`36`
    
    &where=`[{"template:!=": "5"}]`
     ]]
    [ed. note: elz064 last edited this post 9 years, 1 month ago.]
    • You are trying to NOT show the en context Home resource? If so, you have &displayStart=`1` in the en call (it is in the same link as &startItemTpl), which is going to so your Home resource for the en context.

      Let me know if I misunderstood what you are attempting to do.
        • 36604
        • 268 Posts
        Quote from: dvstudiosinc at Apr 10, 2015, 01:17 PM
        You are trying to NOT show the en context Home resource? If so, you have &displayStart=`1` in the en call (it is in the same link as &startItemTpl), which is going to so your Home resource for the en context.

        Let me know if I misunderstood what you are attempting to do.

        thank you

        the issue is not for the id 1 (the web context) where the home (accueil (1) is actually exluded from the rendered link.
        it's only when switched on context EN, then the home id 3 page link is there (and I don't want) . &displayStart=`3` does not help at all.

          • 22840
          • 1,572 Posts
          Can you not just hide the first li ?

          li:first-child {
          display: none;
          }
            • 36604
            • 268 Posts
            Quote from: paulp at Apr 10, 2015, 03:10 PM
            Can you not just hide the first li ?

            li:first-child {
            display: none;
            }

            that's an idea.
            Thank you,


            Not very clean, but can do the job.
            This needed to implemented the css only for the regarding context, but it works, however I'd prefer to understand why there's such a difference using WF.

              • 38723
              • 165 Posts
              Quote from: elz064 at Apr 13, 2015, 07:31 AM
              Quote from: paulp at Apr 10, 2015, 03:10 PM
              Can you not just hide the first li ?

              li:first-child {
              display: none;
              }

              that's an idea.
              Thank you,


              Not very clean, but can do the job.
              This needed to implemented the css only for the regarding context, but it works, however I'd prefer to understand why there's such a difference using WF.


              You can just tick the "hide form menus" option on accueil and home in different contexts and they won't show in the Wayfinder output.
                • 36604
                • 268 Posts
                Quote from: pdincubus at Apr 29, 2015, 09:00 AM


                You can just tick the "hide form menus" option on accueil and home in different contexts and they won't show in the Wayfinder output.

                Yes..but no because I wanna home(s) links to be present on other pages. The ticking option would make them vanishing from all menus