【问题标题】:Published dynamic component template not found under published items在已发布项目下未找到已发布动态组件模板
【发布时间】:2012-10-10 06:54:44
【问题描述】:

我是动态组件模板的新手。

我创建了一个组件模板并将其“发布为动态组件”并允许“使用动态组件在页面上允许”。

我的系统中没有配置 Deployer,所有已发布的项目都存储在某个本地位置。

我已发布此组件模板,我正在尝试查找已发布的 CT。 我在已发表的文章中没有找到此 CT​​。

部署者必须使用动态 CT 以及如何使用动态 CT 创建页面。

任何人都可以为此提供一些解决方案吗?

编辑

添加存储配置文件。

<?xml version="1.0" encoding="UTF-8"?>
<Configuration Version="6.1"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="schemas/cd_storage_conf.xsd">
    <Global>
        <!--Optional:-->
        <ObjectCache Enabled="false">
            <!--Optional:-->
            <Policy Type="LRU" Class="com.tridion.cache.LRUPolicy">

                <Param Name="MemSize" Value="16mb"/>
            </Policy>


            <Features>
                <Feature Type="DependencyTracker" Class="com.tridion.cache.DependencyTracker"/>
            </Features>

        </ObjectCache>

        <Storages>

            <Storage Type="persistence" Id="defaultdb" dialect="MSSQL" Class="com.tridion.storage.persistence.JPADAOFactory" defaultStorage="true">
                <Pool Type="jdbc" Size="5" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120" />
                <DataSource Class="com.microsoft.sqlserver.jdbc.SQLServerDataSource">
                    <Property Name="serverName" Value="MyserverName" />
                    <Property Name="portNumber" Value="MYPORT" />
                    <Property Name="databaseName" Value="Tridion_Broker" />
                    <Property Name="user" Value="TridionBrokerUser" />
                    <Property Name="password" Value="MyPassword" />
                </DataSource>
            </Storage>



            <Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="defaultFile" defaultFilesystem="false">
                <Root Path="c:\temp" />
            </Storage>
            <Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="defaultDataFile" defaultFilesystem="true" defaultStorage="false">
                <Root Path="c:\temp\data" />
            </Storage>


        </Storages>

    </Global>

    <ItemTypes defaultStorageId="defaultdb" cached="false">

        <Item typeMapping="Page" cached="false" storageId="defaultFile"/>


            <Item typeMapping="ComponentPresentation" itemExtension=".Jsp" storageId="defaultFile"/>
            <Item typeMapping="ComponentPresentation" itemExtension=".Asp" storageId="defaultFile"/>
            <Item typeMapping="ComponentPresentation" itemExtension=".Xml" storageId="defaultFile"/>
            <Item typeMapping="ComponentPresentation" itemExtension=".Txt" storageId="defaultFile"/>

    </ItemTypes>


</Configuration>

再次明确我已经发布了动态组件模板,虽然 CT 已发布,但我无法在服务器的已发布项目中找到。已发布的项目存储在 c:\temp

提前致谢。

【问题讨论】:

  • 让我们从头开始。您是否将该动态 CT 链接到模式?您是否有基于该架构的组件?该组件是否在 GUI 中标记为“已发布”?也就是说:图标上是不是有个小地球仪?
  • @Quirjin。我已将该动态 CT 链接到架构。我已将架构链接到 CT。我已经发布了 CT 和组件。两者都已发布,并且地球位于图标顶部。
  • 即使在指定了它的位置之后。我无法在已发布的项目下找到 CT。

标签: tridion tridion-2011 tridion-content-delivery


【解决方案1】:

请检查您的存储配置文件 (cd_storage_conf.xml) 中的动态 CP 位置。如果您没有指定,它将使用默认位置。

您可以指定自己的位置

<ItemTypes defaultStorageId="Default Storage" cached="CACHE_BEHAVIOR">

    <Item typeMapping="ComponentPresentation" itemExtension=".Jsp" cached="CACHE_BEHAVIOR" storageId="DCPStorage" />
......
</ItemTypes>

【讨论】:

  • 感谢您的帮助。在 cd_storage_config.xml 中,我看到了声明 。但它在那里两次并发表了评论。你是指这个吗?
  • 从 () 此处检查位置.. 如果未指定。
  • @User222 -- 正如 Vikas 所说,您应该关注
  • @vikaskumar,@Ram S 。我在 xml 中有这个。。但它的注释。
  • @User222 您是否从 CMS 验证 DCP 是否已发布?
猜你喜欢
  • 1970-01-01
  • 2015-11-18
  • 2021-02-10
  • 1970-01-01
  • 1970-01-01
  • 2012-04-13
  • 2018-09-18
  • 2020-02-24
  • 1970-01-01
相关资源
最近更新 更多