[TYPO3-english] adding new field to pages table and display value
Éric Thibault
Eric.Thibault at dc.ulaval.ca
Wed Jun 27 14:42:56 CEST 2012
Hello to all!
I want to add a new field 'urlTranslation' to the "Pages" form and display it in page header... I've created a new extension and added successfully my new field and it shows OK in the "Pages" form (page properties) in the "extended" tab.
But now that my new field is available, how can I show its value on a page? I would like its value to appear in the page header like this:
<script type="text/javascript">
var urlTranslation = "the realurl URL equivalent (if possible...)";
</script>
I use Templavoila...
When I modify a page, I get that data structure (small subset here...)
T3lib_TCEmain Object
[datamap]
[pages]
[7]
[tx_addurltranslation_urltranslation] => 2482 (id of a page)
Thanks a million times!
Eric Thibault
More information about the TYPO3-english
mailing list