Record link problem

A place for users and developers of the Xataface to discuss and receive support.

Record link problem

Postby 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 (<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
pyroboynroses
 
Posts: 24
Joined: Thu Feb 04, 2010 2:26 am

Re: Record link problem

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Record link problem

Postby pyroboynroses » Tue Feb 09, 2010 11:39 am

Thank you !

This works perfectly !!
pyroboynroses
 
Posts: 24
Joined: Thu Feb 04, 2010 2:26 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 25 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved