Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-06-18 10:59:56

philipashlock
Member
From: Bellingham, Washington - USA
Registered: 2004-06-20
Posts: 58
Website

linklist not responding the category in URL (not context sensitive)

I’m using TXP 4.03 and noticed that the page with my txp:linklist output wasn’t responding to categories when I manually changed the URL (?c=category) or used a tag or plugin to generate a list of link categories (eg rss_linkcat_list).

I hacked the linklist function to fix the problem, but can’t figure out why I should’ve had to do this.

in taghandlers.php I changed a few lines for the linklist function (line 179);

I changed <code>global $thislink;</code> to <code>global $thislink, $c;</code>

and I added

<code>if($c && !$category) $category = $c;</code>

just before <code>$qparts = array(</code>

This hack seems like it should be completely unnecessary, so if anyone knows what might have caused the problem, please let me know.

Thanks.

Offline

#2 2006-06-19 02:04:46

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: linklist not responding the category in URL (not context sensitive)

The category in the url is for article categories, that’s why. It currently works like article_custom, ignoring categories and sections. Changing that now would cause unexpected behaviour for others.

My suggestion would be to request a context sensitivity option from whatever link plugin’s author.

Offline

Board footer

Powered by FluxBB