Chip Cotton
|
| Posted: 07/03/2002, 10:37 AM |
|
Hey, I searched UP AND DOWN in the help file, and the website, and
HERE. PLEASE don't tell me to RTFM, I HAVE.
Q: I'm hard coding this now, is *that* what I have to do?
I have two database field "ext_link_name" and "ext_link_url"
On a grid form, I want the the ext_link_name field to hyperlink to the
external website (not the codecharge website) at ext_link_url.
I've been up and down the "Link:" properties and I just don't see
where in those properties you set the Label field, Url field.
|
|
|
 |
Chip Cotton
|
| Posted: 07/03/2002, 10:54 AM |
|
OK, Due to problems with Codecharge wanting to reformat my HTML, I
have since written a beforeshow() event:
//Creating a link (UGH!)
//Custom Code @24-2A29BDB7
// -------------------------
global $news_item;
$linkvalue = $news_item->a_link_url->getvalue();
if ($linkvalue) {
$news_item->a_link_url->setvalue('<a href="' . $linkvalue . '">Link to
story</a>');
}
I have simply created a "Link to story" link. The strength of doing
it this way (unless there is a way that may be answered?) is that the
Link will not appear if it does not exist.
I really have to say, while there are some pluses in this system, the
more I work with it and come up to things that should be SIMPLE like
this one (and including <?php> code inside the HTML) , the more I'm
saying UGH! to myself...
|
|
|
 |
|