Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-09-21 14:10:34

Distrahera
Member
Registered: 2008-09-20
Posts: 30

Sectionsless tab menu

Hi good forum =)

Seems there is yet one answer I can not find around here. Here’s my problem:

I have a box with a tab-menu. This box should always show regardless of section. Inside the box there’s three menu items and a content area. The whole box should be deletable, meaning if there’s no content, the box should not appear empty – it should not exist.

The box is a form “articleBox” and takes care of itself, the whole box is there, not only content formatting. Have a look

My template call looks like this:
<txp:article_custom form="articleBox" limit="1" sort="Posted desc" />

My form has some html and gived the menu items a class “active” or “inactive” depending on article category name.
Example: <txp:if_article_category name="News">class="active"<txp:else />class="inactive"</txp:if_article_category>>

Now, the problem is I do not know what link to put for the content to change inside the box, without changing the section of the site, I guess it can not be done with site-url. I simply need the article to adjust to what menu item is currently active.

I bet there is a simple solution to this, im just too blind to see it.

Offline

#2 2008-09-23 20:59:38

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Sectionsless tab menu

Distrahera wrote:

I bet there is a simple solution to this

Don’t know if it’s simple, but have a look at jQuery plugin BogoTabs. Demo.

Offline

#3 2008-09-27 21:48:49

Distrahera
Member
Registered: 2008-09-20
Posts: 30

Re: Sectionsless tab menu

Thanks =) im checking into it now, it seems very well worked through. If I get it to work, it sjust what I needed. Saves me some time writing js ^^

Offline

#4 2008-09-27 22:44:14

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: Sectionsless tab menu

See also jQuery Plugin UI. It has a Tabs widget. It is well documented and has lots of options. There is also a tutorial here.

Last edited by joebaich (2008-09-28 05:12:09)

Offline

Board footer

Powered by FluxBB