プレースホルダー

Placeholders

These placeholders are related to templates.

The searchString is available as placeholder.
Use [+as.searchString+] to get the search string
used for the search.
E.g.: "Search results for [+as.searchString+]" as
pagetitle for the landing page.
All the fields of the main table and of the joined
table defined as "displayed".
All the TV can be displayed as placeholders with &withTvs or &tvPhx parameters
In the table definition can use the tplResult and
tplAjaxResult templates:

[+as.****+]

the content of the field named ****

[+as.****Show+]

a boolean value [0 | 1] which is equal to 0 when
****='', otherwise 1

[+as.****Class+]

a class name equal to:

・ajaxSearch_resultXxxx for the non ajax results
(&tplResult)
・AS_ajax_resultXxxx for the ajax window
(&tplAjaxResult)
E.g.:

with &whereSearch="content,tv", there are these
placeholders:
"content" (table) . "id" (field) : [+as.id+]
"content" (table) . "date" (field) :
[+as.publishon+]
"content" (table) . displayed fields :
default fields: 'pagetitle', 'longtitle', 'description',
'alias', 'introtext', 'menutitle', 'content'
"tv" (table) . displayed fields : tv_value
(concatened values of TVs)

Content Placeholders

[+as.pagetitle+], [+as.pagetitleShow+],

[+as.pagetitleClass+]
[+as.longtitle+], [+as.longtitleShow+],
[+as.longtitleClass+]

[+as.description+], [+as.descriptionShow+],
[+as.descriptionClass+]

[+as.alias+], [as.aliasShow+], [+as.aliasClass+]
[+as.introtext+], [+as.introtextShow+],
[+as.introtextClass+]

[+as.menutitle+], [+as.menutitleShow+],
[+as.menutitleClass+]
[+as.content+], [+as.contentShow+],
AjaxSearch 1.9.1 Cheatsheet ed. 1.0 |3

[+as.contentClass+]
[+as.tv_value+], [+as.tv_valueShow+],
[+as.tv_valueClass+]

Template Variables placeholders

[+as.tv_value], [+as.tv_valueShow+],
[+as.tv_valueClass+]

Breadcrumbs

"content" (table) . breadcrumbs (link):
[+as.breadcrumbs+], [+as.breadcrumbsShow+]
[+as.breadcrumbsClass+]

with &extract parameter

[+as.extract+], [+as.extractShow+],
[+as.extractClass+]
with AS_ajax_resultExtract (ajax) or
ajaxSearch_resultExtract (non-ajax) as class
names

&whereSearch='content,tv,maxigallery,jot'

[+as.jot_content+], [+as.jot_contentShow+],

[+as.jot_contentClass+]
[+as.gal_title+], [+as.gal_titleShow+],
[+as.gal_titleClass+]

[+as.gal_descr+], [+as.gal_descrShow+],
[+as.gal_descrClass+]

PR

  • KAGOYA
  • ASP at AKIHABARA Japan
  • CMS AWARDS 2007 Winner
ページトップへ