Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Jan 2012
    Posts
    1
    Plugin Contributions
    0

    Default Re: Moving Sidebox to Center Column

    I am doing the same thing recently. Not sure if you have resolved the issue already. Anyway, let's share my solution:

    (I am moving the currencies sidebox from right column to center. So, I using this as the example)

    Right column sideboxes are handled by the module column_right.php, which then called the currencies.php.

    currencies.php makes use of 2 template files:
    1) common/tpl_box_default_right.php - Format of each right column sidebox
    2) sideboxes/tpl_currencies.php - Format of the currencies box content


    To move the currencies sidebox to center, you can override the currencies.php MODULE to make use of your own template (the last few line of the file).

    Remarks:
    Some variables are used in the above 2 template files and was set in the above 2 modules:
    a) $column_box_default in the file is the original box formatter, i.e. 'tpl_box_default_right.php'. You can ignore this if you have your own box design.
    b) $column_width in the file is the box width, which equals to the right column width (BOX_WIDTH_RIGHT). Again, You can ignore this if you have your own box design.
    c) $box_id = zen_get_box_id('currencies.php');. Suggest you to keep that for formality.


    Then, in the page belongs to center column that you want to add your box, add the following lines:

    $column_box_default = 'tpl_box_default_right.php';
    $column_width = BOX_WIDTH_RIGHT;
    $box_id = zen_get_box_id('currencies.php');
    require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/currencies.php');



    Oliver

  2. #12
    Join Date
    Aug 2011
    Location
    UK
    Posts
    41
    Plugin Contributions
    0

    Default Re: Moving Sidebox to Center Column

    Did anyone get this to work? I'd love to move the scrolling what's new box to the top of my home page, but don't know how to do it.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Moving sidebox headers off center
    By CaroleAs in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Nov 2010, 12:45 AM
  2. how do i move sidebox content to grid colum / column in center column
    By Mrchristoh in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 May 2009, 04:03 PM
  3. Manufacturer Info Sidebox to Single Column Center Box?
    By wasana in forum General Questions
    Replies: 0
    Last Post: 16 Jul 2007, 01:47 PM

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