首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在已发布项下找不到已发布的动态组件模板

在已发布项下找不到已发布的动态组件模板
EN

Stack Overflow用户
提问于 2012-10-10 06:54:44
回答 1查看 266关注 0票数 1

我是新的动态组件模板。

我已经创建了一个组件模板,并使它“发布为动态组件”,并允许“允许在页面上使用动态组装”。

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

我已经发布了这个组件模板,我正在试图找到已发布的CT。我在已发表的文章中没有找到这个CT。

Deployer必须使用动态CT,以及如何使用动态CT创建页面。

有什么办法解决这个问题吗?

编辑

Addinf storageconfig文件

代码语言:javascript
复制
<?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

提前谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-10-10 07:05:33

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

您可以指定自己的位置。

代码语言:javascript
复制
<ItemTypes defaultStorageId="Default Storage" cached="CACHE_BEHAVIOR">

    <Item typeMapping="ComponentPresentation" itemExtension=".Jsp" cached="CACHE_BEHAVIOR" storageId="DCPStorage" />
......
</ItemTypes>
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12813603

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档