Announcement

Collapse
No announcement yet.

Storyteller cmp_primary_navigation linking

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • lesliekirk
    replied
    Originally posted by Matt Zimmermann View Post
    Hmm, I'm really not sure why you would be seeing that. I'm assuming they are not custom links and are set through the ReadyTheme Navigation Set as Category/Category Code.
    I'll try converting to the URI Management to see if that fixes it.

    Leave a comment:


  • Matt Zimmermann
    replied
    Hmm, I'm really not sure why you would be seeing that. I'm assuming they are not custom links and are set through the ReadyTheme Navigation Set as Category/Category Code.

    Leave a comment:


  • lesliekirk
    replied
    Originally posted by Matt Zimmermann View Post
    Are they to custom category pages?
    They are not - they use the CTGY Page template

    Leave a comment:


  • Matt Zimmermann
    replied
    Are they to custom category pages?

    Leave a comment:


  • lesliekirk
    replied
    Originally posted by Matt Zimmermann View Post
    Hi Leslie,

    If the destination page is the category list, category display, or product list page, it will show above the line. Otherwise, it will appear below the line.
    Well...it's not. That's the problem. I have two category destinations that are below the line

    Leave a comment:


  • Matt Zimmermann
    replied
    Hi Leslie,

    If the destination page is the category list, category display, or product list page, it will show above the line. Otherwise, it will appear below the line.

    Leave a comment:


  • lesliekirk
    replied
    As I'm working on this I seem to have come up with yet another question. I want to link to a Category but I thought it would appear in the "border--secondary" line based on the conditional


    Code:
    vt:if expr="NOT ISNULL l.settings:readytheme:navigationitems">
                <mvt:foreach iterator="navigationitem" array="readytheme:navigationitems">
                    <mvt:if expr="l.settings:navigationitem:link_dest CIN 'CLST|CTGY|PLST'">
                        <li class="color--white">
                            <mvt:if expr="NOT ISNULL l.settings:navigationitem:items">
                                <input id="l-&mvt:navigationitem:id;-toggle" data-toggle type="checkbox">
                                <label for="l-&mvt:navigationitem:id;-toggle"><a href="&mvt:navigationitem:url;" target="&mvte:navigationitem:link_targ;">&mvt:navigationitem:name;</a><span class="icon--chevron-down"></span></label>
                                <ul>
                                    <mvt:foreach iterator="navigationitem_level2" array="navigationitem:items">
                                        <li class="color--white">&mvt:navigationitem_level2:link;</li>
                                    </mvt:foreach>
                                </ul>
                            <mvt:else>
                                &mvt:navigationitem:link;
                            </mvt:if>
                        </li>
                    </mvt:if>
                </mvt:foreach>
                <li><hr class="border--secondary"></li>
                <mvt:foreach iterator="navigationitem" array="readytheme:navigationitems">
                    <mvt:if expr="NOT (l.settings:navigationitem:link_dest CIN 'CLST|CTGY|PLST')">
                        <li class="color--secondary">
                            <mvt:if expr="NOT ISNULL l.settings:navigationitem:items">
                                <input id="l-&mvt:navigationitem:id;-toggle" data-toggle type="checkbox">
                                <label for="l-&mvt:navigationitem:id;-toggle"><a href="&mvt:navigationitem:url;" target="&mvte:navigationitem:link_targ;">&mvt:navigationitem:name;</a><span class="icon--chevron-down"></span></label>
                                <ul>
                                    <mvt:foreach iterator="navigationitem_level2" array="navigationitem:items">
                                        <li class="color--secondary">&mvt:navigationitem_level2:link;</li>
                                    </mvt:foreach>
                                </ul>
                            <mvt:else>
                                &mvt:navigationitem:link;
                            </mvt:if>
                        </li>
                    </mvt:if>
                </mvt:foreach>
            </mvt:if>

    Shouldn't this line tell the category not to appear below the line?

    Code:
    <mvt:if expr="NOT (l.settings:navigationitem:link_dest CIN 'CLST|CTGY|PLST')">





    Leave a comment:


  • lesliekirk
    replied
    Originally posted by Matt Zimmermann View Post
    Hi Leslie,

    This will add the link in, however you may need to modify some styling and/or behavior depending on what you are looking for.
    Code:
    <label for="l-&mvt:navigationitem:id;-toggle"><a href="&mvt:navigationitem:url;" target="&mvte:navigationitem:link_targ;">&mvt:navigationitem:name;<span class="icon--chevron-down"></span></a></label>
    Thanks, Matt.

    Here's what I wound up using:

    Code:
    <label for="l-&mvt:navigationitem:id;-toggle"><a href="&mvt:navigationitem:url;" target="&mvte:navigationitem:link_targ;">&mvt:navigationitem:name;</a><span class="icon--chevron-down"></span></label>
    plus I had to tweak CSS

    Code:
    .cmp-primary-navigation a, .cmp-primary-navigation label {
        display: inline-block;}

    Leave a comment:


  • Matt Zimmermann
    replied
    Hi Leslie,

    This will add the link in, however you may need to modify some styling and/or behavior depending on what you are looking for.
    Code:
    <label for="l-&mvt:navigationitem:id;-toggle"><a href="&mvt:navigationitem:url;" target="&mvte:navigationitem:link_targ;">&mvt:navigationitem:name;<span class="icon--chevron-down"></span></a></label>

    Leave a comment:


  • lesliekirk
    started a topic Storyteller cmp_primary_navigation linking

    Storyteller cmp_primary_navigation linking

    I need the &mvt:navigationitem:name; in to be linked.

    Code:
    <label for="l-&mvt:navigationitem:id;-toggle">&mvt:navigationitem:name;<span class="icon--chevron-down"></span>
    Changing it to &mvt:navigationitem:link; is not the desired result.

Working...
X