我試圖使用getText基於每個全局選項卡(每個選項卡將加載不同的html頁面)加載不同的html頁面。有誰知道代碼爲每個不同的文本指定一個特定的選項卡?下面的代碼加載相同的文本到所有標籤:加載基於全局選項卡的html(getText)
<div class="col_3" metal:define-macro="highlights" i18n:domain="plone">
<h2>Highlights</h2>
<p>
<tal:block tal:condition= "exists:here/graduate-study/highlghts-grad"
tal:replace="structure here/graduate-study/highlghts-grad/getText">Footer content here</tal:block>
</p>
</div>
<div class="col_3" metal:define-macro="highlights" i18n:domain="plone">
<h2>Highlights</h2>
<p>
<tal:block tal:condition= "exists:here/undergraduate-study/highlghts-grad"
tal:replace="structure here/undergraduate-study/highlghts-grad/getText">Footer content here</tal:block>
</p>
</div>
等,等所有標籤...
問題是什麼 - 閱讀這篇文章三次仍然沒有給我任何洞察你真正的問題。 – 2012-08-16 04:46:40