cleyan
Posts: 136
|
Posted: 03/29/2009, 7:05 PM |
|
Hi,
would be great if the propeties target and title could came from the database as the other properties of an link object.
Regards
Carlos
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net |
|
|
melvyn
Posts: 333
|
Posted: 03/29/2009, 10:33 PM |
|
They can now. Simply place a label and put it's name in the property as {title} or {target}
_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com |
|
|
cleyan
Posts: 136
|
Posted: 03/30/2009, 12:34 PM |
|
but if I try to put a label inside a link, I receive an error from codecharge, how you do that?
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net |
|
|
melvyn
Posts: 333
|
Posted: 03/31/2009, 9:06 AM |
|
You can always place a label at your entire pleasure, inside whatever you like.
When you open the HTML view you can see the code, like this:
<a href="{producto_Src}" id="productosRowComponentsproducto_{productos:rowNumber}">{producto}</a>
So, if you modify it in html mode and place a label, when you open the properties windows you can see the added labels, which are <a href="#" target="{your_label}" title="{another_label}"
Example:
<a href="{seccion_Src}" id="productosRowComponentsseccion_{productos:rowNumber}" target="{target}"
title="{title}">{seccion}</a> »
So, you can create a label and place it anywhere and assign it via the windows properties. Yes I know you want something more....
_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com |
|
|
paulmason411
Posts: 127
|
Posted: 04/08/2009, 7:21 PM |
|
A tidier way IMO is to use page attributes.
Right click anywhere in the html code an click add attribute.
Call the attribute 'test' and the source type as 'expression'.
Then add the following custom code for the 'before show' for the page:
$Component->Attributes->SetValue('test', 'database_variable');
_________________
http://paulmason.name - Web Development Blog
|
|
|
|