Ir para o conteúdo
Mostrar cesto Esconder cesto
Você está aqui: Manual » Plugins » Variables Plugin

Variables Plugin

A set of simple variables to be used in a macro context.

Usage

  • Create a HTML content using TextArticle or other
    article with HTML support
  • Add a HTML div tag with css class “macro” (see Example)
  • Add inner that div tag the variable desired, like {profile}

Usage with TextArticle

The Noosfero’s macros add a extra button in toolbar of the editor
to use macros in a single way, that way this plugin add a option
called “Variables” under this option.

Supported variables

  • {profile} – will be replaced by the identifier of the profile
  • {name} – will be replaced by the name of the profile

Example

<div class="macro" data-macro="variables_plugin/profile">
  the identifier of the profile = {profile}
  the name of the profile = {name}
</div>

Info

This plugin was inspired by the solution proposed by the Serpro in
the merge-request #419 on the Gitorious:

  • https://gitorious.org/noosfero/noosfero/merge_requests/419

And improved by the guys from the UnB.