taglibs

package
v0.0.0-...-49cc056 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdList

func AdList(args jet.Arguments) reflect.Value

* 广告标签 {{yield adlist(id=3, pos="首页banner图")}} 返回一组广告

func ArcList

func ArcList(args jet.Arguments) reflect.Value

func Channel

func Channel(args jet.Arguments) reflect.Value

* typeid = "son | top | self" top: 顶级栏目 : parentid 为 0 son: 父id 为 reid的下级分类 self: 同级 父ID为reid的同级栏目

row = "10" 调用数量

channel(typeid, reid, type, row)

func ChannelArtList

func ChannelArtList(args jet.Arguments) reflect.Value

* sons 是否附带直属子分类数据, 可用于下级数据的迭代, 可取代channel的sun功能 active 是否附带当前活动状态逻辑, 一般用于下级菜单激活上级菜单的高亮样式 topid 记录当前所处页面的tid {{channellist = channelartlist(typeid, row, topid, sons, active)}}

func Flink(args jet.Arguments) reflect.Value

func HotWords

func HotWords(args jet.Arguments) reflect.Value

func LikeArticle

func LikeArticle(args jet.Arguments) reflect.Value

func List

func List(args jet.Arguments) reflect.Value

func MyAd

func MyAd(args jet.Arguments) reflect.Value

* 广告标签 {{yield myad(id="", name="")}} 返回一组广告

func PageList

func PageList(args jet.Arguments) reflect.Value

*

{{pagelist(row, .TypeID, .ArtCount, .PageNum, .QP) | unsafe}}

func Position

func Position(args jet.Arguments) reflect.Value

*

  • 标签:{{yield position() }}
  • 作用:获取当前页面面包屑只可适用于列表页和详情页

func Query

func Query(args jet.Arguments) reflect.Value

*

  • 标签:{{yield query(sql="") content}} {{end}}
  • 作用:特殊标签,SQL查询标签
  • 用法示例: {{yield query(sql="SELECT * FROM #@_tables") content}} .. HTML ..{{end}}
  • 参数说明:
  • sql SQL语句,只用于select类型语句

func Tags

func Tags(args jet.Arguments) reflect.Value

func TopType

func TopType(args jet.Arguments) reflect.Value

*

  • 标签:{{yield toptype() content}}{{field.Catname}}{{end}}
  • 作用:获取当前页面面包屑只可适用于列表页和详情页

func Type

func Type(args jet.Arguments) reflect.Value

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL