Record link problem
Archived from the Xataface Users forum.
pyroboynroses — Tue Feb 09, 2010 10:58 am
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 (Acheter avec Paypal).
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.
shannah — Tue Feb 09, 2010 11:16 am
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
pyroboynroses — Tue Feb 09, 2010 11:39 am
Thank you !
This works perfectly !!