Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Page Editor Content In Sidebox?

    I found this thread: http://www.zen-cart.com/forum/showthread.php?t=21384

    Will this still work in the current version of Zen Cart??

    Make a copy of includes/modules/sideboxes/information.php and modify so the content is this:
    Code:
     $define_my_sidebox = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_MY_SIDEBOX, 'false');
    
     if (filesize($define_my_sidebox) > 0) {
      require($template->get_template_dir('tpl_my_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_my_sidebox.php');
    
      $title = BOX_HEADING_MY_SIDEBOX;
      $left_corner = false;
      $right_corner = false;
      $right_arrow = false;
      $title_link = false;
      require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
     }
    save the modified file as includes/modules/sideboxes/my_sidebox.php

    Now make a copy of includes/templates/template_default/sideboxes/information.php and change the content to be just this:
    Code:
    $content = require($define_my_sidebox);
    Add the sidebox heading define to your english.php:
    Code:
    define(BOX_HEADING_MY_SIDEBOX,'your heading text');
    Create the file for the defined content: includes/languages/english/html_includes/define_my_sidebox.php (make sure when you upload it to your server that the properties are set to 777 so you can modify it from Admin with the define pages editor)

    and the last thing: create a new file includes/extra_datafiles/my_sidebox_filenames.php with this content:
    Code:
    <?php 
    define(FILENAME_DEFINE_MY_SIDEBOX,'define_my_sidebox');
    ?>
    One more question.. If this works I need to know how to give this box a different background than the other boxes on my site.. This box will have NO background graphics and will have a different colored font than all of the other site boxes..

    My Site: http://divawebdzine.com/clients/TreeLifePublishing
    Last edited by DivaVocals; 14 Feb 2007 at 08:26 AM.

  2. #2
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Page Editor Content In Sidebox?

    Okay.. so I've been looking at this old thread and the Blank Sidebox contribution.. I tried to combine the two, and I'm afraid I'm making a mess outta this.. So here's the question... How can I use content which can be edited via the Page Editor function within my newly created blank sidebox???

 

 

Similar Threads

  1. v150 Display Ez-Page Content in Sidebox
    By PrymlUrg in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 29 Oct 2014, 07:11 PM
  2. v139h Define page editor only shows page content in admin
    By maperr55 in forum General Questions
    Replies: 7
    Last Post: 14 Feb 2012, 08:33 PM
  3. Can I put sidebox content into an EZ-Page?
    By makenoiz in forum General Questions
    Replies: 1
    Last Post: 8 Feb 2010, 03:10 AM
  4. Home page content - not showing in Define Page Editor.
    By linda408 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Oct 2009, 12:14 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR