Still having issues with the second sidebox showing the same content as the first.
Anyone have any suggestions?
http://hiddenhillsnursery.com/shoppingcart
Still having issues with the second sidebox showing the same content as the first.
Anyone have any suggestions?
http://hiddenhillsnursery.com/shoppingcart
As far as I know, you have to duplicate all the files to your new editable sidebox name ie, editable_sidebox_defines_2.php and so forth.
Then you have to change all the instances within the new files to match your 2nd editable sidebox name.
File is editable_sidebox_defines_2.php
instance: BOX_HEADING_EDITABLE_SIDEBOX
change to: BOX_HEADING_EDITABLE_SIDEBOX_2
instance: DEFINE_EDITABLE_SIDEBOX_NAME
change to: DEFINE_EDITABLE_SIDEBOX_NAME_2
and so forth.
Do that for the file in modules/sideboxes
Here's how I have mine set up
$show_editable_sidebox_2 = true;
$define_sidebox = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', DEFINE_EDITABLE_SIDEBOX_NAME_2, 'false');
if ($show_editable_sidebox_2 == true) {
require($template->get_template_dir('tpl_editable_sidebox_2.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_editable_sidebox_2.php');
$title = BOX_HEADING_EDITABLE_SIDEBOX_2;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
After I did all this, it worked. 2nd I had to upload all the files. individually because I have a template monster template. I know...shame on me.
www.wildsociety.com
On my website where it says Los Angeles, New York, Chicago, San Francisco on the right and Authorize.net on the left are two separate editable sideboxes.
Hope this works for you.
Thanks ironcross,
I will compare the code you supplied with what I have. I have done all the renaming and the sidebox shows up, but it is drawing it's content from the first define_editable_ sidebox_content.php file. I need to figure how to make it draw from the second defines page.
I will see if I missed something by comparing the codes.
Thanks
I got mine to work for a second instance, EXCEPT I am getting the same header name.
Any thoughts?
http://www.flagshipmodels.com/zencart
I had the same issue as in your first question and found that my problem came from the editable_sidebox.php file (includes/modules/sideboxes/editable_sidebox.php) so I thought I would share in case anyone else faces this.
Look at like 15 which reads:
$define_sidebox = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', DEFINE_COMEDIANS_SIDEBOX_NAME, 'false')
After '/html_includes/ I added the name of my override folder so that it looks like this:
$define_sidebox = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/custom/', DEFINE_COMEDIANS_SIDEBOX_NAME, 'false')
Now I am able to store all of my files in the appropriate override folders and edit via admin.
Sorry, I don't know how to put the code in the nice little window that scrolls inside of this post. LOL, I don't even know how to describe what that box is called. If anyone feels like sharing that information, I will be happy to post that way in the future.
Have fun!!!
Faith
Hi,
What's the best way to place a link to a new page into the sidebox I have tried:
$content .= '<?php echo '<a href="' . zen_href_link( PAGE_NAME, '' ) . '">Link Text</a>'; ?>';
It does not like it?
I just used the. It worked for me.Code:<a href="www.yoursite.com">YOUR TEXT</a>
I am still having the issue with my second box showing the same content as the first....any one?????????
http://hiddenhillsnursery.com/shopping cart
I was having the same problem so I went through each of the files again and searched for the word 'editable'. I eventually stumbled across one that I had missed.
Are you sure that you haven't missed one somewhere too? If that isn't the case, then I don't have the knowledge to help you...wish I did.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Bookmarks