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