Page 1 of 1

commenting out [solved]

Posted: Wed May 07, 2008 11:46 am
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

Re: commenting out

Posted: Sat May 10, 2008 9:03 pm
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...

Re: commenting out (solved)

Posted: Mon May 12, 2008 8:54 am
by hj
Thanks for that, Mark - got it sorted, cheers!

HJ