Forums / Templates, Stylesheets, Page Layout / Drop Down menu in Ez-Pages

Drop Down menu in Ez-Pages

Views: 3,202

Results 1 to 9 of 9
1 Mar 2011, 2:52 AM
#1
wyocraft avatar

wyocraft

New Zenner

Join Date:
Dec 2008
Location:
Cheyenne WY
Posts:
25
Plugin Contributions:
0

Drop Down menu in Ez-Pages

Hello Everyone!!! I want to add a drop-down menu to my Ez-page

Here is the website https://www.3littleurchins.com

What I want to do is add the following submenu that opens up to new pages to the "New to Cloth?" ez-page. Anyone know how?

-Why Cloth?
-How many cloth diapers will I need?
-How to wash and care for cloth diapers.
-Cloth Diapers explained.
-FAQ's
-Cloth Diapering 101 classes.
-In-home consultation.

:frusty:

Thanks

1 Mar 2011, 3:17 AM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Drop Down menu in Ez-Pages

You could hard-code an HTML menu with links to the desired pages, but the best and easiest way would be to put all of the ez-pages you want listed in this menu into one "chapter" (top right in the ez-page editing page). Make sure Configuration > EZ-Page Settings > EZ-Pages Table of Contents for Chapters Status is set to 1.

The list of ez-pages will be displayed at the top of each page in the chapter. You can style that as a dropdown with CSS in your stylesheet. For finer control over the appearance, you might want to install the EZ-Page Improved TOC mod in Free Addons.

1 Mar 2011, 3:55 AM
#3
wyocraft avatar

wyocraft

New Zenner

Join Date:
Dec 2008
Location:
Cheyenne WY
Posts:
25
Plugin Contributions:
0

Re: Drop Down menu in Ez-Pages

That worked, Not exactly what I wanted but the wife liked it so its good for me then. I wanted a drop down menu off the header. Thanks

1 Mar 2011, 5:25 AM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Drop Down menu in Ez-Pages

Add to your stylesheet

#navEZPagesTOC {display: none;}
#navEZPagesTOCWrapper:hover #navEZPagesTOC {display: block; position: absolute; border: 1px solid #aaccff; background: #ffffff;}

2 Mar 2011, 12:14 AM
#5
wyocraft avatar

wyocraft

New Zenner

Join Date:
Dec 2008
Location:
Cheyenne WY
Posts:
25
Plugin Contributions:
0

Re: Drop Down menu in Ez-Pages

I am really new to this whole php and style sheet erra. I need to pick up some good books to help because what you just put makes appsolutly no sense to me.

2 Mar 2011, 11:25 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Drop Down menu in Ez-Pages

Copy and paste exactly the code I posted into the bottom of your /includes/templates/your_template/css/stylesheet.css (replace your_template with whatever your template foldername is). This will make the TOC into a dropdown when you move your mouse over the "Table of Contents" title.

There is a ton of info on the web about CSS; try https://www.w3schools.com for a good introduction (they also have "try-it" pages where you can practice and see the results instantly.)

5 Mar 2011, 12:23 AM
#7
wyocraft avatar

wyocraft

New Zenner

Join Date:
Dec 2008
Location:
Cheyenne WY
Posts:
25
Plugin Contributions:
0

Re: Drop Down menu in Ez-Pages

I tried it, I works, just in the wrong place go to http://3littleurchins.com/index.php?main_page=page&id=4&chapter=1 and put your mouse over the table of contents and the drop down appears there and not in the easy bar. any other things I should look at

5 Mar 2011, 2:13 AM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Drop Down menu in Ez-Pages

Sorry, I didn't say that those style rules would put a dropdown in the header; it just turns the TOC into a dropdown.
To get it in the ez-pages header bar would take a bunch of custom PHP coding.

5 Mar 2011, 3:58 AM
#9
wyocraft avatar

wyocraft

New Zenner

Join Date:
Dec 2008
Location:
Cheyenne WY
Posts:
25
Plugin Contributions:
0

Re: Drop Down menu in Ez-Pages

Crap, ok thats fine, your orignal solution was good enough for the boss "Wife" who I am building this for. Thanks for the help!!! You seam to be good at this can you take a look at another post I have about an issue with putting to many items in the cart and not showing

http://www.zen-cart.com/forum/showthread.php?t=175661