Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-05-02 12:57:50

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Main article switching by section/categor (taken by a Wordpress theme)

Hello everyone,

I saw this nice theme for WordPress and I’m looking for a similar one for Textpattern but it seems that doesn’t exist, for the moment. In particular I’d like to obtain the effect to change the main article (the one under the site title) clickin’ on the name of the category (it may be the section, in Txp).

Someone has obtained something similar in his own Txp site?

Thanks in advance.

Last edited by candyman (2008-05-02 12:58:26)

Offline

#2 2008-05-02 14:59:54

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: Main article switching by section/categor (taken by a Wordpress theme)

In particular I’d like to obtain the effect to change the main article (the one under the site title) clickin’ on the name of the category.

That’s just a set of divs whose visibility is switched via JS when you click on the tabs. It uses its own function but you could for instance use the jquery tabs to achieve the same in the cms of your choice. In your example they are styled to look like separate buttons rather than tabs but in essence the same.

It wouldn’t actually switch between sections – the sample doesn’t switch between categories, it switches between sample content from that category – but you could of course pull in content from different sections. You’d set it up by using txp:article_custom to generate a series of divs with the relevant tab content. Check out the page source of the site you linked to to see how it was done.


TXP Builders – finely-crafted code, design and txp

Offline

#3 2008-05-02 17:35:44

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: Main article switching by section/categor (taken by a Wordpress theme)

Thyank you for the clear explanation, Jakob. Nice to see that you colud use the built in jQuery.

Offline

Board footer

Powered by FluxBB