Dedecms keyword automatically gets from tag when adding software

Source: Internet
Author: User
Keywords DEDE

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Recently in helping friends to do a game software station, when you add a test article to find a problem: The software channel can not like the article channel as the keyword automatically from the tag to get, but directly from the title to decompose some meaningless keywords, which also led to the invocation of "related articles" when the article is not related to the phenomenon, After comparing the article channel to add the template, I found the modification method:

In the site root directory to find the file dede/templets/soft_add.htm (Dede for dedecms default background management directory, if there are changes please find the appropriate folder), open and find:

<input name= "tags" type= "text" id= "tags" value= "" style= "width:300px"/>

To be replaced by:

<input name= "tags" type= "text" id= "tags" value= "" style= "width:300px" onchange= "$Obj (' keywords '). Value=this.value ; "/>

Find again:

<input type= ' text ' name= ' keywords "id=" keywords "style=" width:290px; "value="/>

To be replaced by:

<input type= ' text ' name= ' keywords "id=" keywords "style=" width:290px "value=" <?php echo $keywords?> "/>"

As a result, the keyword will automatically match the tag when the content is posted on the software channel, and you can manually modify the keyword as needed. In addition to reducing unnecessary repetitive typing, for the content page to invoke related articles of the Friend is also very good, we all know dedecms in the call related articles are based on keyword calls, if the system automatically extracts keywords, it will make you very silent, For example, I want to send the article title is "Seven Male" record wind generals discriminator 1.05 free version download ", automatic extraction of the keyword" Seven Male, record wind, generals, identification, 1.05, free version, download, seven-male, hegemony, "which means that even with the" download "keyword will be displayed in the relevant article, it is not unreasonable? In accordance with the above method of modification, you just set the tag tag as "Seven male, record the wind, discriminator", so that the call out of the "related article" correlation is very high, but also more suitable for the user experience.

Enclose my related article calling code:

{dede:likearticle row= ' titlelen= '] orderby= ' click '}

<font color= #666666 >[[field:pubdate function= "mydate (' m-d ', @me)"/]] </font><a href= ' [field:arcurl/] ' title= ' [field:title/] ' target= ' _blank ' >[field:title function= ' Cn_substr (@me,) '/]</a> <br>
{/dede:likearticle}

The above is I use dedecms a little experience, have said the wrong place also please reply to point out, next article I will share Dede page SEO experience, if you are interested can go to www.dongmenjie.com this station carefully look, thank you for your support!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.