Weave Dream CMS article content page next to get URL and article name modification separately

Source: Internet
Author: User

1. Open/include/arc.archives.class.php, find $this->prenext[' pre ')//approx. 813 lines

Insert on its next line:

$this->prenext[' preurl ') = "$mlink"; Previous link Address

$this->prenext[' prename ') = "{$preRow [' title ']}"; Previous post title

2. Find $this->prenext[' next '//approx. 832 lines

Insert on its next line:

$this->prenext[' nexturl ') = "$mlink"; Previous link Address

$this->prenext[' nextname ') = "{$nextRow [' title ']}"; Previous post title

3. Find the Else if ($gtype = = ' preimg ') {

Insert below:

else if ($gtype = = ' Preurl ') {

$rs = $this->prenext[' Preurl ');

}

else if ($gtype = = ' Prename ') {

$rs = $this->prenext[' prename ');

}

else if ($gtype = = ' Nexturl ') {

$rs = $this->prenext[' Nexturl ');

}

else if ($gtype = = ' Nextname ') {

$rs = $this->prenext[' nextname ');

}

When called in a template, use the form {dede:prenext get= ' prename '/} to obtain the appropriate data


Weave Dream CMS article content page next to get URL and article name modification separately

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.