Maris Kalnins
|
Posted: 05/18/2003, 4:37 PM |
|
Hi!
PHP/CCS2.0.6.11
Can Link and ImageLink objects be hide by setting Visible = False?
I guess they should!
Simple example when it NOT works!
I have a page "test" that contains only one ImageLink object:
<a href="{ImageLink1}"><img src="{ImageLink1_Src}" border="0"></a>
In page's before_show event I have a code:
global $ImageLink1;
$ImageLink1 -> Visible = False;
For my big surprise ImageLink1 is still visible (even with Visible = False)
The same situation is for simple Link too!
What's wrong here? Can somebody explain?
Thanks.
Maris
|
|
|
Peter Haider
|
Posted: 05/19/2003, 8:15 AM |
|
Hi,
the problem, ccs works well! i am sure you work with php/templates.
What you have to do is, to enclose the field within the following html code
<!- BEGIN Image ImageLink1_src -->
<td><a href="{ImageLink1}"><img src="{ImageLink1_Src}" border="0"></a></td>
<!- END Image ImageLink1_src -->
Then you can use the property visible
rgds
Peter
"Maris Kalnins" <proximus@e-teliamtc.lv> schrieb im Newsbeitrag
news:ba95fs$bs9$1@news.codecharge.com...
> Hi!
>
> PHP/CCS2.0.6.11
> Can Link and ImageLink objects be hide by setting Visible = False?
> I guess they should!
>
> Simple example when it NOT works!
>
> I have a page "test" that contains only one ImageLink object:
>
> <a href="{ImageLink1}"><img src="{ImageLink1_Src}" border="0"></a>
>
> In page's before_show event I have a code:
>
> global $ImageLink1;
> $ImageLink1 -> Visible = False;
>
>
> For my big surprise ImageLink1 is still visible (even with Visible =
False)
> The same situation is for simple Link too!
> What's wrong here? Can somebody explain?
>
> Thanks.
> Maris
>
>
|
|
|
Maris Kalnins
|
Posted: 05/19/2003, 12:53 PM |
|
This solution works perfectly! :)
I just cannot get why when I add a link object to my page, CCS is not
generating
those <!-- BEGIN Link ImageLink1 --> and <!-- END Link ImageLink1 -->
automatically
Thanks a lot!
Maris
|
|
|
|