Wanted - Stack for php includes

(Greg Schneck) #1

I use php includes on my site (sidebar) and would like to incorporate more. I currently make the include code in a variety of ways (including using a Styled Text page and then “stealing” the appropriate code to make the include.)

Why no stack to do PHP includes? I realize the “preview” render issues and such but MAMP could be used.

(Jannis from inStacks Software) #2

Why not using the HTML stack?

(Doug Bennett) #3

Are you talking about making an include library item, or how to include them on a page?
A statement like:
<?php require_once "%resource(RS_BSfunctions.php)%"; ?>

Can be added to the prefex section of the page or site.

This example uses RW resources, but you can also use a full URL

(Greg Schneck) #4

instacks and teefers… I do use an html stack for the include call… I’m asking about a stack to DESIGN/CREATE the include code and upload it to say, an “include” directory. In other words… all dependencies (paths, css, etc) would work globally over entire site.

(Jannis from inStacks Software) #5

You are talking then about a stack creation itself I guess :wink:

(Jannis from inStacks Software) #6

Maybe the resources folder would be the best therefore.