Page 1 of 1

Record link problem

PostPosted: Tue Feb 09, 2010 10:58 am
by pyroboynroses
Hi guys !!

I have a little problem in Xataface :

I have a table with a text field.

when I create a new entry, I fill this field with a html link (<a href="paypal_buttons/pack15.php">Acheter avec Paypal</a>).

I would like this link to be clickable directly in the list tab but there is no link.

However, if I select the detail view of the record, I can clik on this link.

So how to have a clickable link in the list tab view ???

Thanks for your help. :D

Re: Record link problem

PostPosted: Tue Feb 09, 2010 11:16 am
by shannah
The list view strips out HTML by default. You can implement the fieldname__renderCell() method to override this behavior if you like:
Code: Select all
function fieldname__renderCell($record){
    return $record->val('fieldname');
}


And you'll also need to turn off the automatic link in that cell. In the fields.ini file section for your field:
Code: Select all
[fieldname]
noLinkFromListView=1

Re: Record link problem

PostPosted: Tue Feb 09, 2010 11:39 am
by pyroboynroses
Thank you !

This works perfectly !!