演示错误 - SmartTarget 页面 [英] Presentation Error - SmartTarget Page

查看:46
本文介绍了演示错误 - SmartTarget 页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开一个配置了 SmartTarget 的网页时,我收到两个不同的错误:

When I open an Webpage with SmartTarget configured, I am getting two different errors:

我第一次收到此错误:

Server Error in '/' Application.
--------------------------------------------------------------------------------
com/tridion/marketingsolution/profile/Contact
================================================
Some configured classpath roots cannot be found
================================================
ClassPath           : C:\tridion\Publicationsites\TestRD\staging\bin\bin

我不确定第 2 行是如何进入图片的,但是当我在现有的 bin 文件夹中添加另一个 bin 文件夹时,错误就出现了.任何配置文件有问题吗?

I am not sure how Line 2, comes into the picture, but when I add another bin folder within the already existing bin folder, the error goes. Is something wrong with any of the config file?

在应用上述错误的解决方法后打开页面时,我收到以下错误

When I open the page after I apply the workaround for the above error, I receive the following error

Unknown server tag 'smarttarget:Query'.
<smarttarget:Query View="lister" AllowDuplicates="true" Timeout="5000"
                  Publication="tcm:0-14-1" runat="server" Id="as"> 
Line 3: <smarttarget:Item runat="server" TemplateUri="tcm:14-1319-32"
                          ComponentUri="tcm:14-1321"></smarttarget:Item>

我需要在哪里添加 smarttarget 标签?它应该在 web.config 文件中吗?你能分享一下语法吗?我试图准确地实现实时文档中提到的 ST.有什么需要我重新检查的地方吗?

Where do I need to add the smarttarget tag? Should it be in the web.config file? Can you please share the syntax. I have tried to accurately implement the ST as mentioned in the live docs. Any area that I need to recheck?

我正在下面粘贴我的复合页面模板的屏幕截图:

I am pasting a screenshot of my Compound Page Template below:

当我发布此页面时,Main Page Design TBB 中的 HTML 标记根本没有发布.aspx 页面中仅存在由将 SmartTarget 添加到促销 TBB 生成的标记.

When I publish this page, the HTML markup present in the Main Page Design TBB is not published at all. Only the markup generated by the Add SmartTarget to Promotion TBB exist in the aspx Page.

<smarttarget:Query View="lister" AllowDuplicates="true" Timeout="5000"
                       Publication="tcm:0-14-1" runat="server" Id="as"> 
    <smarttarget:Item runat="server" TemplateUri="tcm:14-1319-32"
                              ComponentUri="tcm:14-1321"></smarttarget:Item> 

    <smarttarget:Promotions MaxItems="2" Region="sidebar" runat="server"> 
        <ItemTemplate> 
            <smarttarget:PromotionalItems runat="server"> 
                <ItemTemplate> 
                        <tridion:ComponentPresentation runat="server" 
                        PageURI="tcm:14-1119-64" 
                        ComponentURI="<%# Eval(&quot;ComponentUri&quot;) %>" 
                        TemplateURI="<%# Eval(&quot;TemplateUri&quot;) %>"/> 
                </ItemTemplate> 
            </smarttarget:PromotionalItems> 
        </ItemTemplate> 
        <FallbackContent> 
            <tridion:ComponentPresentation runat='server' 
                        ComponentUri='tcm:14-1322' 
                        TemplateUri='tcm:14-1323-32'/> 
        </FallbackContent> 
    </smarttarget:Promotions> 
</smarttarget:Query> 

我的实现是否正确?

推荐答案

一个条目中有很多问题,但我会尽量在这里回答.

That's a lot of questions in one entry, but I'll try to answer them here.

  1. 看起来您没有正确的 Tridion 主目录,它最终会检查当前目录下的bin".请参阅我关于如何解决这个问题的博客文章(以及如何解决它):Tridion Content Delivery 如何加载配置文件 (.NET)
  2. 这是标准的 .NET 功能.您可以在同一页面中定义前缀,也可以根据建议在 web.config 中定义前缀.web.config 的确切标记是:
  3. 只有一个输出"item 是从包中使用的(添加的最后一个).因此,您目前拆分 Dreamweaver 模板的方式确实意味着您只能从ST 页面区域"获得输出.我不知道它的意图是什么,所以除了摆脱它并将 tcdl:region 直接放在Main Page Design TBB"中之外,我无法提出解决它的好方法.

祝你好运:)

这篇关于演示错误 - SmartTarget 页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆