Would you help a newbie in changing the Category Browser form ?

I'd like the seach to concentrate on just 1 category . Right now, the choice for Content Type is for "all" or "My Category". I don't want to give a choice. I just want the search on "My Category". Also, I like the only choice to be "all terms". I guess I'd like to do away with the "Scope" choices and default to "My Category" and "all Items".

Is this doable?

Thanks in advance

CommentFileSizeAuthor
#2 Cat_Brow.gif17.44 KBaskttt

Comments

nancydru’s picture

Status: Active » Postponed (maintainer needs more info)

If you add an "all" on the end of a taxonomy/term/xx URL (i.e. "taxonomy/term/xx/all") it should get all child terms for that term. But it sounds more like you want something like "taxonomy/vocabulary/xx". I thought there were modules out there that did that, but I couldn't locate them. Certainly I know how to do this; I'm just not sure where to put it. The most logical place would be in the TIDbits module that I am still developing. (You can get some idea of what might be in it at http://nanwich.info/drupal_collection/taxonomy_snippets).

As far as the scope choice, you would actually want "any" - meaning any of the chosen terms. Specifying "all" would probably result in no records found, as it means "nodes having terms 1 and 2 and 3 and 4...". If you disable the Node Type Filter, the content type choice would go away.

askttt’s picture

StatusFileSize
new17.44 KB

I'm not sure I communicated my intentions well so I've attached a screenshot.

nancydru’s picture

Turn off Node Type Filter, and "all" will happen automatically. Content type of "all" means everything, including "Tour Company" (but also, story, page, etc.).

Next go into your theme's style.css and add:

.taxonomy_browser_radios {
  display: none;
}
askttt’s picture

On "Content Type" I only want "Tour Company"
On "Items Containing I want "ALL"

nancydru’s picture

Assigned: Unassigned » nancydru

Oh. "Items containing will default to "all," so that's not a problem.

The other part, hmmmm.

nancydru’s picture

There should be a new 6.x-1.x-dev version rolling out in an hour. Try it first yourself, please, so you can see if it looks right. Then add this to your CSS.

.taxonomy_browser_scope {
  display: none;
}
askttt’s picture

Thank you!

nancydru’s picture

Status: Postponed (maintainer needs more info) » Fixed

I assume that means it does what you wanted?

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.