We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17705
    • 501 Posts
    or maybe something similar... ?

    I have a document scheme like this:

    A
    Apples
    Alpine
    Auto
    ...
    ...
    B
    Bird
    Boing
    Buh!
    ...
    ...
    C
    Car
    Central
    ...
    ...
    .
    .
    .
    Z
    Zaphire
    ...
    ...

    Making a A - Z index menu will be easy...

    but in other section I need to show only the A-Z childs... something like:

    Apples Alpine Auto Bird Boing Buh! Car Central ...... Zaphire


    how to achieve something like that? any idea?
    :(
      • 8609
      • 607 Posts
      Set &start to be the ID of the parent.
        • 3232
        • 380 Posts
        If you want to display only the child documents of all items, You could also try using a depth of 2 and use the &excludeDocs parameter to exclude the A - Z documents.

        Obviously you would have to list the 26 ids in the parameter.
          • 17705
          • 501 Posts
          thanks a lot for the tips!

          Ill try them smiley
            • 17705
            • 501 Posts
            Quote from: betoranaldi at Feb 24, 2010, 01:45 PM

            If you want to display only the child documents of all items, You could also try using a depth of 2 and use the &excludeDocs parameter to exclude the A - Z documents.

            Obviously you would have to list the 26 ids in the parameter.

            Finally I have tried this... but did not work... the &excludeDocs exclude the letter container and all his childs... so finally nothing is showed... sad

            then tried checking out the Show in menu field of containers, same behavior

            only one &startId id can be used, right?

            mmm, any idea?


            maybe using a wayfinder call for each alphabet letter?
            hohoho, what a bruteforce way to go!
              • 22427
              • 793 Posts
              You could try to use the parameter &parentClass.
              I didn’t check it out, but as an example take
              &parentClass=`hidden_parent`,
              and in your CSS define
              .hidden_parent {display:none;}
              I would expect that this won’t affect the visibility of the children.
              Regards
              ottogal
                • 17705
                • 501 Posts
                thanks for the idea ottogal... I thought something similar last night... and tried it just using css (not the &parentClass)
                I think that the problem using that aproach is that parent items are UL, then you try to hide them... and the browser hides all the LI too?
                  • 22427
                  • 793 Posts
                  I think that the problem using that aproach is that parent items are UL, then you try to hide them... and the browser hides all the LI too?
                  You’re totally right - sorry for that wrong idea.
                  Here’s a better one, I tried it successfully:
                  Use the Parameter &parentRowTpl refering to a chunk which contains the following code:
                  <li [+wf.classes+]>[+wf.wrapper+]</li>

                  So it contains only the [+wf.wrapper+] for the children, but no [+wf.link+], [+wf.linktext+] a.s.o. (what you have in the default &rowTpl).
                  Let’s say, you name the chunk ’blind_parent’, then your Wayfinder call should read like this:
                  [!Wayfinder? &startId=`###` &level=`2` &parentRowTpl=`blind_parent` !]

                  where you have to replace the ### by the appropiate Id (the parent of the A, B, C...).
                  Good luck!
                  ottogal

                  Edit: I corrected a typo - it has to be &level=`2`.