Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Redundant Paragraph Tags

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: 1400 Views
  • nzguy
    Avatar
    Community Member
    4 Posts

    Redundant Paragraph Tags Link to this post

    Hi

    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?

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Redundant Paragraph Tags Link to this post

    Is this on a standard page template? Could the extra <p> be generated from the template file

  • nzguy
    Avatar
    Community Member
    4 Posts

    Re: Redundant Paragraph Tags Link to this post

    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.

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Redundant Paragraph Tags Link to this post

    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

  • nzguy
    Avatar
    Community Member
    4 Posts

    Re: Redundant Paragraph Tags Link to this post

    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?

    1400 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.