Timeline for How to localize a Component in the SDL Tridion JS Framework (Anguilla) 2011?
Current License: CC BY-SA 3.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 22, 2016 at 11:11 | vote | accept | Bogdan Spark | ||
Dec 20, 2015 at 1:49 | history | tweeted | twitter.com/StackTridion/status/678391820209037312 | ||
Dec 16, 2015 at 10:03 | answer | added | Bogdan Spark | timeline score: 2 | |
Dec 15, 2015 at 11:16 | comment | added | Peter Kjaer | That seems like a workaround that should not be needed. | |
Dec 15, 2015 at 10:31 | history | edited | Bart Koopman | CC BY-SA 3.0 |
edited tags; edited tags; edited tags
|
Dec 15, 2015 at 9:05 | comment | added | Bogdan Spark | Solved the problem like this: 1. Instead of loading the component to check if is localized, I used a sync call: tridion.Web.UI.ContentManager.General.GetItem(childComponentId, $const.OpenMode.VIEW, onSuccess, onFail, null, true). This is returning an xml from the server. 2. onSuccess I checked the xml for the "tcm:IsLocalized" element and if true, localized the component with childComponent.localize(true); | |
Dec 15, 2015 at 8:53 | comment | added | Peter Kjaer | You missed an end curly brace ("}") for the else statement in seoComponentAfterLoad. But other than that, I see no issues with the code and it's working fine for me. Perhaps the problem is what the component you are using? Check that it's not checked out or localized or under workflow and that it's actually shared from a parent Publication. | |
Dec 14, 2015 at 15:53 | history | edited | Bogdan Spark | CC BY-SA 3.0 |
config comments
|
Dec 14, 2015 at 15:08 | comment | added | Bogdan Spark | I added the rest of the code involved in loading the component and also some configuration settings. | |
Dec 14, 2015 at 15:07 | history | edited | Bogdan Spark | CC BY-SA 3.0 |
added 384 characters in body
|
Dec 14, 2015 at 14:56 | history | edited | Bogdan Spark | CC BY-SA 3.0 |
added 384 characters in body
|
Dec 14, 2015 at 14:54 | comment | added | Peter Kjaer | Maybe you could post the full code? Or at least the smallest amount of code you can reproduce the issue with. Also please tag it with the version you are using :) | |
Dec 14, 2015 at 14:53 | comment | added | Bogdan Spark | no, I am checking isLocalized() | |
Dec 14, 2015 at 14:47 | comment | added | Peter Kjaer | Any chance you're accidentally checking isLocalizable instead of isLocalized? That would indeed return false if it's already localized... | |
Dec 14, 2015 at 14:37 | comment | added | Peter Kjaer | What version is this? I just tried the same on my local instance and it worked fine... | |
Dec 14, 2015 at 14:28 | history | asked | Bogdan Spark | CC BY-SA 3.0 |