New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
output of custom tt_address field content #7
Comments
Are you sure, the correct partial is loaded? (@see your issue #6 ) I do nothing special in the controlerAction of detail view. You should be able to add your own fields like with any other Extbase/Fluid extensions. |
Thanks for you reply. I'm not sure if the field is added to the DomainModel. The field is added via a custom extension. |
"Abstract" short explanation via Extensionbuilder This one is for fe_users, but i am pretty sure, it is a valid example also for tt_address, as soon as it comes to extend preexisting extbase domain models: And this one is IMHO an excellent summarization on the tx_news example: Very important: extending the model with your own model, something like that (pseudocode!! and therefore not code-tagged): class myNewExtendingTtAddressExtension extends TtAddressDomainModel { |
Vielen Dank für die Hinweise. Dies scheint allerdings meine Fähigkeiten bzgl. Ext.-Programmierung zu übersteigen... :-/ Im Template 'AddressItemDetail.html' erhalte ich weder für
Bin ich grundsätzlich auf dem richtigen Weg, oder komplett daneben? |
Grundsätzlich passt das. Probier doch mal so: |
Vielen Dank für die Hilfestellung. |
--> ich schrieb ja oben: pseudocode. den objektpfad zum Model hättest halt schon korrekt einfügen müssen. hab ich mich vielleicht zu unklar ausgedrückt. ;) |
Danke, ja, das wär prima! Wenn's dann funktioniert, hätte es gleich ein anschauliches Beispiel für die Erweiterung von tt_address für's Manual. |
Noch eine Idee: im TS-Setup hab ich noch nichts gemappt. |
Jetzt hab ich mal noch versucht, das TS-setup-Mapping umzusetzen. Leider immer noch ohne Erfolg, was die Ausgabe im Frontend betrifft. Anbei die aktuelle Version der Extension: |
Vielen Dank an meine Kollegin Elena! Sie hat gestern Nacht meinen stümperhaften Versuch noch gerade gerückt und auch gleich veröffentlicht: https://github.com/kuprienko/ttaddress_rtefield |
Sieht gut aus soweit. Nur noch ein Tipp: das was in der ext_tables.php steht, gehört vermutlich eigentlich in Configuration/TCA/Overrides/tt_address.php Da es sich aber insgesamt hier um ein "Anwenderproblem" handelt, werde ich das issue schliessen. |
I added an additional field to tt_address table: tx_ttaddressrtefield_rtecontent
This field is configured to appear as RTE field in Typo3 backend.
The output in the fluid partial template AddressItemDetail.html looks like this:
But... there is no output generated.
How to output custom field content?
The text was updated successfully, but these errors were encountered: