Swiffit2 home icon

Servlet Actions

Actions used in the template query strings. This information is usefull for developers only.


Default address:

#include virtual="/swfit2/servlet/swfit2web?<!--insert actions here-->&${SERVLET_DATA}

The different parameters are separated by &.

For example: url?mac=con&sec=ims

${SERVLET_DATA} = Data from servlet.
(Usually is ${QUERY_STRING}
&site=name&fid=0)

${QUERY_STRING} = query string entry (?).. A category article link will add cat=0&aid=0

${DOCUMENT_URI} = /pub/swiffit2/source/index.shtml


${FOLDER} = Your current folder

${DOMAIN} = Your current domain

Parameters written with gray are under testing or inn development.

Global parameter:

dbg=[0, 1] (do debug)
fla=[0, 1] (to flash)
pvw=[0, 1] (show preview)
idef=[0, 1] (ignore default)
haut=[0, 1] (hide author)
sdato=[0, 1] (show date only)
aelink=[0, 1] (add external link)
himg=[0, 1] (hide image(s))
   
nnews=[0, 1, 2, 3, ... ]

(num news)

narts=[0-999] (num articles in meny)
qry= (search string value)
   
prompt=[text+text] (Ledetekst)
   
did= (domain id)
fid= (folder id)
cid= (category id)
aid= (article (content) id))
mid= (menu id)
dname= (domain name)
site= (site name)
   
meta=[1,0]

Generate clean element without html*.

(*testing)


Parameter name:

mac  (main action)
sac (subaction)



CONTENT:

mac=con                     (content)

sac=value element
head Header
subtitle Subtitle
intro Introtext ing
ing Ingress Text
body Main Text area
ims Images
files Files embedded
ilinks Internal links
elinks External links
domtitle Domain Display name - always
   
sac=aid Displays current aid number
aid=###

secundary (sac)autorvalues:

aut Author @ Domain // pub date
autname Author name
autmail Author mail with link
domname Domain name
pubdate Published date
pubdatetime Published time
moddate Last modified date
moddatetime Last modified time

Can use prompt=(freetext+freetext)

(Required Servlets: site, fid, cat, aid)

sac=eventstartdate
sac=eventenddate

sac=events (list over cur-event dates, controlled by event.les)

Domain Display name:

sac=domtitle   Domain Display name - always

(Required Servlets: site fid)

Submenu with CATEGORY:
mac=cats (Submenu: folder > artikkel / kategori > artikkel)
lev=[0, 1, 2]
expand=1  (Expand alle sublevels of categories)
narts=[0-9] (Limit showing)
hhead=[1,0] Hide head on/off

(Required Servlets: site and fid +${QUERY_STRING})


MENU:
mac=menu
mname= (Menu name)
sac=list  (Display in bullet list)

(Required Servlets: dname site and mname +${QUERY_STRING})

LIST: (List view folder)
mac=list  (Displays list)
sac=head (Displays list folder header)
sac=more (Displays Show all butten if nnews is set)
sac=all (Ignore nnews limit)
sac=rsspubdate (date for rss feed)
ltype=[0, 1, 2, 3] (List template 1 is LES)
nnews=[0, 1, 2, 3, ... ] (Limit showing)

(Required Servlets: site and fid +${QUERY_STRING})

NEWS: (News brief)
mac=news
sac=head (Displays list folder header)
sac=more (Displays Show all butten if nnews is set)
sac=all (Ignore nnews limit)
ltype=[0, 1, 2, 3] (List template 1 is LES)
nnews=[0, 1, 2, 3, ... ] (Limit showing)

(Required Servlets: site and fid + ${QUERY_STRING})

Quicklist: (Force list view)
mac=qlist
sac=head (Displays list folder header)
sac=more (Displays Show all butten if nnews is set)
sac=all (Ignore nnews limit)
ltype=[0, 1, 2, 3] (List template 1 is LES)
nnews=[0, 1, 2, 3, ... ] (Limit showing)

(Required Servlets: site and fid + ${QUERY_STRING})

Eventlist:

mac=eventslists

sac=head (prompt=replace+text)'
sac=more (Displays Show all butten if nnews is set)
sac=all (Ignore nnews limit)
ltype=[0, 1, 2, 3] (List template 1 is LES)
nnews=[0, 1, 2, 3, ... ] (Limit showing)

Costum image category list:
mac=con&sac=imscols
(3 col image seperator)

(Required Servlets: site, fid, cat, aid)

SEARCH:
mac=search
qry=

SUMMARY:
(displayes fist document in folder)

mac=sum

sac=dsum default
sac=menu submenu
sac=head header
sac=aut Auther
sac=subtitle Subtitle
sac=intro Introtext
sac=ing Ingress Text
sac=body Main Text area
sac=files Files embedded
sac=ilinks* Internal links*
sac=elinks* External links*
sac=ims Images

 

sac=ims links by default to the front page
Use sumimtohome=0 to overrule this setting.making it a regular more link.

(Required Servlets: site and fid)

Bookmark and Share
Servlet Actions

Servlet Actions

Are querystring commands used to call on different information from the Database.