Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2007
    Posts
    20
    Plugin Contributions
    0

    help question 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.

    PJD

  2. #2
    Join Date
    Feb 2007
    Posts
    20
    Plugin Contributions
    0

    help question 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

  3. #3
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default 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:

  4. #4
    Join Date
    Feb 2007
    Posts
    20
    Plugin Contributions
    0

    Default 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.

  5. #5
    Join Date
    Feb 2007
    Posts
    20
    Plugin Contributions
    0

    Default 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....

 

 

Similar Threads

  1. Center the Content of a Blank Sidebox
    By jack0r in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 30 Jun 2010, 05:22 PM
  2. After file upload, want to make filename a clickable link to preview uploaded content
    By PaulRiedel in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Feb 2010, 03:17 PM
  3. adding another blank sidebox
    By macc88 in forum Basic Configuration
    Replies: 3
    Last Post: 29 Nov 2009, 05:20 PM
  4. Want to Add Content to Create Account Page - Which File Is It?
    By Dianne in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Dec 2008, 08:51 AM
  5. Adding HTML content to sidebox areas
    By shackle in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 21 Aug 2006, 07:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg