简体   繁体   English

Tridion UI - siteedit - 添加现有内容不使用正确的组件模板

[英]Tridion UI - siteedit - adding existing content does not use the correct component template

I am facing the following issue : In my Tridion UI/Experience Manager setup, I have created a content type from a schema with a specific Component template. 我面临以下问题:在我的Tridion UI / Experience Manager设置中,我已经从具有特定组件模板的模式创建了内容类型。 When I create new content based on this content type, it is added to the page correctly : with the component template I specified. 当我基于此内容类型创建新内容时,它会正确地添加到页面中:使用我指定的组件模板。

However, when I add existing content to the page, Tridion seems to select a different component template then the one I defined in my content type. 但是,当我向页面添加现有内容时,Tridion似乎选择了一个与我在内容类型中定义的组件模板不同的组件模板。

After some testing, I found out that it takes the oldest component template that is linked to my component's schema. 经过一些测试,我发现它需要最旧的组件模板链接到我的组件的模式。

Is there a way to configure which component template should be used by default when adding existing components ? 有没有办法在添加现有组件时配置默认情况下应该使用哪个组件模板?

Thanks for your help. 谢谢你的帮助。

It always takes the first Component Template that is allowed within the selected region and can be used with the Schema. 它始终采用所选区域内允许的第一个组件模板,并且可以与模式一起使用。 So you would need to ensure that there is only one option available if you wanted to set it to a specific template. 因此,如果要将其设置为特定模板,则需要确保只有一个选项可用。

I think Regions would be your best option to control adding components, since they define a "Content Type" in the general-Component Presentation-sense of the term. 我认为区域将是控制添加组件的最佳选择,因为它们在术语的通用组件表示中定义了“内容类型”。 Add a component and the region allows it with a defined schema. 添加组件,区域允许使用已定义的模式。

"Content Types," as defined in a publication, have a very similar concept to regions (Schema + Component Template), but also include: 出版物中定义的"Content Types,"与区域(模式+组件模板)具有非常相似的概念,但也包括:

  • Content Type Title
  • Content Type Description
  • Content Title
  • Prototype Component
  • Storage Location

Making and using these Content Types gives you the option to let authors quickly add content based on some prototype, but they're not directly related to the Component + Template in regions. 制作和使用这些Content Types为您提供了让作者根据某些原型快速添加内容的选项,但它们与区域中的组件+模板没有直接关系。

I like your idea for making the Component Template options easier to configure. 我喜欢你的想法,让组件模板选项更容易配置。 Consider submitting it on the Ideas site . 考虑在Ideas网站上提交。

In the meantime, consider adding one region surrounding your "main content" area to control how components get added. 在此期间,请考虑在“主要内容”区域周围添加一个区域,以控制如何添加组件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM