2010-08-02 15:27:23
Can you put php in a content page
I have 2.0 installed and I was wondering if it was possible to put php code into a piece of content.
Situation: I have my content dir. in the root of my site (not a web accessible area). In a piece of content, I want to link to a page in the content dir. Normal html links don't seem to be working. So I'd like to do something like...
[php] a href="<?php echo AT_CONTENT_DIR . '/path_to_file_in_content_dir'?>/file.html">file in content dir.</a> [/php]
Or perhaps there's a better way to do this?
Thanks.