Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-02-25 20:52:51

CodeWalker
Member
From: Hampshire, UK
Registered: 2010-01-08
Posts: 110
Website

Custom Category Section?

Little bit stuck here. Im trying create a portfolio type website. The home page is using article custom to pull thumbnail images of work from a “work” section. These image thumbnails have an icon on them that indicates the category they fall into. I had wanted to make this icon clickable and you then see a list of all pieces of work that also full into that category.

The problem – no article tag, as i am using article custom instead. when it trys to list articles in that category, it cant using the default page. can i set a custom section or page for categories?

Is there any way to setup a custom category section? I dont want to use article tags on the home page as all the stuff im pulling in is on other parts of the site. Two article custom tags pull in articles from the blog section and the latest four pieces work from the work section. thats all i need.

How do i make those icons clickable but only show a list of stuff from the work section? Is it doable?

Thanks, I hope that made sense!

Last edited by CodeWalker (2012-02-25 20:54:31)

Offline

#2 2012-02-26 09:31:40

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

Re: Custom Category Section?

I am not sure i understund what you need but you can create category link refering to a section like this:

<txp:category section="work" link="1" title="1" />

if i am not understund correctly please explain more.

Cheers

Offline

#3 2012-03-02 20:39:28

qrayg
Member
From: USA
Registered: 2004-08-27
Posts: 81
Website

Re: Custom Category Section?

I’m not sure if it’s best practice, but I always use a single page for my sites and do a bunch of if statements for the different layouts that I need. Through a lot of trial and error I’ve found that this technique works very well for listing articles in different situations. I’ve used it to display article information based on category.

Last edited by qrayg (2012-03-02 21:09:43)

Offline

Board footer

Powered by FluxBB