In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how dede calls other columns of the article or thumbnail list and has a paging effect, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
How can dede call a list of articles or thumbnails from other columns and have a paging effect?
The arclist call cannot set the properties of the pagesize, so the article cannot be paged. However, list does not seem to be able to call the articles of the same column, how to achieve it now?
Question I: I do a website, there are five columns, the fifth column wants to call the first four columns of the articles, to make a collection of articles. It was found that the property of pagesize could not be set with arclist call, so the article could not be paged. However, list does not seem to be able to call the articles of the same column, how to achieve it now?
Answer: call dedeajax2.js at the top of your fifth column template
Add to the head section
The code is as follows:
Column 5 pagination list label:
The code is as follows:
{dede:arclist typeid='1,2,3,4' row='100' titlelen='50' infolen='100' imgwidth='120' imgheight='40' listtype='all' orderby='pubdate' keyword='' channelid='1' tagid='dedecms' pagesize='20'} [field:title/]
Add {dede:arcpagelist tagid='dedecms'/} to the paging tag
Call the list of articles in other columns with arclist tags
A demo label:
The code is as follows:
{dede:arclist row=10 titlelen=50 typeid='1,3,4,5,6,7,8,9' noflag=h} / / means to call 10 messages with 50 channel headlines and 13456789 non-headlines in id [field:array runphp='yes'] @ me = (strpos (@ me ['litpic'],' defaultpic')? "": "
"); [/ field:array] / / indicates that if there is a picture, call the thumbnail and do not show [field:title/] [field:senddate runphp='yes'] $ntime = time (); $oneday = 3600 * 24; if (($ntime-@ me))
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.