Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to edit the "Form" Tag in the Admin ?

Quote Reply
How to edit the "Form" Tag in the Admin ?
Hi,

I have added about 25 extra columns to my links table. When I want to add a link, I only need to fill out 1/3 of all the fields based on what I am adding to the database.

I have tried to replace the <%Form%> tag in the browser_link_add_form.html, but I really don't understand how this works. The main thing I want to do is reorganize the display of the fields so that an editor can add things quicker. Since fields in the <%form%> are ordered by ID, jumping through what needs to be filled out and what doesn't gets confusing.

I use a field called 'detailed_template'. It is a 'Enum' with 4 possible choices.

1)I want my editors to create a record with only a 'Title' and a 'Detailed_template', that will be saved but not yet validated.

2)For them to validate their new record, they will have to fill in the rest of the fields. These fields will appear based on the first 'Detailed_template' Enum choice like this:

<%if 'Detailed_template' eq'Links'%>

Fields for Links

<%elseif 'Detailed_template' eq'Images'%>

Fields for Images

etc.

<%endif%>

My problem is that the <%Detailed_template%> tag is not parsed or recognized. I do not have the perl knowledge to go and modify the browser.pm file, but I still need to find a way to not show fields that do not correspond to other 'Detailed_template' selections.



Any Ideas?

Thank you.
Subject Author Views Date
Thread How to edit the "Form" Tag in the Admin ? nt6 1560 Jun 3, 2002, 9:39 AM
Thread Re: [nt6] How to edit the "Form" Tag in the Admin ?
nt6 1486 Jun 4, 2002, 11:53 PM
Thread Re: [nt6] How to edit the "Form" Tag in the Admin ?
yogi 1489 Jun 5, 2002, 1:23 AM
Thread Re: [yogi] How to edit the "Form" Tag in the Admin ?
nt6 1473 Jun 6, 2002, 1:28 AM
Post Re: [nt6] How to edit the "Form" Tag in the Admin ?
stilton 1418 Oct 4, 2003, 8:02 AM