Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-05 17:12:00

roelof
Member
Registered: 2005-03-27
Posts: 647

can i make such a menu with Textpattern.

Hello,

I was surfing and i found on another cms a menu which like me very much.
Especially the vertical menu

I found it here : http://typo3.org/documentation/document-library/extension-manuals/foldoutmenu/1.1.0/view/1/1/#id2786705

Can i make such a menu with textpattern ?

Regards,

Roelof

Offline

#2 2007-03-05 19:48:25

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: can i make such a menu with Textpattern.

for the user-side of your website?

of course!

Offline

#3 2007-03-05 20:16:22

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: can i make such a menu with Textpattern.

Oke,

And what’s the best way to make such a menu as the 1st level will be the categories and the second level the sections ?

Roelof

Offline

#4 2007-03-05 20:44:58

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: can i make such a menu with Textpattern.

you’re going to have to custom build the plugin or code that generates the menu for you. but it’s doable.

Offline

#5 2007-03-05 20:50:00

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: can i make such a menu with Textpattern.

Oke,

But it’s not doable for me, im not a programmer.
I only have knowledge of html and css and not of php or javascript.

Roelof

Offline

#6 2007-03-05 20:52:46

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: can i make such a menu with Textpattern.

You can hire me to do it. :)

Offline

#7 2007-03-05 21:39:19

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: can i make such a menu with Textpattern.

You can build a multi-level, context aware, nested category list with stw_category_tree And here’s a js solution for making a list behave that way.

Last edited by mrdale (2007-03-05 22:09:24)

Offline

#8 2007-03-06 11:54:45

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: can i make such a menu with Textpattern.

Thank you,

But in the article was the solution of Dave Lindquist not reachable.
I like the pure css menu but with 3 years and 12 monts a year it will be a long menu.

Roelof

Offline

#9 2007-07-11 16:24:55

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: can i make such a menu with Textpattern.

Dale,

Have you made the solution above (expanding menu) work with stw_category_tree? I’ve been working on it, but can’t seem to make it happen. stw_category_tree applies an id= to the <ul> and not a class=. I tried altering the javascript, but no luck.

Any suggestions or examples would be appreciated.

Cheers,

Tom

UPDATE

Modified stw_category_tree to add class= and all is working well.

Find this line of code:
return array(stw_tabs($level-1).doWrap(array("\n".$out),$vars['wraptag'],"","","",($vars['css_id'] && $level==1) ? ' id="'.$vars['css_id'].'"' : ""),$count_subtotal);

Replace with:
return array(stw_tabs($level-1).doWrap(array("\n".$out),$vars['wraptag'],"","","",($vars['css_id'] && $level==1) ? ' class="'.$vars['css_id'].'"' : ""),$count_subtotal);

Now you can use stw_category_tree with attribute cssid="aqtree3".
and the Javascript and CSS from here to make an expanding category list.

Now to figure out how to create an “active” class so you know where the hell you are. : )


Tom

Last edited by renobird (2007-07-11 17:52:08)

Offline

#10 2007-07-12 15:10:41

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: can i make such a menu with Textpattern.

renobird wrote:

Now to figure out how to create an “active” class so you know where the hell you are. : )

how about onclass="active"

Offline

#11 2007-07-12 16:36:30

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: can i make such a menu with Textpattern.

mrdale wrote

how about onclass=“active”

Had that happening, but couldn’t get the tree to stay expanded.

eventually solved it with this bit of CSS (which seems painfully obvious now):

ul.aqtree3 li.active ul { display: block; }

Now the active class can be styled, and the tree stays open for the current category.
Seems to work pretty well. Haven’t had a chance to do any testing in IE yet. Fingers are crossed.


Tom

Offline

#12 2008-01-18 02:35:32

Alfie
Member
Registered: 2007-11-06
Posts: 40

Re: can i make such a menu with Textpattern.

Hi did you ever release this, intreaged on the final result?

Alfie

Offline

Board footer

Powered by FluxBB