Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Strange problem with tags in CMS templates code


Go to End


3 Posts   1578 Views

Avatar
Digital Punk

Community Member, 51 Posts

27 January 2008 at 2:26am

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?

Avatar
Sean

Forum Moderator, 922 Posts

27 January 2008 at 2:47am

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

Avatar
Digital Punk

Community Member, 51 Posts

27 January 2008 at 2:52am

Thank You!