Table friendly name

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

Table friendly name

Postby ADobkin » Mon Oct 25, 2010 6:54 am

In the details tab when viewing or editing a single record, the header shows:

Found x or x records in table xxx_xxxxx

BTW, note that it says "or", not "of" above. This appears to be a typo in lang/en.ini.

I am wondering if it is possible to display the "friendly name" for the table at the end of the above line, instead of the actual name in the database. For example, each table name is defined in the conf.ini file with a name that is used in the table tabs, but this is not used in the details controller. Likewise, it would be nice to use this name at the beginning of the bread crumbs, etc. Is there an option I can set somewhere or some other simple method to make this happen? If not the value from conf.ini, then I am thinking something similar to the field__display function in the delegate class.

Thanks,
Alan
ADobkin
 
Posts: 195
Joined: Mon Oct 22, 2007 7:31 pm
Location: Atlanta, GA, USA

Re: Table friendly name

Postby ADobkin » Thu Oct 28, 2010 6:16 am

BTW, I updated to version 1.2.6 after posting this topic, and just wanted to point out that the following typo bug is still in lang/en.ini:

found x records in table y = "<b>Found</b> $found or $total records in table <b><i>$table</i></b><br/><b>Now Showing</b> $cursor of $found"

It should be $found of $total.

Thanks!
Alan
ADobkin
 
Posts: 195
Joined: Mon Oct 22, 2007 7:31 pm
Location: Atlanta, GA, USA


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 31 guests

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