Jump to content


Stop parsing in a snippet


  • You cannot reply to this topic
2 replies to this topic

#1 Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts
  • Gender:Male

Posted 31 August 2007 - 11:38 PM

I'm trying the get my template viewer to show ALL snippets and chunks with NO content inserted.

Is there a way to get the parser to stop parsing the template embedded in a snippet but still output the html and snippet and chunk placeholders?

I have tried mucking with the snippet parse variables in the index.php file
I have turning off the parser by adding ?> and <?php at the beginning and end of the template content string.
I have tried unsetting and re-defining a variety of GLOBAL variables and functions from inside the snippet to try to stop it.

No luck so far...

Any other ideas? Basically Etomite seems to be so robust, I can't stop it from doing it's job!

Edited by Cris D., 31 August 2007 - 11:42 PM.


#2 Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts
  • Gender:Male

Posted 01 September 2007 - 12:59 AM

The best i have come up with is preg_replace to replace the snippet and chunk calls with something like ##. This will work but won't let you see the call syntax as it is, so it is not ideal, so if anyone else has a better solution...

#3 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 03 September 2007 - 07:24 PM

You're on the right track, Cris... You can use preg_match_all() too... I've used several different methods for disabling tags...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users