PHP includes from php includes

Yeah, confusing I know. What I have in mind is using MiniCMS includes as includes themselves in other pages. Perhaps this is wrong thought process, but I was thinking of filling a page with MiniCMS editable objects, then calling them to another page from a menu of links. I am guessing this may not work since the page content (minicms objects) is in a database that only appears when the page is viewed. Should I bother?


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Can you make a sketch of what you’re thinking of here? It is very hard to visualize from your description.

What I think you mean is to compose a page out of dynamic parts, then include that composed page within another page. If so, you could do this, but it would require some special effort on your part to keep from making a page-within-a-page (i.e.: a page with two HEAD sections and nested BODY sections).

Walter


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

What I think you mean is to compose a page out of dynamic parts, then include that composed page within another page.

Almost. Essentially that is correct, but I want to target only specific parts of a page (divisions with an action object in this case) as opposed to a whole page. The idea is to have a list of links on one page. Each link being to a specific part of a separate page.

The minicms objects are just includes themselves. What I want to do is grab specific objects from the page that contains them and view them on another page.

Better?


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Try (and I sincerely mean that word – this is well outside of
anything I’ve ever tried this Action for) using the TemplateHelper
Action in Partial mode for this. That Action allows you to cut out an
element from your page and save it as a separate file alongside the
page it is on.

http://www.actionsforge.com/actions/view/11-templatehelper

Apply it to the div you want to cut out from the page, and use the
Actions Palette to set the preferences you need. In this case, check
“Make Partial”, change the File Type picker to PHP, and give the
partial a name that makes sense to you. When you publish, a new file
will be created in the same folder as the current page, named
_yourpartialname.php (leading underscore, whatever you entered in the
Name field, and the file-type extension you chose).

The donor object on the original page will be entirely removed from
that page, all of its content will appear within the partial file.

If this doesn’t work in conjunction with the MiniCMS action, then
please send me a cut-down document that shows the failure. I do not
own MiniCMS, but I’m sure Joe would sport me a copy for debugging
purposes.

Walter

On Nov 11, 2008, at 1:39 PM, chuckamuck wrote:

The minicms objects are just includes themselves. What I want to do
is grab specific objects from the page that contains them and view
them on another page.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Try (and I sincerely mean that word – this is well outside of
anything I’ve ever tried this Action for) using the TemplateHelper
Action in Partial mode for this.

Yep, that is exactly what I was looking at doing.

The donor object on the original page will be entirely removed from that page, all of its content will appear within the partial file.

Hmm… Would that make it uneditable then on the original page it’s taken from?

I realize what i’m trying to do here is a bit a of silk purse situation, but if it works it will save me having to switch to yet another cms.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hmm… Would that make it uneditable then on the original page it’s taken from?

Actually, I realized you don’t need access to the page for this with the version of MiniCMS i’m using. Object data is in a database and can be edited separately via admin page.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

As I suspected, my initial test shows that using Template Helper for this purpose is a non starter. It does exactly what it’s supposed to do…but it does it before there is any content from the minicms object in the division.

Not very useful to have blank php includes. :wink:


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Try this. Open the Action in a proper text editor, and change line 82
from

function fwBeforeEndBody()

to

function fwAfterEndHTML()

That should make it run after everything else has finished. That may
help in this case. If it doesn’t, then you’ll have to make a similar
adjustment to the MiniCMS Action to make it run earlier.

Walter

On Nov 12, 2008, at 3:36 PM, chuckamuck wrote:

As I suspected, my initial test shows that using Template Helper
for this purpose is a non starter. It does exactly what it’s
supposed to do…but it does it before there is any content from
the minicms object in the division.

Not very useful to have blank php includes. :wink:


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Didn’t make any difference. What I get is

<div id="contentbox1" class="f-x2">
<p class="f-lp"></p>
</div>

Basically, I don’t think this is going to work because the pages have to be viewed in a browser before there is any content available.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ah well. I have never used MiniCMS, so I don’t know how it works in Freeway.

Walter


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options