-
DedeCMS
(
https://www.0058.net/forumdisplay.php?f=71)
- -
如何调用所有的栏目名称?
(
https://www.0058.net/showthread.php?t=4737)
| Hager City |
2014-05-03 07:14 AM |
如何调用所有的栏目名称?
可用dedecms的channel标签实现:
Code:
<div class="hot mt1 light">
<dl class="tbox">
<dt class='light'><strong>Menu</strong></dt>
<dd class='light'>
<ul class="c1 ico2">
{dede:channel type='top'}
<li><a href='[field:typeurl/]'[field:rel/]>[field:typename/]</a></li>
{/dede:channel}
</ul>
</dd>
上边代码是调用所有的顶级栏目的。
</dl>
</div>
|
| All times are GMT +8. The time now is 10:54 AM. |
|
Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.