Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2014-05-14 13:36:28
- txpdevcoder
- Member
- Registered: 2012-06-07
- Posts: 58
Breadcrumb
Hi all
I am having trouble building a breadcrumb by hand as none of the plugins or built in breadcrumb does what i need.
I have a site with a lot of articles that are filed into three sections and then categorized using NESTED categories. The site does not use category tags to display articles. This is just for organisation, we needed the pages to have normal URLs, not a category URL.
I need the breadcrumb to show a link to a page that is a category level above the page currently being viewed and ONLY show a link to a page that has BOTH categories of “some-course” + “course-range”. This page has links to the articles in categories categories immediately below it.
I am trying to use a combination of smd_parent (to climb up a level in the category tree) and smd_if to pull an article that has category1 AND category2 exactly matching two categories.
My breadcrumb will look like:
HOME > SECTION LINK > ARTICLE PERMLINK THAT IS A CATEGORY LEVEL ABOVE CURRENT VIEWED PAGE
the permlink to the article must be the article that has a category1 AND category2 that matches “current-category” and “course-range”
“current-category” means the category that is the parent category of the current page being viewed
There is only one article at each level that has a “course-range” category assigned to it. I need the link to point to this article.
I can’t get this to work, but im sure its possible. Any ideas?
Thanks :)
Offline
Re: Breadcrumb
I’m sure it’s possible, but your description is a little head-scratching without seeing it in context. Would you please be able to do one of the following:
- Show a few examples of the category/article hierarchy and a jot of code you’ve tried to solve it so far (thus I can replicate it in my dev environment to help solve it).
- Post/send me a link to the site if it’s publicly accessible.
- Send me a Txp login so I can see it in action and tinker with it directly online.
- Drop me a MySQL dump of your txp_category table and (a portion of) your textpattern table.
Either of those should be able to mean a faster resolution, rather than me try to start from scratch to create a working environment to play. Thanks.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Online
#3 2014-05-14 13:58:22
- txpdevcoder
- Member
- Registered: 2012-06-07
- Posts: 58
Re: Breadcrumb
Brilliant! I was hoping you would spot the question :)
Thanks for the help, The site is publicly accessible but still in development so i do not want to post its details here. I will send you access details directly.
I really appreciate the offer of help.
Offline
Pages: 1