[Interchange-bugs] [Bug 284] New - bar_link link template presidence

bugzilla-daemon@interchange.redhat.com bugzilla-daemon@interchange.redhat.com
Sun Jul 29 17:58:00 2001


http://developer.akopia.com/bugs/show_bug.cgi?id=284

*** shadow/284	Sun Jul 29 17:57:00 2001
--- shadow/284.tmp.32519	Sun Jul 29 17:57:00 2001
***************
*** 0 ****
--- 1,46 ----
+ Bug#: 284
+ Product: Interchange
+ Version: 4.7.x
+ Platform: PC
+ OS/Version: Windows 2000
+ Status: NEW   
+ Resolution: 
+ Severity: enhancement
+ Priority: P2
+ Component: Foundation
+ AssignedTo: bpatters@redhat.com                            
+ ReportedBy: jonc@webmaint.net               
+ URL: 
+ Cc: 
+ Summary: bar_link link template presidence
+ 
+ just working with the bar_link sub. (in 4.6.5 but not expecting change there ;-)
+ 
+ presidence of a link template is currently:
+ 
+ 1) database record
+ 2) passed from page
+ 3) from variable in catalog.cfg
+ 4) <A HREF="$URL$" CLASS="barlink">$ANCHOR$</A>
+ 
+ it would make more sense (to me) to allow a per page override of the database 
+ setting, for example to use the same category search (which has a db set 
+ template) on a page where you want to use different anchor text.
+ 
+ Can I suggest a v.small change to:
+ 
+ 1) passed from page
+ 2) database record
+ 3) from variable in catalog.cfg
+ 4) <A HREF="$URL$" CLASS="barlink">$ANCHOR$</A>
+ 
+ code change would be at the bottom of the sub:
+ 
+ 	my $tmpl = $extra
+ 			 || $record->{link_template}
+ 			 || $Variable->{BAR_LINK_TEMPLATE}
+ 			 || q{<A HREF="$URL$" CLASS="barlink">$ANCHOR$</A>};
+ 
+ thanks,
+ 
+ Jonathan.