Currently running 4.7.0. About to launch a multilingual site supporting English and Welsh (in parts!).
My site will be slightly different to other multilingual sites in that bodyText content will always be in English unless told otherwise. The welsh version of the site simply has a Welsh template which includes Welsh Navigation but the bodyText area will still be in English unless told otherwise.
I have implemented a RelatedCopyonCreation class (thanks to Relations Demo source files from Umbraco.TV) so that when a page is created in my English site it is also duplicated into the Welsh Site.
I plan to add a content picker on each Welsh page on my site. This
content picker will be used to select its English counterpart.
Has anyone had any experience of the creation of a macro which does this:-
First check if content exists in a bodyText field (in this instance Welsh)
If it does then display this bodyText (in this example Welsh) else show someotherbodyText (in this example it's English Equivalent which will be defined from the content picker)
So basically for 90% of the Welsh site, English text will appear which will be taken from its English related page. In the odd occassion that a Welsh page needs a unique bodyText content, this will be displayed instead.
If anyone has experienced this before and is able to provide help it would be much appreciated.
Have implemented your code and it's looking very close to working. .
The english version of a page is showing content correctly, at the moment the Welsh version (if its bodytext is left blank) is not displaying its english counterpart
My content picker has an alias of @englishpage - not sure if this needs to be implemented somewhere in the code you provided, please could you advise
Seb - you've just made my Friday, weekend and next few weeks great! Thank you ever so much, works fantastic, Time to start dancing now around the office :-)
Pushing Content Automatically to Related Nodes
Hi,
Currently running 4.7.0. About to launch a multilingual site supporting English and Welsh (in parts!).
My site will be slightly different to other multilingual sites in that bodyText content will always be in English unless told otherwise. The welsh version of the site simply has a Welsh template which includes Welsh Navigation but the bodyText area will still be in English unless told otherwise.
I have implemented a RelatedCopyonCreation class (thanks to Relations Demo source files from Umbraco.TV) so that when a page is created in my English site it is also duplicated into the Welsh Site.
I plan to add a content picker on each Welsh page on my site. This content picker will be used to select its English counterpart.
Has anyone had any experience of the creation of a macro which does this:-
First check if content exists in a bodyText field (in this instance Welsh)
If it does then display this bodyText (in this example Welsh) else show someotherbodyText (in this example it's English Equivalent which will be defined from the content picker)
So basically for 90% of the Welsh site, English text will appear which will be taken from its English related page. In the odd occassion that a Welsh page needs a unique bodyText content, this will be displayed instead.
If anyone has experienced this before and is able to provide help it would be much appreciated.
Many Thanks
Matt
Intentional bump ;-)
Hate doing this but intentiional bump number 2 ;-)
Strange that you haven't had an answer yet! Are you using XSLT or Razor?
In both cases this will be easy to do, here's an XSLT examle, off the top of my head:
Have implemented your code and it's looking very close to working. .
The english version of a page is showing content correctly, at the moment the Welsh version (if its bodytext is left blank) is not displaying its english counterpart
My content picker has an alias of @englishpage - not sure if this needs to be implemented somewhere in the code you provided, please could you advise
This is what i've got so far:-
Yup, change altContentPicker to englishpage and you should be good to go!
Seb - you've just made my Friday, weekend and next few weeks great! Thank you ever so much, works fantastic, Time to start dancing now around the office :-)
Happy to help, make sure to mark an answer as correct before you start dancing though. ;-) never mind, already done I see! ;)
is working on a reply...