Forum Discussion
VarunGrazitti
11 years agoBoss
I don't think that's possible, the rest call is made in the context of the current skin.
bowenli
11 years agoAce
We have multiple skins in the community. our blog page is using Skin B, our test component is installed on that blog page.
<#assign imgUrl = restadmin(message.author.@href + "/profiles/avatar/size/profile").image.url />
In the component, we have this freemarker code. but it returns the wrong image size(from Skin A; Community homepage is using Skin A).
Any ideas?
- VarunGrazitti11 years agoBossThis is returning the size from the content of the main skin, make sure that you make the call in the skin B, inside the context of the blog.
- bowenli11 years agoAceVarunGrazitti
Yeah , the component was placed in the BlogPage ,which was in Skin B. But it still got the image width setting from Skin A.- VarunGrazitti11 years agoBossThis is strange. However, I think this is due to the fact that your Skin A is the parent skin to B, is that correct?
Related Content
- 9 days ago
- 5 years ago
- 11 months ago