Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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
Offline
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
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
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
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