Looping through the multiple component links to get the schema name of the linked component in Dreamweaver TBB in SDL Tridion 2011

泪湿孤枕 提交于 2019-12-06 09:04:17

When you are looping over the values of a multi-value field (as you are doing here), the current value is available in a variable called Field. So if you just change your call to RenderComponentPresentation to refer to that, I think it should work:

<!-- TemplateBeginRepeat name="Fields.link" -->
    <!-- Not able to get the schema name of the linked component -->            
    @@RenderComponentPresentation(Field, "tcm:202-8142-32")@@
<!-- TemplateEndRepeat -->

I don't think it is possible for you to get the schema name using DWT. What you'll need to do is write a c# building block that extracts the values you are looking for, then puts this value into the package for you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!