Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Strange problem with tags in CMS templates code

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1291 Views
  • Digital-Punk.co.uk
    Avatar
    Community Member
    51 Posts

    Strange problem with tags in CMS templates code Link to this post

    Hi,

    I would like to make small changes in CMS templates. For example I would like to change CMS top menu style. In "CMSTopMenu.ss" is:

    <ul id="MainMenu">
    <% control MainMenu %>
       <li class="$LinkingMode" id="Menu-$Code"><a href="$Link">$Title</a></li>
    <% end_control %>
    </ul>

    Then I try to change it into:

    <ul id="MainMenu">
    <% control MainMenu %>
       <li class="$LinkingMode" id="Menu-$Code"><a href="$Link"><span>$Title</span></a></li>
    <% end_control %>
    </ul>

    <span> tags are not recognised in CMS. And then is more funny - I deleted all code within <ul> and menu is still visible! Maybe I should change code somwhere else?

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Strange problem with tags in CMS templates code Link to this post

    Have you tried adding ?flush=1 to the end of the URL? Depending on the type of template, it might need a refresh of the templates before the changes will come through.

    Cheers,
    Sean

  • Digital-Punk.co.uk
    Avatar
    Community Member
    51 Posts

    Re: Strange problem with tags in CMS templates code Link to this post

    Thank You!

    1291 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.