Macros

Elephant renders macros each time a page is requested. Macros start with {@ special characters and expand into text or HTML code. Macros can even include content from a file, HTML page or JSP page. In order to understand what macros are for see what current macros do:

Macros can be nested, but take in mind that macros are written inline, in order to allow content inclusions. Thus, only macros that resolve to a string could be nested. Ex.

{@equals:{@user:id}:admin:Administering:Browsing}

To escape the : character prepend a slash, like /:.

Next generation

The next generation of macros provide a great number of features, aiming to easy-of-use customization. The main goals are:

Next generation macros are expressed as @{macro_name}.

Backward compatibility

For compatibility reasons, next generation macros will be included at the end of each macro definition. Both macro types can be used in the same content, even combined.

Core
Core content

Core content macros help creating pages that are rendered using dynamic content.

With readers

Macros with readers help formatting data on properties, XML and JSON files.

Core
Macro parser

Expands into web application's context.

{@ webroot }

Expends into site name.

{@ site }

Shows current rendering context.

{@ rendering }

Elephant language.

{@ lang }

Calls modules' user summaries and show the results.

{@ user-summary [ : mode ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. init

{@ user-contents }

Reads and renders file content.

{@ include : content-file }
Atributs Descripció Opcions Per defecte
content-file System file to show.

Writes parameter with name value or default when null.

{@ param : name [ : default ] }
Atributs Descripció Opcions Per defecte
name Attribute name.
default Default value.

Renders context content. If stopper is set to true, stops when finding a line starting with .

{@ render : context [ : stopper ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
stopper Whether rendering should stop.

Writes current date, time or both using diferent localized formats.

{@ date [ : mode [ : format ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. date, all, time date
format Format used to show the value. short, medium, long, full short

Renders the feed at url.

{@ feed : url }
Atributs Descripció Opcions Per defecte
url Uniform Resource Locator.

Creates an Elephant marker within context with name. Elephant markers are initialized with correct locale and constructor as variable.

{@ marker : tmpl-root : template : value-map }
Atributs Descripció Opcions Per defecte
tmpl-root Templates root.
template Template used to show the items.
value-map Values using the form variable=value separated by ;

Creates an Elephant marker within context with name. The repository-file is stored in props.

{@ marker-props : tmpl-root : template : repository-file }
Atributs Descripció Opcions Per defecte
tmpl-root Templates root.
template Template used to show the items.
repository-file Name of the repository file.

Creates an Elephant marker within context with name. The repository-file is stored in doc.

{@ marker-xml : tmpl-root : template : repository-file }
Atributs Descripció Opcions Per defecte
tmpl-root Templates root.
template Template used to show the items.
repository-file Name of the repository file.

Creates an Elephant marker within context with name. The repository-file is stored in json.

{@ marker-json : tmpl-root : template : repository-file }
Atributs Descripció Opcions Per defecte
tmpl-root Templates root.
template Template used to show the items.
repository-file Name of the repository file.

Writes a json array of files matching path and pattern. The array can be as is, sorted or shuffled.

{@ files : folder : pattern : mode }
Atributs Descripció Opcions Per defecte
folder Folder location.
pattern The pattern items must match.
mode Mode to use. normal, sort, shuffle

Creates a frame with url content. If url starts with '/' application context is automatically inserted.

{@ frame : url : width : height }
Atributs Descripció Opcions Per defecte
url Uniform Resource Locator.
width CSS style width.
height CSS style height.

Gets resource value and renders as mode. Mode is an integer optional parameter.

{@ res : resource-key [ : string-mode ] }
Atributs Descripció Opcions Per defecte
resource-key Key used to locate de resource.
string-mode Possible values are: 0 No transform, 1 Capitalized, 2 To upper case, 3 To lower case. 0

{@ i18n : resource [ : string-mode ] }
Atributs Descripció Opcions Per defecte
resource
string-mode Possible values are: 0 No transform, 1 Capitalized, 2 To upper case, 3 To lower case. 0

Writes a random number starting at zero and up to limit minus one.

{@ random : random-limit }
Atributs Descripció Opcions Per defecte
random-limit Random values ceil.

Elephant context for links.

{@ context : level }
Atributs Descripció Opcions Per defecte
level Number of the item level.

Writes currently logged user's name, identifier or email.

{@ user [ : mode ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. name, id, email name

Writes true or false expressions depending on whether role:attribute pair are satisfied.

{@ if : role : attribute : true-expression : false-expression }
Atributs Descripció Opcions Per defecte
role Entity role part.
attribute Permission part.
true-expression When comparison is true.
false-expression When comparison is false.

Writes true or false expressions depending on whether cookie value equals value.

{@ ifcookie : cookie : value : true-expression : false-expression }
Atributs Descripció Opcions Per defecte
cookie Cookie name.
value Value to search for.
true-expression When comparison is true.
false-expression When comparison is false.

Writes true or false expressions depending on whether class could be instantiated.

{@ class : class-name : true-expression : false-expression }
Atributs Descripció Opcions Per defecte
class-name Java class name.
true-expression When comparison is true.
false-expression When comparison is false.

Writes true or false expressions depending on whether value1 equals value2.

{@ equals : value : value : true-expression : false-expression }
Atributs Descripció Opcions Per defecte
value Value to search for.
value Value to search for.
true-expression When comparison is true.
false-expression When comparison is false.

Renders object's attribute as string. object can also be an entityPath.

{@ object : ref-object : attribute }
Atributs Descripció Opcions Per defecte
ref-object Attribute name holding the object or an entityPath.
attribute Renders attribute's value as string.

Renders attribute's value as string.

{@ attribute : attribute [ : format ] }
Atributs Descripció Opcions Per defecte
attribute Renders attribute's value as string.
format Format used to show the value.

Renders entity using name and description.

{@ entity : entityPath : fmt-name-desc }
Atributs Descripció Opcions Per defecte
entityPath Path to a entity.
fmt-name-desc Format, as in String.format(), with entity name and description as parameters.

Renders the entity represented by path calling plugin and using template if specified.

{@ entity-ctrl : plugin : entityPath [ : template ] }
Atributs Descripció Opcions Per defecte
plugin Plugin name.
entityPath Path to a entity.
template Template used to show the items.

Writes cookie value. If optional value is defined, then sets cookie value.

{@ cookie : name [ : value ] }
Atributs Descripció Opcions Per defecte
name Attribute name.
value Value to be set when defined.

Indicator name.

{@ indicator : storeClass : indicatorClass : entityPath : indicator [ : relatedPath ] }
Atributs Descripció Opcions Per defecte
storeClass
indicatorClass
entityPath Path to a entity.
indicator Indicator name.
relatedPath

{@ entry-point : identifier [ : values ] }
Atributs Descripció Opcions Per defecte
identifier
values

Macros with readers, how does it work?

The easiest way to read a file is store it in context's repository and access it with */file. The * will expand into rendering context repository. For example:

{@marker-xml:xml:doc:*/doc.xml}

Reads doc.xml in current repository and passes its data to [Template_root]/xml/docTemplate.html to be formatted.

Reading properties

Properties are stored in props list in the same order they are stored on disc. You can iterate props with #list.

<#list props?keys as key>
   <#assign value=props[key]/>
   // do something with key and value
   ...
< /#list>

Reading XML

XML documents are stored in doc model. You can iterate the elements using dot syntax and iterate collections as you would usually do for any other data. The XML model is the FreeMarker NodeModel.

Reading JSON

JSON files are stored in json model. To access a root, use json.read("$.root"). If the root is a list, use json.list("$.root"). Once retrieved the root, you can iterate the elements using dot syntax and iterate collections as you would usually do for any other data. The JSON model is a subset of the JsonPath DocumentContext, optimized for templates usage.

The JSON books example

The data:

{
  "book": [
    {
      "title": "...",
      "author": "...",
      "excerpt": "...",
      "availability": "...",
      "link": "...",
      "filelink": "...",
      "imagelink": "...",
      "pages": 0
    },
    {
      ...
    },
    ...
  ]
}

The template (Semantic-UI):

<div class="ui divided items">
  <#list json.list("$.book") as book>
    <div class="item">
      <a class="ui tiny image" href="${book.link}">
        <img src="${book.imagelink}"/>
      </a>
      <div class="content">
        <a class="header" href="${book.link}">${book.title}</a>
        <div class="meta">
          ${book.author}
        </div>
        <div class="description">
          ${book.excerpt}
        </div>
        <div class="extra">
          ${book.availability}
          <#if book.filelink?has_content>
            <a target="_new" href="${book.filelink}">${book.pages}</a>
          < /#if>
        </div>
      </div>
    </div>
  < /#list>
</div>
Navigational
Do I have to use navigational macros in my site?

Not necessarily. By default Elephant already includes all navigation elements in its templates. Navigational macros are intended for special formatting purposes. Navigational macros do not include CSS especial notations, thus you use your own.

Listing macros or hard written links?

Both choices may have the result. Main difference is that listing macros will update their content based on current configuration.

Navigation
Macro parser

Renders a bread crumbs navigator as an HTML unordered list.

{@ navigator : location }
Atributs Descripció Opcions Per defecte
location Navigator mode.

Renders a traversal navigator as an HTML table with three columns.

{@ navigator : traversal [ : show-title ] }
Atributs Descripció Opcions Per defecte
traversal Navigator mode.
show-title When true, renders context name as well. false

Renders a menu as HTML unordered list. level tells starting at which level options are shown. preloaded indicates how many children are to be shown.

{@ navigator : options : decorators : level : preloaded [ : show-current ] }
Atributs Descripció Opcions Per defecte
options Navigator mode.
decorators When true, aditional DIVs are added at top and bottom.
level Number of the item level.
preloaded Number of preloaded children.
show-current When true, children passing preloaded value will show along with ancestors and siblings, as opposed to not showing any child with level over level + preloaded. true

Renders a tabulator as HTML unordered list. level tells at which level tabs are shown.

{@ navigator : tabulator : level }
Atributs Descripció Opcions Per defecte
tabulator Navigator mode.
level Number of the item level.

Renders a web map.

{@ webmap [ : level ] }
Atributs Descripció Opcions Per defecte
level Tells until which level contexts are shown. 1

Renders a list of selectable contexts.

{@ list : behavioural_keywords [,behavioural_keywords...] : navigational_keywords [,navigational_keywords...] : selection_keywords [,selection_keywords...] }
Atributs Descripció Opcions Per defecte
behavioural_keywords Keywords controlling how information displays. popup, external, hidden, verbose
navigational_keywords Keywords to navigate Elephant contexts. parent, locate, level, root, match
selection_keywords Keywords actually returning contexts. all, siblings, search, children, self, leaf, ancestors

Renders a line of selectable contexts.

{@ anchor : behavioural_keywords [,behavioural_keywords...] : navigational_keywords [,navigational_keywords...] : selection_keywords [,selection_keywords...] }
Atributs Descripció Opcions Per defecte
behavioural_keywords Keywords controlling how information displays. popup, external, hidden, verbose
navigational_keywords Keywords to navigate Elephant contexts. parent, locate, level, root, match
selection_keywords Keywords actually returning contexts. all, siblings, search, children, self, leaf, ancestors

Understanding what behavioural keywords are

Behavioural keywords stand for keywords controlling how information displays. The way behaviours will extend in future versions might be controlled in this section.

Behavioural keyword

Description

verbose

Writes the whole path to context, starting from current context.

popup

Popup effect on resulting links is to open a popup instead of opening a new context.

hidden

Hidden contexts will show, even if protected.

external

Links will open on a new tab or window.

Understanding what navigational keywords and selection keywords mean


Navigational keywords end up as a list, colon separated, of keywords pointing to existing contexts. As starting point, path_to_contexts initializes to current context, that is, the web page where macro displays.

Here comes a brief description of what each keyword does and after some clear examples:

Navigation keywords move current selection from context to context.

Navigation keyword

Description

parent

Moves to current selection's parent

root

Moves to root context

level

Moves to ancestor[level]

locate

Moves next token path, expands * to current path

match

Moves to matching context from current selection using regular expressions

Selection keywords actually return contexts, one or several. A zero results it's considered an error an macro will displays with m_error class, which defaults to red color and a warning image. Otherwise, macro expands into m_list class.

Render keyword

Description

self

Returns current selection

children

Returns current selection's children

all

Returns all descendant contexts

leaf

Returns all descendant contexts having no children

ancestors

Returns current selection's ancestors

siblings

Returns current selection's siblings, including itself

search

Returns matching contexts from current selection

Learning by example

Macro

Description

{@list:self}


{@anchor:self}
Navigational
{@anchor:popup:self}
Navigational

self returned current selection which defaults to current context, popup shows this page as a popup window

{@list:parent:children}


{@anchor:parent:children}
[ Core, Navigational, Modules, Documentation, Macro summary ]

parent took us into current context its parent, while children returned a list of its children

Modules

Current list of modules exposing macros.


Attachments
What are attachments' site terms?

Some macros user site terms as something well known within Elephant site components. This is not exactly true and the concept builds in template conventions. To make life easier, templates locate attachments' site terms under the terms folder in content/rot.txt. This file can be create or edited using the BaaS Tools -> Files option menu.

Attachments
Macro parser

Shows the attachments from a specific entity.

{@ attachment : entityPath [ : template ] }
Atributs Descripció Opcions Per defecte
entityPath Path to a entity.
template Template used to show the items. editableTree tree

Shows the attachments from a specific entity in readonly mode.

{@ attachment-ro : entityPath [ : template ] }
Atributs Descripció Opcions Per defecte
entityPath Path to a entity.
template Template used to show the items. tree-ro

Shows the attachments from a specific entity in readonly mode, after accepting site terms.

{@ attachment-rot : entityPath [ : template ] }
Atributs Descripció Opcions Per defecte
entityPath Path to a entity.
template Template used to show the items. tree-rot

Shows the attachments from current user.

{@ self-attachments [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. tree

Shows the attachments from current user in readonly mode.

{@ self-attachments-ro [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. tree-ro

Shows the attachments from current user in readonly mode, after accepting site terms.

{@ self-attachments-rot [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. tree-rot

Calendar
What can I do with the calendar URL?

The calendar URL generates an on line calendar for the requesting user. Includes those parts of modules the user is interested or participates in.

With this in mind, you can use this URL to import the calendar events into your favorite calendar application. See specific instructions on how to import calendars in your calendar application.

Calendar
Macro parser

Renders calendar URL for current user.

{@ calendar : type }
Atributs Descripció Opcions Per defecte
type Only items with type. url

Contacts
Groups

Groups is an application wide organizational utility. For instance, products may use categories of groups when exposed to the web store.

Directory

Directory is a group of contacts that share some of their data with other Directory members. There is a full directory listing, but also has other applications. For instance, only members of the Directory can see which members are registered and assisted to Convocations.

Contacts
Macro parser

Lists groups in a tree format.

{@ groups : context : group-category }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
group-category Category identifier of the groups.

Lists contacts with page navigation.

{@ contacts [ : count [ : syndicationId [ : summaryTemplate [ : context [ : fullTemplate ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
syndicationId Sindication code. See Social Groups in Contacts.
summaryTemplate Template used to show the items in summary mode. summary
context Elephant context for links.
fullTemplate Template used to show one items in full mode. full

{@ contacts-summary [ : count [ : syndicationId [ : summaryTemplate [ : context [ : fullTemplate ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
syndicationId Sindication code. See Social Groups in Contacts.
summaryTemplate Template used to show the items in summary mode. summary
context Elephant context for links.
fullTemplate Template used to show one items in full mode. full

Lists contacts in grouping with page navigation.

{@ contacts-by-group [ : count [ : groupings [ : summaryTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
groupings Items groupings.
summaryTemplate Template used to show the items in summary mode. summary

Lists contacts in grouping without navigation.

{@ contacts-by-group-summary [ : count [ : groupings [ : summaryTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
groupings Items groupings.
summaryTemplate Template used to show the items in summary mode. summary

Shows contact count.

{@ contactcount [ : syndicationId ] }
Atributs Descripció Opcions Per defecte
syndicationId Sindication code. See Social Groups in Contacts.

Lists contacts with specific connector value with page navigation.

{@ contacts-connector : count : connector [ : value [,value...] [ : summaryTemplate [ : context [ : fullTemplate ] ] ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
connector Connector name.
value Value to search for.
summaryTemplate Template used to show the items in summary mode. summary
context Elephant context for links.
fullTemplate Template used to show one items in full mode. full

Lists contacts with specific connector value without navigation.

{@ contacts-connector-summary : count : connector [ : value [,value...] [ : summaryTemplate [ : context [ : fullTemplate ] ] ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
connector Connector name.
value Value to search for.
summaryTemplate Template used to show the items in summary mode. summary
context Elephant context for links.
fullTemplate Template used to show one items in full mode. full

Shows a text depending on whether user's my-data is valid or not.

{@ my-data : valid : not-valid }
Atributs Descripció Opcions Per defecte
valid
not-valid

Creates an editable form for web descriptors.

{@ describe-it : entityPath [ : id ] }
Atributs Descripció Opcions Per defecte
entityPath Path to a entity.
id Identifier. Default

Convocation check interface for attendance control.

{@ convocation-check [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. check

Shows convocations with page navigation.

{@ convocations : mode [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. all, closed, open
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows convocations without navigation.

{@ convocation-summary : mode [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. all, closed, open
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows public and user's convocations with page navigation.

{@ myconvocations : mode [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. all, closed, open
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows public and user's convocations without navigation.

{@ myconvocation-summary : mode [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. all, closed, open
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows public convocations with page navigation.

{@ public-convocations : mode [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. all, closed, open
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows public convocations without navigation.

{@ public-convocation-summary : mode [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. all, closed, open
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ old-directory [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

Renders the directory context.

{@ directory [ : type [,type...] [ : context [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ directory-summary [ : type [,type...] [ : context [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ directory-ranking [ : type [,type...] [ : context [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ directory-summary-ranking [ : type [,type...] [ : context [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ directory-restricted [ : type [,type...] [ : context [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ directory-summary-ranking-restricted [ : type [,type...] [ : context [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ directory-ranking-restricted [ : type [,type...] [ : context [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ syndications [ : type [,type...] [ : syndicationId [ : context [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
syndicationId Sindication code. See Social Groups in Contacts.
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ syndications-summary [ : type [,type...] [ : syndicationId [ : context [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
syndicationId Sindication code. See Social Groups in Contacts.
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ syndications-ranking [ : type [,type...] [ : syndicationId [ : context [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
syndicationId Sindication code. See Social Groups in Contacts.
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ syndications-summary-ranking [ : type [,type...] [ : syndicationId [ : context [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
syndicationId Sindication code. See Social Groups in Contacts.
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ syndications-restricted [ : type [,type...] [ : syndicationId [ : context [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
syndicationId Sindication code. See Social Groups in Contacts.
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ syndications-summary-ranking-restricted [ : type [,type...] [ : syndicationId [ : context [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
syndicationId Sindication code. See Social Groups in Contacts.
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ syndications-ranking-restricted [ : type [,type...] [ : syndicationId [ : context [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
syndicationId Sindication code. See Social Groups in Contacts.
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

Shows services with page navigation.

{@ services : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows services without navigation.

{@ service-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows user's company services with page navigation.

{@ myservices : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows user's company services without navigation.

{@ myservice-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows last services with page navigation.

{@ lastservices : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows last services without navigation.

{@ lastservice-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows user's company last services with page navigation.

{@ mylastservices : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows user's company last services without navigation.

{@ mylastservice-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ register [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. signup

{@ profile : contactIds [ : template ] }
Atributs Descripció Opcions Per defecte
contactIds
template Template used to show the items. summary

{@ myprofile [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. profile

DAO
Search capabilities

Dao search are preferably created using the elephant/conf context notation, which is not context dependent on its editable property. The dao-search macro should be mainly used in conjunction with an iterable macro.

DAO
Macro parser

Creates an instance of a search form. Iterators use these instances to provide search capabilities.

{@ dao-search : context }
Atributs Descripció Opcions Per defecte
context Elephant context for links.

Dossier
Using editable forms

By default, the Dossiers module provides all necessary forms to edit data. It's recommended not to use editable forms macros, but there might be exceptional use cases. Provide you need a single entry point to add information to a fixed issue, then an editable form will solve the case.

Dossier
Macro parser

Shows issues with page navigation.

{@ issues : status [ : context [ : categoryId [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, onwork
context Elephant context for links.
categoryId Category identifier. 0
dossierId Dossier identifier. 0
count Number of items to show. 10
template Template used to show the items. kbSummary, questions, motions, mySummary, proposals summary

Shows issues without navigation.

{@ issue-summary : status [ : context [ : categoryId [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, onwork
context Elephant context for links.
categoryId Category identifier. 0
dossierId Dossier identifier. 0
count Number of items to show. 10
template Template used to show the items. kbSummary, questions, motions, mySummary, proposals summary

Shows issues restricted to current user with page navigation.

{@ myissues : status [ : context [ : categoryId [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, onwork
context Elephant context for links.
categoryId Category identifier. 0
dossierId Dossier identifier. 0
count Number of items to show. 10
template Template used to show the items. kbSummary, questions, motions, mySummary, proposals summary

Shows issues restricted to current user without navigation.

{@ myissues-summary : status [ : context [ : categoryId [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, onwork
context Elephant context for links.
categoryId Category identifier. 0
dossierId Dossier identifier. 0
count Number of items to show. 10
template Template used to show the items. kbSummary, questions, motions, mySummary, proposals summary

Shows issues where current user participates as assistant, with page navigation.

{@ assisted-issues : status [ : context [ : categoryId [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, onwork
context Elephant context for links.
categoryId Category identifier. 0
dossierId Dossier identifier. 0
count Number of items to show. 10
template Template used to show the items. kbSummary, questions, motions, mySummary, proposals summary

Shows issues where current user participates as assistant, without navigation.

{@ assisted-issue-summary : status [ : context [ : categoryId [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, onwork
context Elephant context for links.
categoryId Category identifier. 0
dossierId Dossier identifier. 0
count Number of items to show. 10
template Template used to show the items. kbSummary, questions, motions, mySummary, proposals summary

Shows dossiers with page navigation.

{@ dossiers : status [ : context [ : categoryIds [,categoryIds...] [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
dossierId Dossier identifier.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers without navigation.

{@ dossier-summary : status [ : context [ : categoryIds [,categoryIds...] [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
dossierId Dossier identifier.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers where current user pparticipates, with page navigation.

{@ mydossiers : status [ : context [ : categoryIds [,categoryIds...] [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
dossierId Dossier identifier.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers where current user pparticipates, without navigation.

{@ mydossier-summary : status [ : context [ : categoryIds [,categoryIds...] [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
dossierId Dossier identifier.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers where current user directly participates, with page navigation.

{@ direct-dossiers : status [ : context [ : categoryIds [,categoryIds...] [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers where current user directly participates, without navigation.

{@ direct-dossier-summary : status [ : context [ : categoryIds [,categoryIds...] [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers where current's co-workers directly participate, with page navigation.

{@ related-dossiers : status [ : context [ : categoryIds [,categoryIds...] [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
dossierId Dossier identifier.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers where current's co-workers directly participate, without navigation.

{@ related-dossier-summary : status [ : context [ : categoryIds [,categoryIds...] [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
dossierId Dossier identifier.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers where current user has pending votes on worths.

{@ pending-vote : context : phase : worths [,worths...] [ : categoryIds [,categoryIds...] [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
phase Only items in phase type.
worths Identifiers of the worths to show.
categoryIds Category identifiers.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Lists categories in a tree format.

{@ categories : status [ : context [ : categoryIds [,categoryIds...] [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
template Template used to show the items. full

Writes web path from dossier or issue entities.

{@ web-path : path }
Atributs Descripció Opcions Per defecte
path

Creates an editable form with dossier data.

{@ edit-dossier : id [ : template ] }
Atributs Descripció Opcions Per defecte
id Identifier.
template Template used to show the items. editDossier

Creates an editable form for a new issue.

{@ create-issue : redirect [ : dossierId [ : template ] ] }
Atributs Descripció Opcions Per defecte
redirect Context where to redirect after the operation, usually saving.
dossierId Dossier identifier.
template Template used to show the items. create

Creates an editable form for question specific type of issue.

{@ edit-question : id : redirect [ : type [ : template ] ] }
Atributs Descripció Opcions Per defecte
id Identifier.
redirect Context where to redirect after the operation, usually saving.
type Only items with type. TYPE_QUESTION
template Template used to show the items. editQuestion

Creates an editable form with basic actions for adding information to an existing issue.

{@ issue-add-info : id [ : template [ : redirect ] ] }
Atributs Descripció Opcions Per defecte
id Identifier.
template Template used to show the items. addinfo
redirect Context where to redirect after the operation, usually saving.

Elephant
Polls are by default restricted

Due the fact that polls are related to other entities, polls are always restricted to user participation or observation of those entities. The public attribute refers to the attachments.

Elephant
Macro parser

Shows polls for current user with page navigation.

{@ polls [ : count [ : public ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
public Show only public content. true

Shows polls for current user without navigation.

{@ poll-list [ : count [ : public ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
public Show only public content. true

Renders the timer tracker control. When an entity path is given, returns the link to the control.

{@ time-tracker [ : entityPath ] }
Atributs Descripció Opcions Per defecte
entityPath Path to a entity.

{@ anonymous }

{@ last-activity [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ last-activity-summary [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Financials
User shopping

The site cart can be fully implement using cart related macros. See Adding a shopping cart context to an Elephant site.

Financials
Macro parser

Shows contracts with page navigation.

{@ contracts [ : context [ : count [ : intervention ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links. /user/contracts
count Number of items to show. 10
intervention Only contracts where current user has intervention. true

Shows contracts without navigation.

{@ contract-list [ : context [ : count [ : intervention ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links. /user/contracts
count Number of items to show. 10
intervention Only contracts where current user has intervention. true

Shows contracts of specific type with page navigation.

{@ contract-type [ : context [ : count [ : intervention [ : type [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links. /user/contracts
count Number of items to show. 10
intervention Only contracts where current user has intervention. true
type Only items with type. 0
template Template used to show the items. summary

Shows contracts of specific type without navigation.

{@ contract-type-list [ : context [ : count [ : intervention [ : type [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links. /user/contracts
count Number of items to show. 10
intervention Only contracts where current user has intervention. true
type Only items with type. 0
template Template used to show the items. summary

Cart's checkout form.

{@ checkout }

Clean cart content. Allows to create a context with after-clean actions.

{@ clean-cart }

Lists products with page navigation.

{@ products : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

Lists products without navigation.

{@ product-list : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

Lists promoted products with page navigation.

{@ promoted : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

Lists promoted products without navigation.

{@ promoted-list : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

Creates an unordered linkable list of product names.

{@ product-name : context : ids [,ids...] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
ids Identifiers.

Creates a comma separated linkable list of product names.

{@ product-name-list : context : ids [,ids...] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
ids Identifiers.

Shows product or sum of products' price.

{@ product-price : format : ids [,ids...] }
Atributs Descripció Opcions Per defecte
format Format used to show the value.
ids Identifiers.

Cart form.

{@ cart : shopping [ : template ] }
Atributs Descripció Opcions Per defecte
shopping Shopping mode.
template Template used to show the items. cart

Publications
How images are selected in image templates?

Publication macros provide several image templates. Because a publication macro lists a number of publications, images can't be selected individually. By default, the shown images are those in the root publishable folder. For other conventions see anchor.

The exception, the grid template

The grid template depends on a single image and uses the priorized folder. More information about publishable folders in anchor.

Publications
Macro parser

Lists publications with page navigation.

{@ publication : context [ : groupId [ : categoryId [ : count [ : template [ : lang ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
groupId Group identifier. 0
categoryId Category identifier. 0
count Number of items to show. 10
template Template used to show the items. entryTitleImage, entry, eventTitle, eventTitleImage, grid, event, entryTitle summary
lang Elephant language.

Lists publications without navigation.

{@ publication-summary : context [ : groupId [ : categoryId [ : count [ : template [ : lang ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
groupId Group identifier. 0
categoryId Category identifier. 0
count Number of items to show. 10
template Template used to show the items. entryTitleImage, entry, eventTitle, eventTitleImage, grid, event, entryTitle summary
lang Elephant language.

Shows a full publication.

{@ single-publication : id [ : template ] }
Atributs Descripció Opcions Per defecte
id Identifier.
template Template used to show the items. full

Students
Why do I want non restricted challenges?

Due the fact that challenges are intended to generate a response, should be not so important to make them visible to registered users. Responses to those challenges are strongly restricted to specific users.

Students
Macro parser

{@ challenges : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

{@ challenges-summary : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

{@ mychallenges : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

{@ mychallenges-summary : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

{@ jobboard : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ jobboard-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ myjobboard : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ myjobboard-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ lastjobboard : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ lastjobboard-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ mylastjobboard : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ mylastjobboard-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Documentation

Documentation macros are internal specific macros used to document elephant macros themselves and other BrightSide related macros.

This page is an example of using documentation macros. The following tables are generated by elephant-macros macro. Used as {@elephant-macros:Documentation}.

Documentation
Macro parser

Shows content providers. Mainly used in newsletters' external sections (External macros).

{@ provider-macros [ : doc-properties [ : tmpl-root [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
doc-properties Properties file for documentation. */documentation
tmpl-root Templates root. documentation
template Template used to show the items. providerMacros

Contacts social groups (Social Groups).

{@ social-groups [ : doc-properties [ : tmpl-root [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
doc-properties Properties file for documentation. */documentation
tmpl-root Templates root. documentation
template Template used to show the items. socialGroups

Shows Elephant macros.

{@ elephant-macros : parser [ : headers [ : doc-properties [ : tmpl-root [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
parser Parser name. all
headers true
doc-properties Properties file for documentation. */documentation
tmpl-root Templates root. documentation
template Template used to show the items. elephantMacros

{@ elephant-emojis [ : tmpl-root [ : template ] ] }
Atributs Descripció Opcions Per defecte
tmpl-root Templates root. documentation
template Template used to show the items. providerEmojis

{@ elephant-icons [ : tmpl-root [ : template ] ] }
Atributs Descripció Opcions Per defecte
tmpl-root Templates root. documentation
template Template used to show the items. providerIcons

Shows Elephant indicators.

{@ elephant-indicators : indicator [ : headers [ : doc-properties [ : tmpl-root [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
indicator Indicator name. all
headers true
doc-properties Properties file for documentation. */documentation
tmpl-root Templates root. documentation
template Template used to show the items. elephantIndicators

Macro summary

Current summary reflects only those macros related to modules. Next step will be move the whole set of macros to the self-explained API. Current page is rendered with elephant-macros, used as {@elephant-macros:all}.

Attachments
Macro parser

Shows the attachments from a specific entity.

{@ attachment : entityPath [ : template ] }
Atributs Descripció Opcions Per defecte
entityPath Path to a entity.
template Template used to show the items. editableTree tree

Shows the attachments from a specific entity in readonly mode.

{@ attachment-ro : entityPath [ : template ] }
Atributs Descripció Opcions Per defecte
entityPath Path to a entity.
template Template used to show the items. tree-ro

Shows the attachments from a specific entity in readonly mode, after accepting site terms.

{@ attachment-rot : entityPath [ : template ] }
Atributs Descripció Opcions Per defecte
entityPath Path to a entity.
template Template used to show the items. tree-rot

Shows the attachments from current user.

{@ self-attachments [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. tree

Shows the attachments from current user in readonly mode.

{@ self-attachments-ro [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. tree-ro

Shows the attachments from current user in readonly mode, after accepting site terms.

{@ self-attachments-rot [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. tree-rot

Calendar
Macro parser

Renders calendar URL for current user.

{@ calendar : type }
Atributs Descripció Opcions Per defecte
type Only items with type. url

Contacts
Macro parser

Lists groups in a tree format.

{@ groups : context : group-category }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
group-category Category identifier of the groups.

Lists contacts with page navigation.

{@ contacts [ : count [ : syndicationId [ : summaryTemplate [ : context [ : fullTemplate ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
syndicationId Sindication code. See Social Groups in Contacts.
summaryTemplate Template used to show the items in summary mode. summary
context Elephant context for links.
fullTemplate Template used to show one items in full mode. full

{@ contacts-summary [ : count [ : syndicationId [ : summaryTemplate [ : context [ : fullTemplate ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
syndicationId Sindication code. See Social Groups in Contacts.
summaryTemplate Template used to show the items in summary mode. summary
context Elephant context for links.
fullTemplate Template used to show one items in full mode. full

Lists contacts in grouping with page navigation.

{@ contacts-by-group [ : count [ : groupings [ : summaryTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
groupings Items groupings.
summaryTemplate Template used to show the items in summary mode. summary

Lists contacts in grouping without navigation.

{@ contacts-by-group-summary [ : count [ : groupings [ : summaryTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
groupings Items groupings.
summaryTemplate Template used to show the items in summary mode. summary

Shows contact count.

{@ contactcount [ : syndicationId ] }
Atributs Descripció Opcions Per defecte
syndicationId Sindication code. See Social Groups in Contacts.

Lists contacts with specific connector value with page navigation.

{@ contacts-connector : count : connector [ : value [,value...] [ : summaryTemplate [ : context [ : fullTemplate ] ] ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
connector Connector name.
value Value to search for.
summaryTemplate Template used to show the items in summary mode. summary
context Elephant context for links.
fullTemplate Template used to show one items in full mode. full

Lists contacts with specific connector value without navigation.

{@ contacts-connector-summary : count : connector [ : value [,value...] [ : summaryTemplate [ : context [ : fullTemplate ] ] ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
connector Connector name.
value Value to search for.
summaryTemplate Template used to show the items in summary mode. summary
context Elephant context for links.
fullTemplate Template used to show one items in full mode. full

Shows a text depending on whether user's my-data is valid or not.

{@ my-data : valid : not-valid }
Atributs Descripció Opcions Per defecte
valid
not-valid

Creates an editable form for web descriptors.

{@ describe-it : entityPath [ : id ] }
Atributs Descripció Opcions Per defecte
entityPath Path to a entity.
id Identifier. Default

Convocation check interface for attendance control.

{@ convocation-check [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. check

Shows convocations with page navigation.

{@ convocations : mode [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. all, closed, open
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows convocations without navigation.

{@ convocation-summary : mode [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. all, closed, open
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows public and user's convocations with page navigation.

{@ myconvocations : mode [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. all, closed, open
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows public and user's convocations without navigation.

{@ myconvocation-summary : mode [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. all, closed, open
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows public convocations with page navigation.

{@ public-convocations : mode [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. all, closed, open
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows public convocations without navigation.

{@ public-convocation-summary : mode [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. all, closed, open
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ old-directory [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

Renders the directory context.

{@ directory [ : type [,type...] [ : context [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ directory-summary [ : type [,type...] [ : context [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ directory-ranking [ : type [,type...] [ : context [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ directory-summary-ranking [ : type [,type...] [ : context [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ directory-restricted [ : type [,type...] [ : context [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ directory-summary-ranking-restricted [ : type [,type...] [ : context [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ directory-ranking-restricted [ : type [,type...] [ : context [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ syndications [ : type [,type...] [ : syndicationId [ : context [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
syndicationId Sindication code. See Social Groups in Contacts.
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ syndications-summary [ : type [,type...] [ : syndicationId [ : context [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
syndicationId Sindication code. See Social Groups in Contacts.
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ syndications-ranking [ : type [,type...] [ : syndicationId [ : context [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
syndicationId Sindication code. See Social Groups in Contacts.
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ syndications-summary-ranking [ : type [,type...] [ : syndicationId [ : context [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
syndicationId Sindication code. See Social Groups in Contacts.
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ syndications-restricted [ : type [,type...] [ : syndicationId [ : context [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
syndicationId Sindication code. See Social Groups in Contacts.
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ syndications-summary-ranking-restricted [ : type [,type...] [ : syndicationId [ : context [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
syndicationId Sindication code. See Social Groups in Contacts.
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

{@ syndications-ranking-restricted [ : type [,type...] [ : syndicationId [ : context [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
type Only items with type. all, typed, companies, professionals, centers, students, educators, singletons all
syndicationId Sindication code. See Social Groups in Contacts.
context Elephant context for links.
count Number of items to show. 12
template Template used to show the items. summary

Shows services with page navigation.

{@ services : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows services without navigation.

{@ service-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows user's company services with page navigation.

{@ myservices : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows user's company services without navigation.

{@ myservice-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows last services with page navigation.

{@ lastservices : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows last services without navigation.

{@ lastservice-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows user's company last services with page navigation.

{@ mylastservices : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Shows user's company last services without navigation.

{@ mylastservice-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ register [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. signup

{@ profile : contactIds [ : template ] }
Atributs Descripció Opcions Per defecte
contactIds
template Template used to show the items. summary

{@ myprofile [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. profile

Core
Macro parser

Expands into web application's context.

{@ webroot }

Expends into site name.

{@ site }

Shows current rendering context.

{@ rendering }

Elephant language.

{@ lang }

Calls modules' user summaries and show the results.

{@ user-summary [ : mode ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. init

{@ user-contents }

Reads and renders file content.

{@ include : content-file }
Atributs Descripció Opcions Per defecte
content-file System file to show.

Writes parameter with name value or default when null.

{@ param : name [ : default ] }
Atributs Descripció Opcions Per defecte
name Attribute name.
default Default value.

Renders context content. If stopper is set to true, stops when finding a line starting with .

{@ render : context [ : stopper ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
stopper Whether rendering should stop.

Writes current date, time or both using diferent localized formats.

{@ date [ : mode [ : format ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. date, all, time date
format Format used to show the value. short, medium, long, full short

Renders the feed at url.

{@ feed : url }
Atributs Descripció Opcions Per defecte
url Uniform Resource Locator.

Creates an Elephant marker within context with name. Elephant markers are initialized with correct locale and constructor as variable.

{@ marker : tmpl-root : template : value-map }
Atributs Descripció Opcions Per defecte
tmpl-root Templates root.
template Template used to show the items.
value-map Values using the form variable=value separated by ;

Creates an Elephant marker within context with name. The repository-file is stored in props.

{@ marker-props : tmpl-root : template : repository-file }
Atributs Descripció Opcions Per defecte
tmpl-root Templates root.
template Template used to show the items.
repository-file Name of the repository file.

Creates an Elephant marker within context with name. The repository-file is stored in doc.

{@ marker-xml : tmpl-root : template : repository-file }
Atributs Descripció Opcions Per defecte
tmpl-root Templates root.
template Template used to show the items.
repository-file Name of the repository file.

Creates an Elephant marker within context with name. The repository-file is stored in json.

{@ marker-json : tmpl-root : template : repository-file }
Atributs Descripció Opcions Per defecte
tmpl-root Templates root.
template Template used to show the items.
repository-file Name of the repository file.

Writes a json array of files matching path and pattern. The array can be as is, sorted or shuffled.

{@ files : folder : pattern : mode }
Atributs Descripció Opcions Per defecte
folder Folder location.
pattern The pattern items must match.
mode Mode to use. normal, sort, shuffle

Creates a frame with url content. If url starts with '/' application context is automatically inserted.

{@ frame : url : width : height }
Atributs Descripció Opcions Per defecte
url Uniform Resource Locator.
width CSS style width.
height CSS style height.

Gets resource value and renders as mode. Mode is an integer optional parameter.

{@ res : resource-key [ : string-mode ] }
Atributs Descripció Opcions Per defecte
resource-key Key used to locate de resource.
string-mode Possible values are: 0 No transform, 1 Capitalized, 2 To upper case, 3 To lower case. 0

{@ i18n : resource [ : string-mode ] }
Atributs Descripció Opcions Per defecte
resource
string-mode Possible values are: 0 No transform, 1 Capitalized, 2 To upper case, 3 To lower case. 0

Writes a random number starting at zero and up to limit minus one.

{@ random : random-limit }
Atributs Descripció Opcions Per defecte
random-limit Random values ceil.

Elephant context for links.

{@ context : level }
Atributs Descripció Opcions Per defecte
level Number of the item level.

Writes currently logged user's name, identifier or email.

{@ user [ : mode ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. name, id, email name

Writes true or false expressions depending on whether role:attribute pair are satisfied.

{@ if : role : attribute : true-expression : false-expression }
Atributs Descripció Opcions Per defecte
role Entity role part.
attribute Permission part.
true-expression When comparison is true.
false-expression When comparison is false.

Writes true or false expressions depending on whether cookie value equals value.

{@ ifcookie : cookie : value : true-expression : false-expression }
Atributs Descripció Opcions Per defecte
cookie Cookie name.
value Value to search for.
true-expression When comparison is true.
false-expression When comparison is false.

Writes true or false expressions depending on whether class could be instantiated.

{@ class : class-name : true-expression : false-expression }
Atributs Descripció Opcions Per defecte
class-name Java class name.
true-expression When comparison is true.
false-expression When comparison is false.

Writes true or false expressions depending on whether value1 equals value2.

{@ equals : value : value : true-expression : false-expression }
Atributs Descripció Opcions Per defecte
value Value to search for.
value Value to search for.
true-expression When comparison is true.
false-expression When comparison is false.

Renders object's attribute as string. object can also be an entityPath.

{@ object : ref-object : attribute }
Atributs Descripció Opcions Per defecte
ref-object Attribute name holding the object or an entityPath.
attribute Renders attribute's value as string.

Renders attribute's value as string.

{@ attribute : attribute [ : format ] }
Atributs Descripció Opcions Per defecte
attribute Renders attribute's value as string.
format Format used to show the value.

Renders entity using name and description.

{@ entity : entityPath : fmt-name-desc }
Atributs Descripció Opcions Per defecte
entityPath Path to a entity.
fmt-name-desc Format, as in String.format(), with entity name and description as parameters.

Renders the entity represented by path calling plugin and using template if specified.

{@ entity-ctrl : plugin : entityPath [ : template ] }
Atributs Descripció Opcions Per defecte
plugin Plugin name.
entityPath Path to a entity.
template Template used to show the items.

Writes cookie value. If optional value is defined, then sets cookie value.

{@ cookie : name [ : value ] }
Atributs Descripció Opcions Per defecte
name Attribute name.
value Value to be set when defined.

Indicator name.

{@ indicator : storeClass : indicatorClass : entityPath : indicator [ : relatedPath ] }
Atributs Descripció Opcions Per defecte
storeClass
indicatorClass
entityPath Path to a entity.
indicator Indicator name.
relatedPath

{@ entry-point : identifier [ : values ] }
Atributs Descripció Opcions Per defecte
identifier
values

DAO
Macro parser

Creates an instance of a search form. Iterators use these instances to provide search capabilities.

{@ dao-search : context }
Atributs Descripció Opcions Per defecte
context Elephant context for links.

Documentation
Macro parser

Shows content providers. Mainly used in newsletters' external sections (External macros).

{@ provider-macros [ : doc-properties [ : tmpl-root [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
doc-properties Properties file for documentation. */documentation
tmpl-root Templates root. documentation
template Template used to show the items. providerMacros

Contacts social groups (Social Groups).

{@ social-groups [ : doc-properties [ : tmpl-root [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
doc-properties Properties file for documentation. */documentation
tmpl-root Templates root. documentation
template Template used to show the items. socialGroups

Shows Elephant macros.

{@ elephant-macros : parser [ : headers [ : doc-properties [ : tmpl-root [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
parser Parser name. all
headers true
doc-properties Properties file for documentation. */documentation
tmpl-root Templates root. documentation
template Template used to show the items. elephantMacros

{@ elephant-emojis [ : tmpl-root [ : template ] ] }
Atributs Descripció Opcions Per defecte
tmpl-root Templates root. documentation
template Template used to show the items. providerEmojis

{@ elephant-icons [ : tmpl-root [ : template ] ] }
Atributs Descripció Opcions Per defecte
tmpl-root Templates root. documentation
template Template used to show the items. providerIcons

Shows Elephant indicators.

{@ elephant-indicators : indicator [ : headers [ : doc-properties [ : tmpl-root [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
indicator Indicator name. all
headers true
doc-properties Properties file for documentation. */documentation
tmpl-root Templates root. documentation
template Template used to show the items. elephantIndicators

Dossier
Macro parser

Shows issues with page navigation.

{@ issues : status [ : context [ : categoryId [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, onwork
context Elephant context for links.
categoryId Category identifier. 0
dossierId Dossier identifier. 0
count Number of items to show. 10
template Template used to show the items. kbSummary, questions, motions, mySummary, proposals summary

Shows issues without navigation.

{@ issue-summary : status [ : context [ : categoryId [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, onwork
context Elephant context for links.
categoryId Category identifier. 0
dossierId Dossier identifier. 0
count Number of items to show. 10
template Template used to show the items. kbSummary, questions, motions, mySummary, proposals summary

Shows issues restricted to current user with page navigation.

{@ myissues : status [ : context [ : categoryId [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, onwork
context Elephant context for links.
categoryId Category identifier. 0
dossierId Dossier identifier. 0
count Number of items to show. 10
template Template used to show the items. kbSummary, questions, motions, mySummary, proposals summary

Shows issues restricted to current user without navigation.

{@ myissues-summary : status [ : context [ : categoryId [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, onwork
context Elephant context for links.
categoryId Category identifier. 0
dossierId Dossier identifier. 0
count Number of items to show. 10
template Template used to show the items. kbSummary, questions, motions, mySummary, proposals summary

Shows issues where current user participates as assistant, with page navigation.

{@ assisted-issues : status [ : context [ : categoryId [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, onwork
context Elephant context for links.
categoryId Category identifier. 0
dossierId Dossier identifier. 0
count Number of items to show. 10
template Template used to show the items. kbSummary, questions, motions, mySummary, proposals summary

Shows issues where current user participates as assistant, without navigation.

{@ assisted-issue-summary : status [ : context [ : categoryId [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, onwork
context Elephant context for links.
categoryId Category identifier. 0
dossierId Dossier identifier. 0
count Number of items to show. 10
template Template used to show the items. kbSummary, questions, motions, mySummary, proposals summary

Shows dossiers with page navigation.

{@ dossiers : status [ : context [ : categoryIds [,categoryIds...] [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
dossierId Dossier identifier.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers without navigation.

{@ dossier-summary : status [ : context [ : categoryIds [,categoryIds...] [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
dossierId Dossier identifier.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers where current user pparticipates, with page navigation.

{@ mydossiers : status [ : context [ : categoryIds [,categoryIds...] [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
dossierId Dossier identifier.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers where current user pparticipates, without navigation.

{@ mydossier-summary : status [ : context [ : categoryIds [,categoryIds...] [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
dossierId Dossier identifier.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers where current user directly participates, with page navigation.

{@ direct-dossiers : status [ : context [ : categoryIds [,categoryIds...] [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers where current user directly participates, without navigation.

{@ direct-dossier-summary : status [ : context [ : categoryIds [,categoryIds...] [ : count [ : template ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers where current's co-workers directly participate, with page navigation.

{@ related-dossiers : status [ : context [ : categoryIds [,categoryIds...] [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
dossierId Dossier identifier.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers where current's co-workers directly participate, without navigation.

{@ related-dossier-summary : status [ : context [ : categoryIds [,categoryIds...] [ : dossierId [ : count [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
dossierId Dossier identifier.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Shows dossiers where current user has pending votes on worths.

{@ pending-vote : context : phase : worths [,worths...] [ : categoryIds [,categoryIds...] [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
phase Only items in phase type.
worths Identifiers of the worths to show.
categoryIds Category identifiers.
count Number of items to show. 10
template Template used to show the items. projects, dossiers summary

Lists categories in a tree format.

{@ categories : status [ : context [ : categoryIds [,categoryIds...] [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
status Only items with status. all, closed, frozen, not-frozen, onwork
context Elephant context for links.
categoryIds Category identifiers.
template Template used to show the items. full

Writes web path from dossier or issue entities.

{@ web-path : path }
Atributs Descripció Opcions Per defecte
path

Creates an editable form with dossier data.

{@ edit-dossier : id [ : template ] }
Atributs Descripció Opcions Per defecte
id Identifier.
template Template used to show the items. editDossier

Creates an editable form for a new issue.

{@ create-issue : redirect [ : dossierId [ : template ] ] }
Atributs Descripció Opcions Per defecte
redirect Context where to redirect after the operation, usually saving.
dossierId Dossier identifier.
template Template used to show the items. create

Creates an editable form for question specific type of issue.

{@ edit-question : id : redirect [ : type [ : template ] ] }
Atributs Descripció Opcions Per defecte
id Identifier.
redirect Context where to redirect after the operation, usually saving.
type Only items with type. TYPE_QUESTION
template Template used to show the items. editQuestion

Creates an editable form with basic actions for adding information to an existing issue.

{@ issue-add-info : id [ : template [ : redirect ] ] }
Atributs Descripció Opcions Per defecte
id Identifier.
template Template used to show the items. addinfo
redirect Context where to redirect after the operation, usually saving.

Elephant
Macro parser

Shows polls for current user with page navigation.

{@ polls [ : count [ : public ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
public Show only public content. true

Shows polls for current user without navigation.

{@ poll-list [ : count [ : public ] ] }
Atributs Descripció Opcions Per defecte
count Number of items to show. 10
public Show only public content. true

Renders the timer tracker control. When an entity path is given, returns the link to the control.

{@ time-tracker [ : entityPath ] }
Atributs Descripció Opcions Per defecte
entityPath Path to a entity.

{@ anonymous }

{@ last-activity [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ last-activity-summary [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Financials
Macro parser

Shows contracts with page navigation.

{@ contracts [ : context [ : count [ : intervention ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links. /user/contracts
count Number of items to show. 10
intervention Only contracts where current user has intervention. true

Shows contracts without navigation.

{@ contract-list [ : context [ : count [ : intervention ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links. /user/contracts
count Number of items to show. 10
intervention Only contracts where current user has intervention. true

Shows contracts of specific type with page navigation.

{@ contract-type [ : context [ : count [ : intervention [ : type [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links. /user/contracts
count Number of items to show. 10
intervention Only contracts where current user has intervention. true
type Only items with type. 0
template Template used to show the items. summary

Shows contracts of specific type without navigation.

{@ contract-type-list [ : context [ : count [ : intervention [ : type [ : template ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links. /user/contracts
count Number of items to show. 10
intervention Only contracts where current user has intervention. true
type Only items with type. 0
template Template used to show the items. summary

Cart's checkout form.

{@ checkout }

Clean cart content. Allows to create a context with after-clean actions.

{@ clean-cart }

Lists products with page navigation.

{@ products : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

Lists products without navigation.

{@ product-list : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

Lists promoted products with page navigation.

{@ promoted : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

Lists promoted products without navigation.

{@ promoted-list : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

Creates an unordered linkable list of product names.

{@ product-name : context : ids [,ids...] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
ids Identifiers.

Creates a comma separated linkable list of product names.

{@ product-name-list : context : ids [,ids...] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
ids Identifiers.

Shows product or sum of products' price.

{@ product-price : format : ids [,ids...] }
Atributs Descripció Opcions Per defecte
format Format used to show the value.
ids Identifiers.

Cart form.

{@ cart : shopping [ : template ] }
Atributs Descripció Opcions Per defecte
shopping Shopping mode.
template Template used to show the items. cart

Navigation
Macro parser

Renders a bread crumbs navigator as an HTML unordered list.

{@ navigator : location }
Atributs Descripció Opcions Per defecte
location Navigator mode.

Renders a traversal navigator as an HTML table with three columns.

{@ navigator : traversal [ : show-title ] }
Atributs Descripció Opcions Per defecte
traversal Navigator mode.
show-title When true, renders context name as well. false

Renders a menu as HTML unordered list. level tells starting at which level options are shown. preloaded indicates how many children are to be shown.

{@ navigator : options : decorators : level : preloaded [ : show-current ] }
Atributs Descripció Opcions Per defecte
options Navigator mode.
decorators When true, aditional DIVs are added at top and bottom.
level Number of the item level.
preloaded Number of preloaded children.
show-current When true, children passing preloaded value will show along with ancestors and siblings, as opposed to not showing any child with level over level + preloaded. true

Renders a tabulator as HTML unordered list. level tells at which level tabs are shown.

{@ navigator : tabulator : level }
Atributs Descripció Opcions Per defecte
tabulator Navigator mode.
level Number of the item level.

Renders a web map.

{@ webmap [ : level ] }
Atributs Descripció Opcions Per defecte
level Tells until which level contexts are shown. 1

Renders a list of selectable contexts.

{@ list : behavioural_keywords [,behavioural_keywords...] : navigational_keywords [,navigational_keywords...] : selection_keywords [,selection_keywords...] }
Atributs Descripció Opcions Per defecte
behavioural_keywords Keywords controlling how information displays. popup, external, hidden, verbose
navigational_keywords Keywords to navigate Elephant contexts. parent, locate, level, root, match
selection_keywords Keywords actually returning contexts. all, siblings, search, children, self, leaf, ancestors

Renders a line of selectable contexts.

{@ anchor : behavioural_keywords [,behavioural_keywords...] : navigational_keywords [,navigational_keywords...] : selection_keywords [,selection_keywords...] }
Atributs Descripció Opcions Per defecte
behavioural_keywords Keywords controlling how information displays. popup, external, hidden, verbose
navigational_keywords Keywords to navigate Elephant contexts. parent, locate, level, root, match
selection_keywords Keywords actually returning contexts. all, siblings, search, children, self, leaf, ancestors

Publications
Macro parser

Lists publications with page navigation.

{@ publication : context [ : groupId [ : categoryId [ : count [ : template [ : lang ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
groupId Group identifier. 0
categoryId Category identifier. 0
count Number of items to show. 10
template Template used to show the items. entryTitleImage, entry, eventTitle, eventTitleImage, grid, event, entryTitle summary
lang Elephant language.

Lists publications without navigation.

{@ publication-summary : context [ : groupId [ : categoryId [ : count [ : template [ : lang ] ] ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
groupId Group identifier. 0
categoryId Category identifier. 0
count Number of items to show. 10
template Template used to show the items. entryTitleImage, entry, eventTitle, eventTitleImage, grid, event, entryTitle summary
lang Elephant language.

Shows a full publication.

{@ single-publication : id [ : template ] }
Atributs Descripció Opcions Per defecte
id Identifier.
template Template used to show the items. full

Students
Macro parser

{@ challenges : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

{@ challenges-summary : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

{@ mychallenges : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

{@ mychallenges-summary : context [ : count [ : summaryTemplate [ : fullTemplate ] ] ] }
Atributs Descripció Opcions Per defecte
context Elephant context for links.
count Number of items to show. 10
summaryTemplate Template used to show the items in summary mode. summary
fullTemplate Template used to show one items in full mode. full

{@ jobboard : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ jobboard-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ myjobboard : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ myjobboard-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ lastjobboard : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ lastjobboard-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ mylastjobboard : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

{@ mylastjobboard-summary : role : type [ : context [ : count [ : template ] ] ] }
Atributs Descripció Opcions Per defecte
role Entity role part. SERVICE_SUPPLY, SERVICE_DEMAND
type Only items with type.
context Elephant context for links.
count Number of items to show. 10
template Template used to show the items. summary

Elephant Web
Macro parser

{@ wtargets : mode [ : selection [ : template ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. all, current all
selection true, false true
template Template used to show the items. summary, vlist, hlist summary

{@ wsolutions : mode [ : selection [ : template ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. all, current all
selection true, false true
template Template used to show the items. summary, vlist, hlist summary

{@ wservices : mode [ : selection [ : template ] ] }
Atributs Descripció Opcions Per defecte
mode Mode to use. all, current all
selection true, false true
template Template used to show the items. summary, vlist, hlist summary

{@ wnexts [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. summary, vlist, hlist summary

{@ wsiblings [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. summary, vlist, hlist summary

{@ wgoals [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. gsummary

{@ wcurrent [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. full

{@ witem : wtag [ : template ] }
Atributs Descripció Opcions Per defecte
wtag
template Template used to show the items. full

{@ wgoal : waction [ : template ] }
Atributs Descripció Opcions Per defecte
waction
template Template used to show the items. gfull

{@ wexternals [ : template ] }
Atributs Descripció Opcions Per defecte
template Template used to show the items. webLinks