Showing articles tagged with ANY "select" type

More
12 years 6 months ago #141 by sa
Let's say for example I have a tag type called "countries". It is a select type where i can select A, B, or C.

I know how to make a menu link to show results for all articles tagged with a particular country.

How do I make a menu link showing results for all articles tagged with ANY country?
I'd like to display the results in category blog format in order of most recent.

Is this possible? Thanks

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #143 by andrea_4g
That's a missing feature BUT there's a workaround.

The component already supports that kind of search, that we call tag group search.
The CP menu module actually generates the kind of URL you are asking for: it's associated to the field name.(see screenshot)

Once you have the url, you can make a menu item out of it.
Attachments:

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #277 by sa
Hi Andrea,

I was able to do this, but I noticed a small problem.

For the title of the results and the page itself, it shows the name, not the label of the variable.
For example, it shows "media_groups" instead of "Media Groups"

How can I fix this?

Thanks.

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #278 by andrea_4g
This inconsistency will be fixed with the next release of CP 20.
In the meanwhile you can change line 127 of file components/com_customproperties/models/search.php from:
Code:
if($tagname = getTagNamebyGid($tag['tagGid'])){
to
Code:
if($tagname = getTagLabelByGid($tag['tagGid'])){

Please Log in or Create an account to join the conversation.

Time to create page: 0.160 seconds