Open source java CMS - FreeCMS2.8 custom label link

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

link

According to the linked object extraction parameters.

parameter

Explanation

siteid

Link Categories id-owned site

classId

Link Categories id

classPagemark

Link Categories page logo, with between multiple, separate

pagemark

Links page logo, with between multiple, separate

type

Types of  

1 drop-down

2 Pictures

3 text

on one

Quantity

beginnum

From the beginning FreeCMS 1.7 support

From the first few start from scratch representatives 0


return value

Explanation

link

Link objects

index

index

size

From the beginning FreeCMS 2.4 support

List Length


Example 1

Extracting the drop-down link

<@linkClass siteid="${site.id}" type="1";linkClass>

<select  onchange="if(this.value!=''){window.open(this.value);}" >

  <option>${linkClass.name}</option>

  <@link classId="${linkClass.id}" ; link>

<option value="${link.url}">${link.name}</option>

  </@link>

</select>

</@linkClass>


Guess you like

Origin blog.51cto.com/3357346/2433143