Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Localize name of ElementBlock that has the same name as a default ElementBlock but different namespace?

$
0
0

Hi!
I have created a "custom" elementblock called TextElementBlock that uses my own namespace (MyProject.Elements.TextElementBlock), however this inherits from the EPiServer Forms default elementblock thast also named "TextElementBlock".. now I want to localize my TextElementBlocks name to for instance "Text element", but from my understanding the format of the lang-files does not allow this, or do they?

from what I know there is no way to specify a namespace or something for the contenttypes in the contenttypes-xml-element.

So for instance this:

...

<contenttypes>

<textelementblock>

<name>Text element</name>

</textelementblock>

</contenttypes>

...

Should translate both the "standard" TextElementBlock and my custom one to "Text element", since Im not definying any namespace or which textelementblock.

However.. what happens is that this translation gets fully ignored and instead my custom TextElementBlock gets the name of "TextElementBlock(1)".. which makes even less sense to me..

So the question boils down to:
How could I set a translation for a custom ElementBlock that shares the same name as any already existing ElementBlock (but they both have different namespaces)?


Viewing all articles
Browse latest Browse all 8020

Trending Articles