17488 Posts in 4473 Topics by 1978 members
|Go to End|
22 July 2008 at 12:18pm
I am new to SilverStripe so I apologise if my problem has been addressed before but I couldn't find anything in the Forum.
If I write a line of page text in the CMS Admin content editor and then check in the HTML view, I have no preceding <p> or concluding </p> but when I publish the page and check in "view source" in my browser, two preceding <p>s and two concluding </p>s have been added.
Although the page displays correctly, it means that the page will not vaildate.
Is this standard or is there a solution?
22 July 2008 at 1:31pm
Is this on a standard page template? Could the extra <p> be generated from the template file
22 July 2008 at 4:06pm
Sorry, I should have said it is on standard pages using the Higherground theme.
I can't see anything in the Page.ss file to cause this but I have had a number of other problems with the theme so maybe it is in that. I notice the same problem on the Silverstripe site in the Preview demo pages for this theme.
I also notice that where I thought that I had deleted the preceding and concluding para tags from the HTML in the page text editor, then selected "update" and "publish" - when I reload that page in the CMS, the para tags have reappeared.
22 July 2008 at 4:13pm
if you switch to blackcandy or another theme and retry it do the tags still appear? That would be the ultimate test if it was the theme or something more in the CMS
22 July 2008 at 5:01pm
Hmm - I switched to blackcandy and the problem doesn't recur - only single para tags showing in source view.
So obviously there is something in the higherground theme that is causing the double tags but I am pretty confident that there is nothing on the Page.ss. Do you know where else they can be introduced?
Incidentally, it was still not possible to remove the (single) para tags in the page editor - presumably these are always needed?
|Go to Top|