[TYPO3-realty] Adding new checkboxes "yes" instead of "1"
Florian Rachor
f.rachor at ar-solutions.eu
Tue Mar 16 08:28:22 CET 2010
Hi Oli,
I found it, thank you for the quick response. Sometimes one tends to be
extremely blind. I scanned through the class before but didn't see it.
For the record, if you add a new option an want it to display as "yes"
instead of "1" modify the file /pi1/class.tx_realty_pi1_Formatter.php like
this (line 180):
case 'tx_yourext_youroption':
// Add more fields here...
case 'heating_included':
// The fallthrough is intended.
case 'has_air_conditioning':
// The fallthrough is intended.
case 'has_pool':
// The fallthrough is intended.
case 'has_community_pool':
// The fallthrough is intended.
case 'rented':
// The fallthrough is intended.
case 'balcony':
// The fallthrough is intended.
case 'garden':
// The fallthrough is intended.
case 'elevator':
// The fallthrough is intended.
case 'barrier_free':
// The fallthrough is intended.
case 'assisted_living':
// The fallthrough is intended.
case 'fitted_kitchen':
$result = ($realtyObject->getProperty($key)
== 1)
? $this->translate('message_yes')
: '';
break;
Florian
-----Ursprüngliche Nachricht-----
Von: typo3-project-realty-bounces at lists.typo3.org
[mailto:typo3-project-realty-bounces at lists.typo3.org] Im Auftrag von Oliver
Klee
Gesendet: Montag, 15. März 2010 19:15
An: typo3-project-realty at lists.typo3.org
Betreff: Re: [TYPO3-realty] Adding new checkboxes "yes" instead of "1"
Hi,
Florian Rachor schrieb:
> I wrote a simple extension and added the option "Loggia" to the overview
> table. This works fine but the table shows "1" instead of "yes". Does
> somebody know how I can change this behavior? I searched through "realty"
> but I didn't find the file where the rewrite is done.
Have a look at the pi1 formatter class.
Oli
--
Certified TYPO3 Integrator | TYPO3 Security Team Member
_______________________________________________
TYPO3-project-realty mailing list
TYPO3-project-realty at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-realty
More information about the TYPO3-project-realty
mailing list