Adding fieldsets to templateDetails.xml
Closed this issue · 3 comments
I have followed the instruction on the "Getting Started", but whenever I add a new fieldset example:
fieldset name="style"
field name="theme" type="folderlist" default="madOrange" label="Select a theme" description="Select a jQueryUI theme" directory="templates/madtemplate/css/theme/" filter="" exclude="" stripext="" /
field name="TPL_MADTEMPLATE_PARAMETER_THEME_DOC" type="spacer" hr="false" /
/fieldset
The admin settings will not display the names correctly. Instead of "style" as the fieldset name, it shows "COM_TEMPLATES_Style_FIELDSET_LABEL"
(I followed the examples in the language files to set up my new options)
Have I done something wrong or is there another undocumented step to follow; or...?
Do you translate the string in template language file?
Am 04.12.2012 um 17:48 schrieb Chuck Middaugh notifications@github.com:
I have followed the instruction on the "Getting Started", but whenever I add a new fieldset example:
The admin settings will not display the names correctly. Instead of "style" as the fieldset name, it shows "COM_TEMPLATES_Style_FIELDSET_LABEL"
(I followed the examples in the language files to set up my new options)
Have I done something wrong or is there another undocumented step to follow; or...?
—
Reply to this email directly or view it on GitHub.
Yes, I did. I only need English for now but because the German language file already existed I did translate it for that file. (I'm still digging through the api docs to find any clues.) I should also mention that I'm only working with Joomla! 3.
If you use a language variable in templateDetails.xml lik
TPL_MADTEMPLATE_PARAMETER_THEME_DOC
you should put it in your language file under ROOT/language/en-GB/en-GB.tpl_frontend.ini
TPL_MADTEMPLATE_PARAMETER_THEME_DOC="My text here ..."