Extension
Nom JO's Models
Joomla Extension  authoring-a-content/content-construction/jo-s-models/
Github  JO's Models
Download  JO's Models Download

This plugin allows you to use "models" in the same way as on Mediawiki, Subpage templates can be instantiated with parameters.

Model configuration:

The first thing is to create a model

  • Go to the Component Menu JO Models/Models
  • click on New

joomlacomponentsjomodels_newmodel.png

  • fill in the name fields
  • indicate the type
    • Full => the model will be of the form <model:name parameters>content</model:name>
    • Normal => the model will be of the form <model:name parameters>
    • fill in the content of the template e.g.:
    <span class="icon-calendar icon-fw" style="text-align: left; min-width: 11ch; font-size: 11px !important; margin-left: -2px;" aria-hidden="true"> %{date}</span>
  • Parameters are of the form %{parameter_name} they are replaced at inclusion in an article.
  • It is also possible to have a default value: Example:
%{date|29/11/24}

Then we'll use it in an article

ex:

{model:jdate date="28/12/24"}

 

Examples:

 

{model:bracket} {
{model:img |src=images/joomla/components/com_attachments.gif|width=50px}
{model:intralink |link=/actualites|text= News}   News
{model:weblink |link=https://www.lemonde.fr/|text=Le Monde}  Le Monde
{model:file |file=test.txt}  test.txt
{model:info}this is information{/model:info}}
this is information
{model:warning}this is information{/model:warning}}
This is a warning
{model:readmorewiki |article=Rational_Clearcase|text=Rational Clearcase}
{model:wikilink |link=Rational_Clearcase|text=Rational Clearcase}   Rational Clearcase
{model:githublink |link=jmcameron/attachments|text=attachments}  attachments
{model:jdate |date=28/12/24}
{model: extension name=JO's Models|link=authoring-a-content/content-construction/jo-s-models/|githublink=JLTRY/jomodels|githubdownload=JLTRY/jomodels/releases/download/v1.0.3/jomodels-1.0.3.zip} See above