How does Dede call the article or thumbnail list of other columns with paging effect?

Source: Internet
Author: User

Question I: I am a website with five columns and 5th columns. I want to call all the articles in the first four columns to create a collection of summary articles. It is found that the pagesize attribute cannot be set for calling with arclist, and thus the pagination of articles cannot be provided. However, the list does not seem to be able to call articles of the same level. How can this problem be achieved now?


A: dedeajax2.js is called at the top of your 5th topic template.

Add
<Script language = "JavaScript">
<! --
Function multi (pagenum, tagid)
{
VaR taget_obj = Document. getelementbyid (tagid );
VaR taget_obj_page = Document. getelementbyid ("Page _" + tagid );
Myajax = new dedeajax (taget_obj, false, false ,'','','');
Myajax. sendget2 ("{Dede: Global. cmd_basehost/} {Dede: Global. cmd_phpurl/}/arcmulti. php? Mtype = 0 & pnum = "+ pagenum + '& tagid =' + tagid );
Myajax = new dedeajax (taget_obj_page, false, false ,'','','');
Myajax. sendget2 ("{Dede: Global. cmd_basehost/} {Dede: Global. cmd_phpurl/}/arcmulti. php? Mtype = 1 & pnum = "+ pagenum + '& tagid =' + tagid );
Dedexhttp = NULL;
}
-->
</SCRIPT>

Column 5 tab:
{Dede: arclist typeid = '1, 2, 3, 4 'row = '000000' titlelen = '50' infolen = '000000' imgwidth = '000000' imgheight = '40' listtype = 'all' orderby = 'pubdate' keyword =' 'channelid = '1' tagid = 'destcm' pagesize = '20 '}
[Field: Title/]

Add {Dede: arcpagelist tagid = 'destcm'/} to the tab '/}

Use the arclist label to call the document list of other columns
A demo Tag:
{Dede: arclist ROW = 10 titlelen = 50 typeid = '1, 3, 4, 5, 6, 7, 8, 9 'noflag = h}
// Call 10 messages with the title length of 50 channels and the ID of 13456789 non-headlines
<Div class = "indexbox">
[Field: array runphp = 'yes'] @ me = (strpos (@ me ['litpic '], 'defaulttopic ')? "": "<A style = 'float: left 'href = '{@ me ['arcurl']}'> </a> "); [/field: array]
// Indicates that the thumbnail is not displayed if the thumbnail is not called if an image exists.
<H2> <a href = "[field: arcurl/]"> [field: Title/] </a>
[Field: senddate runphp = 'yes']
$ Ntime = Time ();
$ Oneday = 24x3600;
If ($ ntime-@ me) <$ oneday) @ me = "<span style = 'color: red; font-size: 12px; '> New! </Span> ";
Else @ me = "";
[/Field: senddate]
// Add new to the article published within 24 hours! Words
</H2>
{/Dede: arclist}
Write CSS styles by yourself.

Source 68cpu: http://www.68cpu.com/index.php/opensourcecms/dedecms/1683.html

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.