
jpierce at cambridgeenergyalliance
Apr 15, 2009, 11:06 AM
Post #1 of 1
(722 views)
Permalink
|
|
Formatting of scrips collection
|
|
Hi all, It seems very odd to me that the pages which lists scrips don't link the template name to the actual template page, so I decided to try and do so, however I'm running into some problems. The query which fetches the collection is something like: SELECT * FROM Scrips WHERE (Queue = '0') ORDER BY Description; Where the returned column Template is the ID of the associated template. Yet, share/html/Admin/Elements/EditScrips' format __Template__ is turned into the template name when displayed, and I cannot find anything that would be doing this... I've checked ParseFormat, CollectionList, Scrips & Scrips_Overlay.pm We obviously want to have the name for display purposes, but the ID is necessary for linking by changing __Template__ in $Format to: .qq{'<a href="__WebPath__$dir_path/Template.html?Template=__***__&Queue=$id">__Template__</a>'}; Any ideas? TIA -- Cambridge Energy Alliance: Save money. Save the planet. _______________________________________________ List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
|