System removing anchors

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
eddyR3
Forum Members
Forum Members
Posts: 52
Joined: Tue May 14, 2013 6:51 am

System removing anchors

Post by eddyR3 »

Hey guys, hope you are well, im using a template that was created from Bootstrap 3, and using the accordion setup that comes with Bootstrap eg.

Code: Select all

<div class="panel-group" id="accordion">
  <div class="panel panel-default">
    <div class="panel-heading">
      <h4 class="panel-title">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
          Collapsible Group Item #1
        </a>
      </h4>
    </div>
    <div id="collapseOne" class="panel-collapse collapse in">
      <div class="panel-body">
        PANEL CONTENT HERE
      </div>
    </div>
  </div>
Im adding this into CMSMS into a page, but whats happening is, once i have entered this data, if i come to edit that page again, CMSMS strips this line :

Code: Select all

<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
So, i have to re-add that line to each collapse item everytime i want to edit the content, any suggestions as to why this is happening or how i can avoid it in the future?

Many thanks,
Eddy
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: System removing anchors

Post by psy »

Try using the {anchor} or {cms_selflink anchorlink=...} tag
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: System removing anchors

Post by paulbaker »

Or, if it is one of the WYSIWYG editors causing the stripping of HTML (like TinyMCE or MicroTiny) then try to move this code in to a template or global content block where you can edit the code directly.
Post Reply

Return to “The Lounge”