[Solution]
Step 1: Open the/include/arc. archives. class. php file and find about 234 lines of code as follows:
The code is as follows: |
Copy code |
$ This-> Fields ['typename'] = $ this-> TypeLink-> TypeInfos ['typename']; |
Add the following code to the next line:
The code is as follows: |
Copy code |
// Set global environment variables $ This-> Fields ['typename'] = $ this-> TypeLink-> TypeInfos ['typename'];
|
Step 2: Add the call code to the appropriate location of your content page Template:
{Dede: field. typelink/} name of the topic with a link, for example, <a href = "topic link address"> Topic Name </a>
{Dede: field. typeurl/} is only a topic link, for example,/news.
Baidu found the above. Based on the above experience, I wrote a 1. Open the/include/arc. archives. class. php file and found about 234 lines of the following code:
// Set global environment variables
The code is as follows: |
Copy code |
$ This-> Fields ['typename'] = $ this-> TypeLink-> TypeInfos ['typename']; Add the following two lines of code (as shown in the figure below ): $ This-> Fields ['typelink'] = $ this-> typelink-> GetOneTypeLink ($ this-> TypeLink-> TypeInfos ); $ This-> Fields ['typeurl'] = $ this-> TypeLink-> GetOneTypeUrl ($ this-> TypeLink-> TypeInfos ); |
2. Template tag call
{Dede: field. typelink/} name of the topic with a link, such as <a href = "http://www.111cn.net/"> Baidu SEO </a>
{Dede: field. typeurl/} is only a column link, such as a http://www.111cn.net