commenting out [solved]

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
hj
Forum Members
Forum Members
Posts: 37
Joined: Fri Mar 07, 2008 8:49 pm

commenting out [solved]

Post by hj »

Very simple question.....I want to comment out a piece of code in the template so it doesn't show - in this case the news module.

What symbols do you put around the code to comment it out?

Code: Select all

{* Start News *}
      <div id="news">
         <h2>News</h2>
          {news number='3' detailpage='news'}
      </div>
      {* End News *}
I know I could take it out altogether, but I want to leave it 'intact' in case I need to re-invoke it.

thx
Last edited by hj on Mon May 12, 2008 8:55 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: commenting out

Post by Dr.CSS »

The best would be to use the same as the ones above and below it...

{*      *} ,these will make it not even show in the source of the page,  if you use the standard comment out technique,   these will leave it showing in the source, it may show in IE6...
hj
Forum Members
Forum Members
Posts: 37
Joined: Fri Mar 07, 2008 8:49 pm

Re: commenting out (solved)

Post by hj »

Thanks for that, Mark - got it sorted, cheers!

HJ
Post Reply

Return to “CMSMS Core”