Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Use of '&' in Page name

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: 1138 Views
  • Mayuri
    Community Member
    19 Posts

    Use of '&' in Page name Link to this post

    Hi all,

    Have any one had used & in page name like 'News & Updates'?
    I wants to give page name and navigation label as 'News & Updates', it works well with IE but in firefox and opera it gives error like;
    XML Parsing Error: not well-formed
    Location: http://localhost/site_mimomax/site-map/
    Line Number 114, Column 56:</li><li><a href="news-updates" title="Go to the News & Updates page">News & Updates</a><ul>

    It only gives error while i try to open the sitemap page. Did any one had faced same trouble?

    If i comment the <!--<?xml version="1.0" encoding="utf-8"?>--> in page.ss then it works well but i need to pass code through XHTML validation.

    Any suggestions?????

  • Sean
    Forum Moderator
    921 Posts

    Re: Use of '&' in Page name Link to this post

    Hi there,

    Are you using $Title to render it out? Basically, in XHTML all ampersands must be represented as &amp; which is the HTML entity for the ampersand.

    If you're rendering the title out as $Title, try using $Title.XML instead which should fix the problem.


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.