This I suspect is going to be a total Newbie question, which is fair because although I have been developing FOR a couple of Umbraco 7 sites, this is the first time I have deployed/developed a brand new Umbraco site.
One of the tools I need for Admins of this site will be to set percentage surcharge figures onto prices being returned from an external webservice. As a result, I wanted to add a new top Section called 'Surcharges' (e.g 'Content Media Settings ... Surcharges).
When I add this to the package.manifest for the Surcharges folder in App_Plugins, nothing appears:
With a custom section etc in the backoffice, the name is used as a 'key' to look up the relevant translation of a name to display in the appropriate language for the current user.
So if you create a folder called 'Lang' in your /app_plugins/mycustomsection folder
and in there add a file called en-us.xml
(the name of the file matches the language code of the user, en-us is usually the default)
Umbraco 8 - Custom Dashboard - Language Settings
Hi,
This I suspect is going to be a total Newbie question, which is fair because although I have been developing FOR a couple of Umbraco 7 sites, this is the first time I have deployed/developed a brand new Umbraco site.
One of the tools I need for Admins of this site will be to set percentage surcharge figures onto prices being returned from an external webservice. As a result, I wanted to add a new top Section called 'Surcharges' (e.g 'Content Media Settings ... Surcharges).
When I add this to the package.manifest for the Surcharges folder in App_Plugins, nothing appears:
I can however get a link to appear within the Content section using the following:
However, this renders out the word 'Surcharges' with additional [] brackets:
Anyone got a clue how to get a new Section or at the very least how to get rid of the square brackets?!!
Thanks in advance!
Hi Alastair
There is some documentation here: https://our.umbraco.com/Documentation/Extending/Language-Files/Language-Files-For-Packages/
about adding 'language files' for packages,
With a custom section etc in the backoffice, the name is used as a 'key' to look up the relevant translation of a name to display in the appropriate language for the current user.
So if you create a folder called 'Lang' in your /app_plugins/mycustomsection folder
and in there add a file called en-us.xml
(the name of the file matches the language code of the user, en-us is usually the default)
and in this file and the following xml:
then you should 'lose the square brackets'
regards
marc
Hi Marc,
Thanks for the response. It's still stuck with [] though!
So, I've now got a folder structure like:
The package.manifest looks like:
and the en-US.xml file is:
and I still get:
Ideally I'd like a whole section up here:
But that can wait... ;)
Hi Alastair
Marc is close but the key's are slightly wrong
https://github.com/umbraco/Umbraco-CMS/blob/v8/dev/src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml#L2119-L2130
So the area with the alias sections needs to change as following
Then that should work.
Cheers,
Warren :)
Thanks Warren! Much appreciated! :D
Thanks also to Marc for getting me closer than I was before his original reply!
is working on a reply...