Open source java CMS - FreeCMS2.8 custom label infoPage

Project Address: http://www.freeteam.cn/

infoPage

The parameter object extraction information tab.

parameter

Explanation

siteid

Id information belongs site

channelid

Information belongs columns id

channelparid

Information belongs columns parent id

on one

Page shows the number

order

Sort Type  

1 jacking effective and descending, descending Published

2 jacking effective and descending, ascending Published

3 Published Descending

4 Published Ascending

From the beginning FreeCMS 2.5 support

5 jacking effective and descending sort in descending order number (default)

6 jacking effective and descending, ascending sort No.

No. 7 Sort Descending

No. 8 Sort Ascending

titleLen

Title display length

titleSuffix

From the beginning FreeCMS 1.7 support

Display length exceeds plus suffix title

hot

Whether heat reverse-per-click, 1 is

dateFormat

Date Format

channelPagemark

Identification section pages

channelParPagemark

The parent tab page logo

img

News whether to extract the information with picture 1 is

From the beginning FreeCMS 2.6 support

0 extract only information news without pictures

page

Current first few pages, the default is 1

checkOpenendtime

Check the open time default does not check, check 1

newdays

Within a few days up to date

isMobile

From the beginning FreeCMS 1.8 support

Whether to allow data to extract only mobile app is accessed 1

isfield

From the beginning FreeCMS 2.0 support

Query whether custom fields, No 1 0, default is

orderby

From the beginning FreeCMS 2.4 support

Sorting sql, after setting failure order attribute


return value

Explanation

infoList

Information object list, type List <Data Objects info>

pager

Paging objects


Example 1

According to the site and extract information id column id.

<@infoPage siteid="${site.id}" channelid="${currChannel.id}" num="1" page="${page}"

titleLen="48" dateFormat="yyyy-MM-dd"; infoList,pager>

<ul>

<#list infoList as info>

<li>

<a href="${info.pageurl}" target="_blank">${info.showtitle}</a>

${info.addtimeStr}

</li>

</#list>

</ul>

${pager.pageStr}

</@infoPage>


Guess you like

Origin blog.51cto.com/3357346/2406594