Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

New field on add page help?

Quote Reply
New field on add page help?
I've added a new field to both the links table and the validate table called Link_Type, and I'm now trying to get it to replace the tag <%Link_Type%> in the add template but it's coming back with 'Unkown Tag: Link_Type'. It's working fine in the admin area, and is displaying the drop down list correctly.

Does anyone know if I need to add something in somewhere else to make it available in the add template? In HTML_templates? I know in a post on Pugdogs FAQ site Alex mentioned that with new additions to the Categories table you need to add a line into nph-build, but I've got no idea about this one.

Can anyone help?

Cheers, Regan.

Quote Reply
Re: New field on add page help? In reply to
You need to define the drop-down menu in the sub site_html_add_form and sub site_html_add_failure routines in the HTML_Templates.pm. You also need to define the Link_Type tag as follows:

Code:

Link_Type => $linktype,


Regards,

Eliot Lee

Quote Reply
Re: New field on add page help? In reply to
Thanks Eliot,

Does that mean that new menus in 'any' of the user templates need to be defined in the appropriate routines, as the scripts don't pull the information out of the .def files like it does for the admin area?

Thanks, Regan.

Quote Reply
Re: New field on add page help? In reply to
Yes.

Regards,

Eliot Lee

Quote Reply
Re: New field on add page help? In reply to
Thanks Eliot! It's working great!

r.

Quote Reply
Re: New field on add page help? In reply to
You're welcome.

Regards,

Eliot Lee