在dedecms文章页中获取当前栏目字段如content字段
<p><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>在dedecms 文章页中获取当前栏目字段,例如 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>在dedecms的文章页中调用栏目content字段 </span></p>
<div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
<p class="right">
<span><u>复制代码</u></span></p>
<p>
代码如下:</p>
</div>
<p class="msgborder" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
<br>
{dede:field.typeid runphp='yes'} <br>
$sql = "SELECT content FROM `dede_arctype` WHERE id=@me"; <br>
$query = mysql_query($sql); <br>
$row=mysql_fetch_array($query); <br>
@me = $row; <br>
{/dede:field.typeid} </p>
頁:
[1]