web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Web Links in Footer not working

(0) ShareShare
ReportReport
Posted on by

I am implementing a portal for my department and have most of it working however it seems that the Web Links in my Footer are not clickable as links. They are External URLs but I tested with making a link to a Web Page for the portal and that no longer work either.

I can't determine if it is a problem with the Content Snippets, Web Link Sets, or the Web Templates. My gut tells me it is the Web Template for the Footer. I'm going to post that and see if any of you can spot why the names of the Web Links in the Web Link Set appear but are un-clickable.

<footer role="contentinfo">
  <div class="footer-top">
    <div class="container">
      <div class="row">
        <div class="col-md-6 col-sm-12 col-xs-12 text-left">
          {% editable snippets 'About Footer' type: 'html' %}
        </div>
      </div>
    </div>
  </div>

  <div class="footer-bottom hidden-xs hidden-sm">
    <div class="container">
      <div class="row">
        <div class="col-md-4 col-sm-12 col-xs-12 text-left">
          {% editable snippets 'Footer' type: 'html' %}
        </div>
        {% assign footer_nav = weblinks["Footer"] %}
        {% if footer_nav %}
          <div class="col-md-8 col-sm-12 col-xs-12 text-left {% if footer_nav.editable %}xrm-entity xrm-editable-adx_weblinkset{% endif %}" data-weblinks-maxdepth="2">
            <ul class="row list-unstyled">
              {% for link in footer_nav.weblinks %}
                <li class="col-sm-3">
                  <h4>{{ link.name }}</h4>
                  <ul class="list-unstyled">
                    {% if link.display_page_child_links %}
                      {% assign sublinks = sitemap[link.url].children %}
                    {% else %}
                      {% assign sublinks = link.weblinks %}
                    {% endif %}
                    {% if sublinks.size > 0 %}
                      {% for sublink in sublinks %}
                        <li>
                          <a href="{{ sublink.url | escape }}">{{ sublink.name | default:sublink.title }}</a>
                        </li>
                      {% endfor %}
                    {% endif %}
                  </ul>
                </li>
              {% endfor %}
            </ul>
            {% editable footer_nav %}
          </div>
        {% endif %}
    </div>
  </div>
</footer>


*This post is locked for comments

I have the same question (0)
  • ThomasN Profile Picture
    3,190 on at

    hi Bryan, thanks for reaching out.

    Can you answer the below questions and give some more insight, thanks.

    Do you have the web links setup as a separate record of web links for just the footer?

    Do you have this applied to the Page template, or to the actual page?

    Is the page you are seeing this issue using the correct template?

  • Community Member Profile Picture
    on at

    The Web Links were made and then associated to the Footer Web Links. So if I open up the Footer Web Links list and scroll down in the record in CRM I can see the four links I added. I have also double checked to make sure they were in a Published state.

    And the code I shared above was the Footer Web Template and this is the Footer that is associated to the Web Site in CRM.

    I checked the Page and it is showing it is using the right template.

  • Craig P. Fleming Profile Picture
    950 on at

    You might want to drop something into the if/else statement (literally just 'if' and 'else') to isolate which assignment is happening. I kind of think that will identify the problem, but if it's not obvious post the html output, it might provide some clues. If you are really only intending to show the four links contained in the weblinkset you can simplify the code to remove the if/else altogether. Something like this:

    <ul class="list-unstyled">
    {% for link in footer_nav.weblinks %}
    <li> <a href="{{ link.url | escape }}">{{ link.name | default:link.title }}</a> </li>
    {% endfor %}
    </ul>
  • Community Member Profile Picture
    on at

    Yeah I'll have to try this. I'm just confused on why this would fail since this was out of the box from the Customer Self-Service Portal

  • Craig P. Fleming Profile Picture
    950 on at

    Are you setting the display_page_child_links on the links in your weblinkset. It means that the logic will show links to the children of the page identified in the weblink. It gets a confusing with that setting as it is intended to dynamically add links to a list using the title or name of the weblink as header but not necessarily as a link.  Not sure that description helps or confuses the issue more:).

  • Community Member Profile Picture
    on at

    I don't have that set because I'm not nesting links underneath the four links I'm using in the Footer. I can try setting that but would seem odd that is what is needed.

  • Community Member Profile Picture
    on at

    I tried setting that checkbox and it made no difference.

  • Craig P. Fleming Profile Picture
    950 on at

    Yes I would expect that to "not" be set, what I meant but like i said was getting confusing. I actually just happened to be setting up a demo site right now and I see the following with the default data in the community portal, does this align with what you see in your partner portal? May also be a permissions issue, perhaps partner portal has content access set for footer links. I don't have a partner portal setup right now to verify but the web template for the footer is the same.

    2016_2D00_12_2D00_22_5F00_16_2D00_28_2D00_08.jpg

  • Community Member Profile Picture
    on at

    Can you post what the Footer Web Template is out of the box? I can compare and see if maybe something was changed.

  • Craig P. Fleming Profile Picture
    950 on at

    Identical:

     <div class="footer-bottom hidden-xs hidden-sm">
        <div class="container">
          <div class="row">
            <div class="col-md-4 col-sm-12 col-xs-12 text-left">
              {% editable snippets 'Footer' type: 'html' %}
            </div>
            {% assign footer_nav = weblinks["Footer"] %}
            {% if footer_nav %}
              <div class="col-md-8 col-sm-12 col-xs-12 text-left {% if footer_nav.editable %}xrm-entity xrm-editable-adx_weblinkset{% endif %}" data-weblinks-maxdepth="2">
                <ul class="row list-unstyled">
                  {% for link in footer_nav.weblinks %}
                    <li class="col-sm-3">
                      <h4>{{ link.name }}</h4>
                      <ul class="list-unstyled">
                        {% if link.display_page_child_links %}
                          {% assign sublinks = sitemap[link.url].children %}
                        {% else %}
                          {% assign sublinks = link.weblinks %}
                        {% endif %}
                        {% if sublinks.size > 0 %}
                          {% for sublink in sublinks %}
                            <li>
                              <a href="{{ sublink.url | escape }}">{{ sublink.name | default:sublink.title }}</a>
                            </li>
                          {% endfor %}
                        {% endif %}
                      </ul>
                    </li>
                  {% endfor %}
                </ul>
                {% editable footer_nav %}
              </div>
            {% endif %}
        </div>
      </div>


    As long as your weblinks have pages or urls and the pages are published and no content access permissions are protecting them your links should work fine.

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

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans