Can I add an include in with page text?

6 posts by 2 authors in: Forums > CMS Builder
Last Post: January 31, 2014   (RSS)

By csdesign - January 30, 2014

I wasn't sure if I was going to explain this correctly so I took a screen shot.  Is it possible to add and include to a page - but WITHIN the text (as the client would enter it in their admin section)

I want to create a contact include so if something changes - it can be changed from 1 location. But it won't be on every page and it's within the text area.  (see screenshot)
<!--?php include "include_contact.php"; ?-->

Here's the page: http://www.irmahotelcody.com/sec.php

Attachments:

picture-24.png 143K

By rconring - January 31, 2014

I have done that in the past to allow the user to add an RSVP form in the text.  Here is where I got the solution:

http://www.interactivetools.com/forum/forum-posts.php?postNum=2231659#post2231659 

Ron Conring
Conring Automation Services
----------------------------------------
Software for Business and Industry Since 1987

By csdesign - January 31, 2014

Thanks Ron!! 

By csdesign - January 31, 2014

oh for pete's sake... I took these out and now I'm getting something - still not right but at least it's showing up which gives me something to work with! 

<!--INSERT PLACEHOLDER BEGIN-->

<!--INSERT PLACEHOLDER END--> 

By rconring - January 31, 2014

You need to remove the 'echo $content' from the function at the top of the page and use that wherever you are printing the $menuRecord['content'] statement in the body. 

$content contains the contents of $menuRecords['content'] with the included files embedded wherever you placed the placeholders in the editor.  I hope I explained it properly.  If that is not clear, attach a copy of the page code so I can see where it goes.

Ron Conring
Conring Automation Services
----------------------------------------
Software for Business and Industry Since 1987