[Rt-devel] Formatting of scrips collection

Jerrad Pierce jpierce at cambridgeenergyalliance.org
Wed Apr 15 14:06:05 EDT 2009


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.


More information about the Rt-devel mailing list