Zen Cart Logo
Forums / Addon Sideboxes / Want a Blank Sidebox to get content from another (maybe HTML) file.

Want a Blank Sidebox to get content from another (maybe HTML) file.

Locked

Views: 1,822

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
18 Apr 2008, 4:37 AM
#1
pjd avatar

pjd

New Zenner

Join Date:
Feb 2007
Posts:
20
Plugin Contributions:
0

Want a Blank Sidebox to get content from another (maybe HTML) file.

I have installed the Blank Sidebox Mod on 1.3.8a. Rather than placing the content in tpl_blank_sidebox directly, I would like to be able to reuse the EZ Pages Page 2, 3, 4 (which I am not now using) to contain the content in text or in HTML.

That way I can change the contents in Admin>Tools>Define Pages Editor>define_page_2(or 3 or 4).php and have it show up in the blank sidebox. This would aleviate the need to upload new or changed content to the server.

The blank sidebox has code that builds a variable called $content. At the appropriate spot in tpl_blank_sidebox, I want it to read the content of define_page_N.php (even if it is plain text or if it is html code eg. images, links etc.) and present it in the sidebox.

I am not a formal student of PHP, or HTML for that matter (only what I learned from looking at Zen Cart code.) I know there is a Require(), an Eval() and an Include functions, and one has to watch out that the returned value is captured and added to the $content string, but I am at a loss for the correct combination of function calls. Is this even possible?

If there is anyone who understands what I want to accomplish and can direct me with a little bit of coding, I would be appreciative. Thank You.:smile:

PJD

18 Apr 2008, 4:44 AM
#2
pjd avatar

pjd

New Zenner

Join Date:
Feb 2007
Posts:
20
Plugin Contributions:
0

Re: Want a Blank Sidebox to get content from another (maybe HTML) file.

And, as I finish writing my post and scroll down, I see that the question has been asked before.....
http://www.zen-cart.com/forum/showthread.php?t=51771

I will look at that thread also to see what else I can find. Thanks.

PJD

18 Apr 2008, 4:47 AM
#3
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Re: Want a Blank Sidebox to get content from another (maybe HTML) file.

P,
This is not EZ Pages Page 2, 3, 4:

This is the more information sidebox you are referring to:

18 Apr 2008, 4:52 AM
#4
pjd avatar

pjd

New Zenner

Join Date:
Feb 2007
Posts:
20
Plugin Contributions:
0

Re: Want a Blank Sidebox to get content from another (maybe HTML) file.

Yes, technically I mispoke regarding the area where the define_page_2,3,4 are, BUT, I did intend to reuse those pages (from the More Information box) to add easily changeable content to a blank sidebox. Thanks.

18 Apr 2008, 4:54 AM
#5
pjd avatar

pjd

New Zenner

Join Date:
Feb 2007
Posts:
20
Plugin Contributions:
0

Re: Want a Blank Sidebox to get content from another (maybe HTML) file.

BTW, thats also a great idea, why not define the content in an EZ Page, where the EZ Page is turned OFF everywhere, but, use that content in the Blank Sidebox. Hmm....