Gossamer Forum
Home : Products : Gossamer Links : Discussions :

show only selected links when browsing categories

Quote Reply
show only selected links when browsing categories
Hello,

When each link contains a language field, I understand it will allow to filter the search results to only get links in a certain language. (http://admin:admin@www.gossamer-threads.com/...ew=&sb=&vc=1)

Can the same be done for the categories?
I mean, is it possible to browse categories that show only links in an certain language (So when I browse a categorie I only want to see links where the language field is set to for instance language=english)

Hope someone can help me out.

rudi@tielemans.be


Quote Reply
Re: show only selected links when browsing categories In reply to
It would be more complicated than what pugdog and I outlined...You would have to match categories and links via the CatLinks table...it may be possible to use the new LOOP template feature in Links SQL v.2.05, but I don't gaurantee that this the answer.

Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: show only selected links when browsing categories In reply to
Hi,

You couldn't do this without going into the code. You'd want to look at Links/Build.pm and sub build_category. Basically check if language=english is passed in, then add a condition to the query that generates the list of links.

Cheers,

Alex

--
Gossamer Threads Inc.