About DEDECMS article position mark Modification method

Source: Internet
Author: User

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

In the forum to see a netizen proposed a dedecms content in the location of a change in the problem, is roughly the position of the dedecms from the original, home "category One" category two, changed to the category two "category one" homepage style, the Tianya gives the following solution, for netizens to learn, exchange.
With regard to {Dede:field name= ' position '/} in the template tag, the markup feature is to display a list of columns with a Islink attribute labeled, and if true, the list returned by Pinkerton is connected or not. After code analysis, find the file/include/inc_typelink.php line 118th, mainly the Getpositionlink function is used to obtain information about the location of the function, we modify the following: The 139 lines of code modified as follows, will
$this->valueposition = $indexpage. $this->splitsymbol. $this->valueposition;
To:
$this->valueposition = $this->valueposition. $this->splitsymbol $indexpage;

Modify the 160 lines as follows:
if ($islink) $this->valueposition = $this->getonetypelink ($tinfos). $this-

>splitsymbol $this->valueposition;
Modified to:
if ($islink) $this->valueposition = $this->valueposition. $this->splitsymbol. $this->getonetypelink ($ Tinfos);

Modify 161 lines to:
else $this->valuepositionname = $tinfos [' TypeName ']. $this->splitsymbol. $this->valuepositionname;
Modified to:
else $this->valuepositionname = $this->valuepositionname. $this->splitsymbol. $tinfos

[' TypeName '];
To this end we modify the completion, in order to facilitate everyone, I will modify the completion of the file package to the love of learning to provide you download.

Reprinted annotated Source: www.ixker.com

Related Article

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.