Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enable php code
#1
Hi. I just want to put a php include in one of my pages. GS converts it to a comment. I've installed dynpages and exec-php to no avail.

Anyone have any suggestions?

-DD
Reply
#2
you can only put php code in components
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
@lakechicago
Dynpages is the best solution for this, but you have to read the docs
http://mvlcek.bplaced.net/get-simple/dynpages:en/
Reply
#4
Hi. Ok, I put this code in a component I called "contactform" --

<?php
include '/plugins/p01-contact/p01-contact.php';
?>

Then, on my contact page, I put this:

{% contactform %}

I add meta-descriptions, etc., save it and when I view it all I see on the page is {% contactform %}

I've installed dynpages and the p01-contact plugin. So what am I not doing right?

Thanks.

Don

P.S. I have to admit: this problem makes me feel like I've never programmed before.
Reply
#5
I haven't used p01-contact but its descritpion in Extend says:
Quote:Just place in a page the tag :

(% contact %)

To put a default contact form.

So you really don't need Dynpages for this.

You don't need to include a plugin, BTW. It is loaded by GS (if activated).
Reply
#6
Anyway it's strange that your {% contactform %} tag wasn't transformed.

You could test something like creating a component hello with:
<?php echo 'Hello world!'; ?>

then in your page content:

{% hello %}
Reply




Users browsing this thread: 1 Guest(s)