[Chameleon] Help on extending QueryResults in the Query Widget

LITTLE Nelson nelson.little at tenix.com
Wed Aug 29 21:23:12 EDT 2007


Hi all,

Some background: 

I am trying to extend the Query widget by manipulating the formatValue()
function in QueryResults.phtml. Basically I search the $value for a
special value (eg "more_info://") and if that value is found I then
manipulate the $retVal to be something like:

<a ref="test_query.phtml?mac=blah" target="_new">link</a>

This allows for the above embedded link to appear in the Query Results
page which the user can now click to give more detailed results.

So far so good...

Problem:

I wish the test_query.phtml to have the same look and feel as the
QueryResults.phtml page for consistency. How do I go about this? I
notice that in the construction of the QueryResults.phtml page it uses
things like:

1. <title><?php echo $oMLT->get( 'QueryResults', '3', 'Query Results' );
?></title>

2. <link href="<?php echo $szCSSFile; ?>" rel="stylesheet"
type="text/css">

3. <script language="JavaScript" src="<?php echo
$_SESSION['gszCoreWebPath']; ?>/widgets/js/cwc_dhtml.js"
type="text/javascript"></script>

4. $szHTML .= makeButton( 'closeWindow', '', 'Query',
"images/icon_close.png", $oMLT->get( 'common', 'Close', 'Close' ),
$oMLT->get( 'common', 'CloseTip', 'Close Dialog' ), array( 'width' => 75
) );

How do I incorporate those things in my "test_query.phtml" page? 

Any help most gratefully appreciated.

-Nelson

Disclaimer :
The contents of this e-mail including any attachments are intended only
for the person or entity to which this e-mail is addressed.  If you are not,
or believe you may not be, the intended recipient, please advise the sender
immediately by return e-mail, delete this e-mail and destroy any copies.
Tenix does not warrant nor guarantee that this email communication is free
from errors, virus, interception or interference.




More information about the Chameleon mailing list