当实际的div在页面的中间时,是否可以在页面顶部显示捕获的div内容?
我尝试使用捕获,但由于内容div位于我需要显示值的位置之后,因此似乎不起作用
e.g
...some content
{$smarty.capture.divlink}
...some more content
<div class="capture_content">
{capture name="divlink"}
Content I need to display
{/capture}
</div>
...some more content谢谢
发布于 2013-07-06 18:56:16
实际上,把{capture}放在<div>中是没有意义的,你可以把它放在你想放的任何地方:
{capture name="divlink"}
Content I need to display
{/capture}
...some content
{$smarty.capture.divlink}
...some more content
<div class="capture_content">
What do you want to display here?
</div>
...some more contenthttps://stackoverflow.com/questions/17501701
复制相似问题