anyone know how i can get the %title_linked% to appear on the add_success page? i just get "Unkown Tag: title_linked" when i try it.
Aug 28, 1999, 7:19 AM
Veteran / Moderator (6956 posts)
Aug 28, 1999, 7:19 AM
Post #2 of 8
Views: 2439
You need to add:
title_linked => &build_linked_title,
to the parameters passed in HTML_Templates.pm
But, I think the problem is a bit deeper. The cgi-generated forms do not know what level you are in, and you'll always return "Top"
If you want to make the add/modify forms context sensitive, I think a bit of code has to be added to let the program know where you want it to think it is.
title_linked => &build_linked_title,
to the parameters passed in HTML_Templates.pm
But, I think the problem is a bit deeper. The cgi-generated forms do not know what level you are in, and you'll always return "Top"
If you want to make the add/modify forms context sensitive, I think a bit of code has to be added to let the program know where you want it to think it is.
Sep 25, 1999, 7:57 AM
Veteran / Moderator (6956 posts)
Sep 25, 1999, 7:57 AM
Post #7 of 8
Views: 2439
The line goes into the %globals array at the top of the HTML_Templates.pm file in the LINKS directory.
This is where the templates are generated from, and it's analogous to the site_html_templates.pl file from links 2.0
If you were using a set of templates with a templates.cfg file, you need to import that file into the html_templates.pm file, and declare all the variables with 'my ()' to make it mod_perl/strict compatible.
Make sure each pair in the %globals hash ends with a ',' _except_ the last one before the '}' and that that has a ';' after it.
This is where the templates are generated from, and it's analogous to the site_html_templates.pl file from links 2.0
If you were using a set of templates with a templates.cfg file, you need to import that file into the html_templates.pm file, and declare all the variables with 'my ()' to make it mod_perl/strict compatible.
Make sure each pair in the %globals hash ends with a ',' _except_ the last one before the '}' and that that has a ';' after it.