Frans
|
| Posted: 06/26/2003, 7:14 AM |
|
Hello,
In the old CC i opened all my links in a new window. I'm no using CCS and tried to add a Custom before show event.
$fldclub_url="<a href=http://" . $fldclub_url . " target=_new>" . $fldclub_url_desc . " </a>";
But this wont work.
I have set the gridfield to label.
Another way is to use the CCS manner, but than it won't open in a new window.
Any suggestions?
Frans
|
|
|
 |
rrodgers
|
| Posted: 06/26/2003, 9:20 AM |
|
I always use target="_blank" to open a new window.
rob
|
|
|
 |
Frans
|
| Posted: 06/27/2003, 12:07 AM |
|
Rob,
The problem is that the label field won't act as a url. So it is not clickable. The before show event doesn't work in CCS.
Regards,
Frans
|
|
|
 |
rrodgers
|
| Posted: 06/27/2003, 5:24 AM |
|
>>The problem is that the label field won't act as a url. So it is not >>clickable. The before show event doesn't work in CCS.
Have you gone through the tutorial? All this is covered there.
Changing a Grid Field to a link.
Changing the display text of a grid field.
All my grid fields have a before show event by default. so I am not sure why yours don't.
One thing that may work for you is to change the control type from label to link.
Right click on the label. Choose "Change To" from the context menu. Select "Link" from the sub menu.
rob
|
|
|
 |
Frans
|
| Posted: 06/27/2003, 2:55 PM |
|
>>Right click on the label. Choose "Change To" from the context menu. Select "Link" from the sub menu.
I found the Codecharge Solution. It is a manner of positioning your mouse in the design window.
This is wat i did.
Changed the field to Link. Clicked somewhere in this field. And then in the properties box Format tab you can specify the target. So no special code is needed.
In the old Codecharge App i did a lot of Custom things and now i wan't to addept them in CCS wich isn't needed because CCS has the right tools for it.
Another thing that frustrated me was that if there were any parameters in the url they were sent with the url, so i changed that to POST instead of GET.
I'm now working with images. They are stored on my harddrive and the locatation and image_filename are stored in the database. Have you implemented this. Any tips maybe.
Many thanks so far.
Frans
|
|
|
 |