Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Category browser default select values

Quote Reply
Category browser default select values
Hi,

I've just upgraded to 2.1.1 after using 1.13 for the past couple of years (a server hd failure wiped all my data Frown) and I'm having a bit of trouble with the category browser.

I've searched the forums and can't seem to find any related articles, so here goes:

I have added some new select fields to the category table and when I add a category using the 'Database' menu option the default values are automatically selected on the form.

However when I use the 'Browse' menu option and try to add a new sub-category, the default select values are not set on the form and the select boxes simply have '---'.

When I look at the source code for each form the 'Database' form shows the <option>x<selected> HTML, whereas the <selected> is not present in the 'Browser' form.

Any idea how I would update this, since I'd like to use the browser to add new categories, but without the default values selected it'll be a nightmare moving the mouse down and manually updating each field for each new category.

Any help appreciated.

All the best
Shaun
Quote Reply
Re: [qango] Category browser default select values In reply to
Quango,

Database > Links > Properties > Your Column > Change Default.

Last edited by:

giovanni: Aug 6, 2002, 1:08 PM
Quote Reply
Re: [giovanni] Category browser default select values In reply to
Giovanni,

Thank you for the reply, however I'm not sure you read my post correctly.

I'm aware of how to set the default value for a field, but if you read my original post you will see that I'm having trouble with the category browser - it does not appear to pre-select the default values for my fields when I use the 'add' form.

If anyone can assist with this I'd appreciate it.

All the best
Shaun
Quote Reply
Re: [qango] Category browser default select values In reply to
Whilst wary of being patronising, I would like to ask whether or not you have repeated the values that you have entered for your select column in the Values, Form Names and Form Values text-areas. With me, it all works perfectly, however one needs to cut and paste the values into all three text-areas, in the exact same order. I have never had any problem with it selecting default values, whether it be in the browse or the Database > Add menu system.
Quote Reply
Re: [giovanni] Category browser default select values In reply to
Giovanni,

Thanks, no you're not being patronising, but yes they are all present and correct - this is why I'm asking for assistance.

I assume the default behavour is for it to work and to pre-select the default values in both methods of calling the 'add' category form, however for some unknown reason mine isn't working as expected in 'browse' mode and I wondered if anyone could shed any light on it.

All the best
Shaun
Quote Reply
Re: [qango] Category browser default select values In reply to
Just to let you know your not alone - I just checked mine out and it does exactly the same. I only use the database option to add categories so I hadn't come across it before. I think this must be a bug that needs fixing and to fix it yourself I think you will need to edit the browser.pm file.

Laura.
The UK High Street
Quote Reply
Re: [afinlr] Category browser default select values In reply to
Hi,

I've figured this out now. Here's what I did in case its useful for other people:

In Browser.pm at sub category_add_form there's a section called ADD CATEGORY FORM CONSTRUCTION.

In the input => { } section there is a list of defaults. I added the names of my custom fields and the default values I want on the form and it now works as expected Smile

All the best
Shaun