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.

Archive

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

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

Strange problem with tags in CMS templates code


Reply

3 Posts   1327 Views

Avatar
Digital-Punk.co.uk

27 January 2008 at 2:26am Community Member, 51 Posts

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

27 January 2008 at 2:47am Forum Moderator, 921 Posts

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.co.uk

27 January 2008 at 2:52am Community Member, 51 Posts

Thank You!