Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Teena 44 posts 64 karma points
    Sep 27, 2010 @ 22:36
    Teena
    0

    Is there an easy or built in way to write a OL of links to docs within a single specific node?

    Is there an easy or built in way to write a UL of links to docs within a single specific node?

    The already complex design was already integrated when I discovered dropnavs were required.  Currently three seperate static dropnavs are working as desired, droping from behind transparent pngs and before a flash element.

    The code that renders the single level menu representing pages within a single node looks like this:

        <div id="dm-button">
          <img src="/images/menu/mmenu_partnerTR_off.png" alt="Your Business Partner" width="364" height="110" class="dm-menu_class img-swap" />
          <ul class="dm-the_menu">
            <li class="first"><a href="#">A Website #1</a></li> <li><a href="#">A Website #2</a></li> <li><a href="#">A Link #1</a></li> <li><a href="#">A Link #2</a></li> <li><a href="#">A Website #3</a></li> <li><a href="#">A Website #4</a></li> <li><a href="#">A Link #3</a></li> <li class="dm-last"><a href="#">A Link #4</a></li>
    </ul> </div>

    The content structure of one of the three nodes looks like this:

    This is the design / working with a static list:

    The sitemap xlts for example, whites an UL like this:

    <div id="sitemap">
    <ul>
    <li><a href="/the-total-solution.aspx">The Total Solution</a>
    <ul>
    <li><a href="/the-total-solution/build-your-core.aspx">Build Your Core</a></li>
    <li><a href="/the-total-solution/extend-your-business.aspx">Extend Your
    Business</a></li>
    <li><a href="/the-total-solution/automate-your-operation.aspx">Automate
    Your Operation</a></li>
    <li><a href="/the-total-solution/lifecycle-approach.aspx">Lifecycle Approach</a></li>
    </ul>
    </li>
    <li>etc

    Is there something similar that can be used to generate the list of just one level? Flat, no subs and the user will be trained not to change the node names.

    I understand a "show in drop nav #1" attribute could be added to the doc type and then an xlts could be written that would write an OL inclusive off all nodes with that attribute but specific singular list node/level behavior continues to come up. 

    I am really looking for a macro something that says "write ordered list of links to all pages below node named NameOfDesiredNode".  Simple and limited, by design.

    Thanks in advance for any insite or information.

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Sep 28, 2010 @ 00:18
    Aaron Powell
    0

    You could use either XSLT or Python/ Ruby to do it, there's several samples within the Umbraco when you create a new XSLT or script file which you can use as starting points

  • Teena 44 posts 64 karma points
    Sep 28, 2010 @ 00:20
    Teena
    0

    Could you point me at one of those samples?  I am looking and looking...  Likely looking right at it and not recognizing it.

  • Teena 44 posts 64 karma points
    Sep 28, 2010 @ 00:42
    Teena
    0

    I really want to use "List Sub Pages From A Changable Source" which could then be used each time this somes up. 

    I must be doing something wrong because it does not seemn to work.  I used to the List Sub Pages From A Changable Source template to make an xlst and then added the contentPicker to the macro.  When called into a template, the content selection is requested, selected, but nothing shows up.

    It is writingthis into the template:

    <umbraco:Macro contentPicker="1250" Alias="ListSubPagesFromAChangableSource" runat="server"></umbraco:Macro>

    I am assuming the "1250" is a SQL ID and I should be able to copy and paste at will changing tht number.  What am I missing?

    Any suggetsions appreciated.

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Sep 28, 2010 @ 03:37
    Nik Wahlberg
    0

    Hi Teena, try changing the contentPicker="1250" to source="1250" and see of that does the trick for you. This is the alias of the paramter that this template is looking for as indicated in the following line:

    <xsl:variable name="source" select="/macro/source"/>

    HTH,
    Nik

  • Teena 44 posts 64 karma points
    Sep 28, 2010 @ 04:04
    Teena
    0

    Bless you Nik,  That worked wonderfully.

Please Sign in or register to post replies

Write your reply to:

Draft