GetSimple Support Forum
Disable auto-formatting in Edit Page - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Disable auto-formatting in Edit Page (/showthread.php?tid=1505)



Disable auto-formatting in Edit Page - theMediaman - 2011-04-01

I'm looking to add PHP in-line to an HTML post - specifically from the Child Menu plugin:
Code:
<?php go_child_menu(); ?>

If I add this (or other code the parser doesn't like), my code gets changed:
Code:
<!--?php go_child_menu(); ?-->

I've seen some similar posts in the forum regarding this feature, but I haven't found how to disable it. In other words, I want the code I type in a post to remain as-is. How might I be able to do that?


Disable auto-formatting in Edit Page - RobA - 2011-04-01

I think you you can use this plugin: http://get-simple.info/extend/plugin/exec-php/17/

-Rob A>


Disable auto-formatting in Edit Page - theMediaman - 2011-04-01

Thanks for that. It seems to help, but I still need to "trick" it into letting me write PHP in the post.

If I post the code in the Source window, then immediately hit "Save updates", then the page will display properly.

If I reopen the edit page, or switch to WYSIWYG editor then back again, it changes my PHP to comment code, and once again the page won't run my PHP code.

Any way to get the editor to just trust that the code I'm writing is "clean", and doesn't need formatting?


Disable auto-formatting in Edit Page - mvlcek - 2011-04-01

You can also put the php code in a component and include that component in the page with the DynPages plugin.