Zen Cart Logo
Forums / General Questions / Separate sidebox for each chapter of EZ Pages?

Separate sidebox for each chapter of EZ Pages?

Views: 827

Results 1 to 7 of 7
3 Feb 2012, 8:45 PM
#1
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

Separate sidebox for each chapter of EZ Pages?

Version v150, no upgrade, fresh install, the modules installed are Advanced Shipper, TinyMCE, and Blank Sidebox, all installed via FTP. I've customized a few CSS things (mainly the width of the shop and the side columns).
I've also disabled a lot of the blocks that were in the side columns.
Yes I've looked in the FAQ/Tutorials and searched the forum and haven't found an answer.

I want to have one sidebox that displays links to pages in chapter 10, and then have a different sidebox that displays links to pages in chapter 20... is this possible?

3 Feb 2012, 8:49 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Separate sidebox for each chapter of EZ Pages?

You would need to clone the EZ-Pages TOC sidebox mod from Free Addons, and modify each clone to look up and display only a certain chapter's links.

4 Feb 2012, 3:57 AM
#3
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

Re: Separate sidebox for each chapter of EZ Pages?

I read all about that mod and I don't think it does what I want it to do.

I have the box on the right side which has this in the sourcecode:

<h3 class="rightBoxHeading" id="ezpagesHeading">Informational Links</h3>
<div id="ezpagesContent" class="sideBoxContent">

It contains every EZ-page that I create that I set to show up on the right sidebox, regardless of what chapter it is.

What I want is for that box to ONLY display chapter 10 pages.

I want ANOTHER box, also on the right, but further down, that ONLY displays chapter 20 pages.

That mod you linked to didn't seem to do anything of the sort and would be far, far beyond my very limited coding skills to hack into what I need. Hell I couldn't get that mod to even show a box at all, let alone one with specific content, nor did it prevent chapter 20 pages from showing up in my top box.

Does anyone have any idea how I can accomplish this? The chapter 20 pages are entirely different stuff and would look stupid mixed in with the chapter 10 pages in the same sidebox.

4 Feb 2012, 2:02 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Separate sidebox for each chapter of EZ Pages?

For starters, you could give the chapter 10 pages lower sort orders than all of the chapter 20 pages so they are in distinct groups. With the Ezpages Improved Menus mod, you can put a heading above each group and give them the appearance of separate boxes. Not entirely separate in different places, but clearly different topics.
If you want more separation than that, you will need to do some coding.

The TOC sidebox as standard will only appear when you are looking at one of the pages in a chapter. It could be reworked, but I would have to look closely to find out how.

4 Feb 2012, 2:26 PM
#5
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

Re: Separate sidebox for each chapter of EZ Pages?

What I did for now, which isn't very elegant, was make a new editable sidebox, and make all the chapter 20 pages set to "no" for display anywhere, then for the content of the editable sidebox I hard-coded a link to each of the chapter 20 pages. It works ok but it's a lot of upkeep for later (when my dad takes over managing the site--he's not too technical with computers/websites).

4 Feb 2012, 2:41 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Separate sidebox for each chapter of EZ Pages?

Do you have an actual need for the two groups to be in widely separated places on the page? Would they work well if the chapter 20 links were in a separate group below the chapter 10 links? If so, the method I described will work perfectly and require no maintenance aside from assigning low vs. high sort order numbers when creating new pages.

4 Feb 2012, 6:52 PM
#7
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

Re: Separate sidebox for each chapter of EZ Pages?

Well chapter 10 is pages with info about the products and the company. Chapter 20 is customer feedback (the site has been getting feedback for almost a decade--we have no reviews yet, but wanted to share some review-like content). They have nothing to do with each other. Besides, the box with chapter 10 stuff in it is labeled "Informational Links" which doesn't fit customer feedback at all.