Ask Your Question
1

Support for ?start_over + ?tags

asked 2011-05-05 11:20:20 -0500

Benoit gravatar image Benoit flag of United States
865 22 8 31

updated 2011-05-05 13:20:16 -0500

We're trying to let the "user" narrow the scope of the questions displayed by using tags, but in a non-compounding way. We would like the user to be able to craft a URL that has the following behavior:

 questions/?set_tags=tag1   - Displays questions that have tag1.
 questions/?set_tags=tag2   - Displays questions that have tag2.

Note that with the current behavior, after the 2nd URL, we would display questions with tag1 and tag2 only.

Askbot supports tags via the /questions/?tags=tag1,tag2 URL. However, the tags "accumulate".
For example, I can do /questions/?tags=tag1 which displays all the tag1 questions.
After, I do a /questions/?tags=tag2 which will then display tag1 AND tag 2 questions.

I can clear the tags with the /questions/?start_over=true

What we would like is the ability to have a URL that always starts over. What I was thinking is compounding the URL elements:

   questions/?start_over=true?tags=tag1,tag2

That's not supported right now... with ?start_over=true, we clear the filter in all cases and don't apply the tags.

As an alternative, we could have a different URL like ?display_tags=tag1,tag2 which would always start-over. This might make for a nicer URL.

delete close flag offensive retag edit

Comments

A permanent link to list matching tags? Btw, the separator symbol is & between the parameters, not '?'. Evgeny ( 2011-05-05 11:54:50 -0500 )edit
Do you want to completely disable the "tag compounding?" upon clicking the tags? Evgeny ( 2011-05-05 13:32:32 -0500 )edit
look at my branch...This is strictly a URL level feature...normal askbot behavior is unaffected. Clicking on a tag decorator still uses the ?tags. Benoit ( 2011-05-05 13:34:52 -0500 )edit
Got it, thanks! it will work for the "command line" people :). For the rest of the humanity there needs to be a more accessible way... Evgeny ( 2011-05-05 13:53:42 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-05-05 11:45:35 -0500

Evgeny gravatar image Evgeny flag of Chile
11044 50 84 182
http://askbot.org/

updated 2011-05-05 11:46:57 -0500

Benoit, it is not clear unfortunately what you expect... Clicking the logo always resets entire search query (tags, query string, goes back to default scope - "all" and sort order - by decscending activity).

There is one extra detail. If you do search, then go to some question, then hit the "questions" tab - you get back to the search results, but if you hit "questions" again, everything should reset.

Do you somehow get stuck that you can't reset the tags? I may be specific to your fork.

link publish delete flag offensive edit

Comments

Actually, I figured out how to implement it :) got the new set_tags command that does what I want. I'll check it in my branch shortly. Benoit ( 2011-05-05 13:21:11 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2011-05-05 11:20:20 -0500

Seen: 35 times

Last updated: May 05 '11