Page 1 of 1

System removing anchors

Posted: Sun Jun 22, 2014 10:45 am
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

Re: System removing anchors

Posted: Sun Jun 22, 2014 12:17 pm
by psy
Try using the {anchor} or {cms_selflink anchorlink=...} tag

Re: System removing anchors

Posted: Tue Jun 24, 2014 1:05 pm
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.