datadoit
|
| Posted: 10/07/2007, 9:04 AM |
|
rickielee wrote:
> Hi there
>
> I want to modify a link/URL (stored in a DB field) before displaying it (I use
> the BeforeShow event of a Link component).
>
> It seems impossible to use the SetValue() to set the modified link...
>
> However I can use the SetLink() function inside my code but I noticed that
> SetLink() always makes sure that the URL ends with a slash "/"...
>
> Any way to avoid the end-slash?
>
> Thx,
>
> ---------------------------------------
Check to make sure the link's Visibility is set to 'Dynamic'. This'll
put the necessary <!-- BEGIN Link --><!-- END Link --> tags in the HTML.
With that, this means that the name of the link can't be altered in
the HTML. What I mean by this is that it MUST have the curly brackets
around the name:
Ex: <!-- BEGIN Link --><a href="{Link_Src}">{Link}</a><!-- END Link -->
Then in the Link's BeforeShow you can use SetValue(). In fact, without
a SetValue() your link will not even display since it won't have a value.
As far as your trailing slash on your SetLink(), dunno. Provide some
version info's as far as PHP, web server, platform, etc.
|
|
|
 |
|