芒果荚组未显示

时间:2011-01-05 19:01:26

标签: coldfusion blogs

我正在开发一个Mango博客主题,更具体地说是一个侧边栏pod组件。我按照我看到它们在另一个主题中构建的方式构建了pod,但是它们不会显示。我的skin.xml文件是:

 <podLocations>
  <location id="sidebar" name="General sidebar">
   <pod id="about">About</pod>
   <pod id="search">Search</pod>
   <pod id="categories">Categories</pod>
   <pod id="wise-words">Wise Words</pod>
  </location>
  <location id="sidebar-page" name="Page Sidebar">
   <pod id="about">About</pod>
   <pod id="search">Search</pod>
   <pod id="categories">Categories</pod>
   <pod id="wise-words">Wise Words</pod>
  </location>
  <location id="sidebar-archives" name="Archives Sidebar">
   <pod id="about">About</pod>
   <pod id="search">Search</pod>
   <pod id="categories">Categories</pod>
   <pod id="wise-words">Wise Words</pod>
  </location>
 </podLocations>

广告连播位置的实际输出是:

   <mangox:PodGroup locationId="sidebar" template="index">
<mangox:TemplatePod id="about" title="About">
 <h3>About</h3>   
 <p><mango:Blog description descriptionParagraphFormat /></p> 
</mangox:TemplatePod>
<mangox:TemplatePod id="search">
 <h3>Search</h3>
 <form id="qsearch" action="/archives.cfm/search/" method="get" >
  <p>
   <label for="qsearch">Search:</label>
   <input class="tbox" type="text" name="qsearch" value="Search this site..." title="Start typing and hit ENTER" />
   <input class="btn" alt="Search" type="image" name="searchsubmit" title="Search" src="<mango:Blog skinurl />assets/images/search.gif" />
  </p>
 </form>  
</mangox:TemplatePod>
<mangox:TemplatePod id="categories">
 <h3>Categories</h3>
 <ul class="sidemenu">    
  <mango:Categories><mango:Category>
      <li><a href="<mango:CategoryProperty link />" title="<mango:CategoryProperty title />"><mango:CategoryProperty title /></a></li>
  </mango:Category></mango:Categories>
 </ul>
</mangox:TemplatePod>
<mangox:TemplatePod id="wise-words">
 <h3>Wise Words</h3>
 <p>&quot;We can let circumstances rule us, or we can take 
 charge and rule our lives from within.&quot;</p>

 <p class="align-right">- Earl Nightingale</p>      
</mangox:TemplatePod>

我已经确认pod已设置为在管理员中显示,但是当我加载页面时,侧边栏不会显示。当我查看源代码时,侧边栏div显示一个空容器。

1 个答案:

答案 0 :(得分:4)

您的代码只定义了pod,而不是显示它们。此代码位于<mangox:PodGroup></mangox:PodGroup>块内,并且将显示所有 (1)已定义的广告连播您的模板 - pod代码或插件,以及(2)已启用通过管理中的pod管理器。

<mangox:Pods>
    <mangox:Pod>
        <mangox:PodProperty content />
    </mangox:Pod>
</mangox:Pods>