Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-03-01 13:55:00

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Subsections in textpattern, using categories

Hello,
Yes, I know its a years old question.
I’m not really looking to make sections work as subsections, which I guess can be achieved partially through adi_menu. But still the much required domain.com/section/subsection kind of URL architecture is not available with adi_menu.

Months ago I thought my problem was solved by gbp_permanent_links using categories as the subsections. But couple of days ago I found a weird bug(it adds the last clicked category name in front of every section name generated by the <txp:section_list /> or adi_menu.) and I cant seem to find a good solution for that.

here’s the link to that post if you know a solution to above problem.

So the main question,

does anyone know a way to get this kind of architecture in textpattern:
www.domain.com/products/product1/

If yes then kindly guide me, I’d love to learn.

Thanks for your precious time. I’m a Textpattern lover & a noob, so please be kind. :)

Last edited by vineonardo (2012-03-01 14:03:26)

Offline

#2 2012-03-01 21:28:07

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

Re: Subsections in textpattern, using categories

vineonardo wrote:

does anyone know a way to get this kind of architecture in textpattern:
www.domain.com/products/product1/

Product = section and product1 = category?
Is that all you need, or do you also need /products/product1/article-title? Or would /products/article-title be acceptable?

Offline

#3 2012-03-02 06:56:48

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: Subsections in textpattern, using categories

Thank you Els,

Yes, Product = section and product1 = category1
I need /products/product1/article-title. So that user can directly type the url according to his/her need.

For example, lets say its a cell phone company’s website.
And they have mobile phones, accessories, support etc.

So user should be able to type url like this, lets say the company is Nokia.

Then the url would be, www.nokia.com/mobiles/touch-screen/

So all the touch-screen devices will be shown.

This is exactly the way I need it. Right now I’m just looking forward to get a two-tier architecture(if that’s correct terminology). In my future projects, I might need a multi-tier architecture. Right now the only clue that I’ve got for that kind of architecture is, using Parent primary category and secondary child category which will make architecture as follows:

www.domain.com/section/primary-category/secondary-category/article-title

For huge (but simple) websites like a website of shopping mall where we have many products, hundreds of categories exist, I guess we’ll need above said architecture.

I’m sure there are many of Txp users who will be hunting for such kind of url structure. Some might have found a way to get it done or some might have just found a work-around. I’m trying to educate myself with your kind help. :)

Thanks again!

Offline

#4 2012-03-02 07:56:44

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,001
Website GitHub

Re: Subsections in textpattern, using categories

This isn’t one of txp’s strong points and you can’t do it like that out of the box (the other scheme Els mentioned you can). You’ll need to use gbp_permanent_links for an url structure of the kind you mention. The plugin is powerful but not well documented (partly because it can cover so many situations) and I usually struggle for a while before getting it to work.


TXP Builders – finely-crafted code, design and txp

Offline

#5 2012-03-02 11:19:09

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: Subsections in textpattern, using categories

jakob wrote:

The plugin is powerful but not well documented (partly because it can cover so many situations) and I usually struggle for a while before getting it to work.

Hey Jakob, thanks for the reply.
Do you happen to know how to overcome this issue?

Offline

#6 2012-03-02 20:43:22

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

Re: Subsections in textpattern, using categories

vineonardo wrote:

I need /products/product1/article-title.

In that case, like jakob said, I can’t think of another way but gbp_permanent_links.

So that user can directly type the url according to his/her need.

Just wondering why you would want users to do that, it doesn’t seem like the most efficient way to search and navigate a site…

Offline

#7 2012-03-03 06:07:03

vineonardo
Member
Registered: 2011-08-31
Posts: 128
Website

Re: Subsections in textpattern, using categories

Els wrote:

Just wondering why you would want users to do that, it doesn’t seem like the most efficient way to search and navigate a site…

Thanks Els,
Well, that’s not exactly how I want users to navigate. :p
I’m just trying to make sure that the urls are clean & easy to remember.

I’m pretty convinced from the very beginning that gbp_permanent_links is the only solution but then it still leaves my first question unanswered about this plugin. Why this plugin doesnt work properly with auto-generated navigation (like the one generated by <txp:section_list /> and <txp:adi_menu />) and how can I get it to work with auto generated navigation?

Here is the question I’ve already posted about the above problem. Kindly enlighten me about it if possible :)

Thanks again.

Last edited by vineonardo (2012-03-03 06:08:56)

Offline

#8 2012-03-03 09:57:49

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

Re: Subsections in textpattern, using categories

vineonardo wrote:

Here is the question I’ve already posted about the above problem. Kindly enlighten me about it if possible :)

I have seen your post, and I’m still thinking about it. I am using the plugin on one site without problems. But I remember having had a similar issue like the one you are experiencing on another site a long time ago. I’m still searching my memory (and the plugin thread) to find out if and how it was solved.

Offline

Board footer

Powered by FluxBB