Dede content page Call column SEO title, description, keyword method
Content page Call SEO title:
Add the following code between <title></title>:
{Dede:field name= ' typeid ' runphp= ' yes '}
[Email protected];
Global $dsql;
$sql = "Select Seotitle from Meiwen_arctype where id= $id";
$row = $dsql->getone ($sql);
@me = $row ["Seotitle"];
{/dede:field}
content page Call column Description:
Put the default <meta name= "description" content= "{dede:field.description function= ' html2text (@me) '/}"/>
Change to:
<meta name= "description" content= "{dede:field name= ' typeid ' runphp= ' yes '}
[Email protected];
Global $dsql;
$sql = "Select description from Meiwen_arctype where id= $id";
$row = $dsql->getone ($sql);
@me = $row ["description"];
{/dede:field} "/>
content page Call column keyword:
The default <meta name= "keywords" content= "{dede:field.keywords/}"/>
Change to:
<meta name= "keywords" content= "{dede:field name= ' typeid ' runphp= ' yes '}
[Email protected];
Global $dsql;
$sql = "Select keywords from meiwen_arctype where id= $id";
$row = $dsql->getone ($sql);
@me = $row ["keywords"];
{/dede:field} "/>
Dede content page Call column SEO title, description, keyword method