
{dede:field.content}在文章页怎么调用?
{dede:globalrunphp="yes"}global$dsql;$row=$dsql->getOne("selectcontentfrom#@__arctype...
{dede:global runphp="yes"}
global $dsql;
$row=$dsql->getOne("select content from #@__arctype where id=8");
@me=$row["content"];
{/dede:global}
我知道这样可以调出,但是ID是固定的,不只能,每个栏目都要新建一个文章页。
求指点,分可加。 展开
global $dsql;
$row=$dsql->getOne("select content from #@__arctype where id=8");
@me=$row["content"];
{/dede:global}
我知道这样可以调出,但是ID是固定的,不只能,每个栏目都要新建一个文章页。
求指点,分可加。 展开
1个回答
展开全部
文章页应该就是你说的内容页,field.content是在栏目页调用的内容的,所以内容页是不能对应相应的内容的,所以只能通过sql进行指定调用,要不就是在栏目的列表或栏目的封面页可以调用。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询