Skip to main content
Community site session details

Community site session details

Session Id :
Customer Service forum

Multilevel Web Link Sets

(0) ShareShare
ReportReport
Posted on by

Hello,

I have been unable to get a web link set to render a 'Help' dropdown.

I am using the stock header template, as follows:

{% for link in primary_nav.weblinks %}
              {% unless forloop.first %}
                <li class="divider-vertical"></li>
              {% endunless %}
              {% if link.display_page_child_links %}
                {% if link.url != null %}
                  {% assign sublinks = sitemap[link.url].children %}
                {% endif %}
              {% else %}
                {% assign sublinks = link.weblinks %}
              {% endif %}

              <li class="weblink {% if sublinks.size > 0 %} dropdown{% endif %}">
                <a {% if sublinks.size > 0 -%}
                    href="#" class="dropdown-toggle" data-toggle="dropdown"
                    {%- else -%}
                    href="{{ link.url | escape }}"
                    {%- endif -%}
                    {%- if link.Open_In_New_Window %} target="_blank" {% endif -%}
                    {%- if link.nofollow %} rel="nofollow"{% endif -%}
                    {%- if link["new_tooltip"] %} title="{{ link["new_tooltip"] | escape }}"{% endif %}>
                    {%- if link.image -%}
                      {%- if link.image.url startswith '.' -%}
                        <span class="{{ link.image.url | split:'.' | join }}" aria-hidden="true"></span>
                      {%- else -%}
                        <img src="{{ link.image.url | escape }}"
                             alt="{{ link.image.alternate_text | default:link.tooltip | escape }}"
                             {% if link.image.width %}width="{{ link.image.width | escape }}" {% endif %}
                             {% if link.image.height %}height="{{ link.image.height | escape }}" {% endif %} />
                      {%- endif -%}
                    {%- endif -%}
                    {%- unless link.display_image_only -%}
                      {{ link.name | escape }}
                    {%- endunless -%}
                    {%- if sublinks.size > 0 -%}
                      <span class="caret"></span>
                    {%- endif -%}
                </a>

                {% if sublinks.size > 0 %}
                  <ul class="dropdown-menu" role="menu">
                    {% if link.url %}
                      <li>
                        <a href="{{ link.url }}"
                           {% if link.Open_In_New_Window %} target="_blank" {% endif %}
                           {% if link.nofollow %}rel="nofollow" {% endif %}
                           {% if link.tooltip %}title="{{ link.tooltip }}" {% endif %}>{{ link.name }}</a>
                      </li>
                      <li class="divider"></li>
                    {% endif %}
                    {% for sublink in sublinks %}
                      <li>
                        <a href="{{ sublink.url }}"
                           {% if sublink.Open_In_New_Window %} target="_blank" {% endif %}
                           {% if sublink.nofollow %}rel="nofollow" {% endif %}
                           {% if sublink.tooltip %}title="{{ sublink.tooltip }}" {% endif %}>
                           {{ sublink.name | default:sublink.title }}
                        </a>
                      </li>
                    {% endfor %}
                  </ul>
                {% endif %}
              </li>

            {% endfor %}
--------------------------

My Weblink sets are setup as follows:

[Primary Nav]

- Accounts

- Cases

- Knowledge Base

- Help

  * 'Display Page Child Links' = true

- Working With Cases

  * 'Parent Web Link' = Help

- Update Profile

  * 'Parent Web Link' = Help

------------------------------------

I have not been able to use the front-end content editor to drag and drop links, but I thought that setting the association of child web link on the back end should allow me to do just that.

I have a feeling the issue is that the child links are not being associated as the children of the sitemap[link.url]


Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Featured topics

Product updates

Dynamics 365 release plans