2
Feb 02 2014

Plugin Tabmenu (v4.1) [Flatpress]

Description

This is the new version of the Tabmenu plugin, that replaces, the version 4.0.

The plugin adds “sel” class if you are in that page (in HTML, class=”sel”).

You can use both {{TABCLASS}} and {{TABSELECT}} patterns: the difference is that the first adds the class attribute, the second just the sel and so you can speficy other classes. See below for an example.
This is an example (for the homepage):

<li {{TABCLASS:index}}><a href="/" title="Homepage>Homepage</a></li>
<li class="myotherclass {{TABSELECT:index}}"><a href="/" title="Homepage>Homepage</a></li>

Replace index with:

  • index for the homepage;
  • blogindex or blog for the blog homepage;
  • contact for contact.php
  • admin for admin panel
  • login for login page
  • post:entry_id or entry:entry_id for entries (entry_id is the entry id in format entryYYMMDD-hhmmss)
  • static:static_id or page:static_id for static pages (static_id is the static page name, not title)
  • category:id or cat:id for a category with category number as id
  • tag:tagname for a tag
  • params:url or fp_params:url or fpparams:url, where url is the part next to the ? of Flatpress standard urls (standard means not RewriteURLs or PrettyURLs).

A note about the blog… [Leggi il resto...]

21
Lug 05 2011

Plugin Tabmenu (v4.0) [Flatpress]

English

This plugin adds “sel” class if you are in that page (in HTML, class=”sel”).

You can use both {{TABCLASS}} and {{TABSELECT}}: the difference is that the first adds the class attribute, the second just the sel and so you can speficy other classes. See below for an example.

This is an example (for the homepage):

<li {{TABCLASS:index}}><a href="/" title="Homepage>Homepage</a></li>
<li class="myotherclass {{TABSELECT:index}}"><a href="/" title="Homepage>Homepage</a></li>

Replace index with:

  • index or blog for the blog homepage
  • contact for contact.php
  • admin for admin panel
  • login for login page
  • post:entry_id or entry:entry_id for entries (with entry_id the ID of the entry)
  • static:static_id for static pages (with static_id a static page id)
  • category:id or cat:id for a category with category number as id
  • tag:id with tag name as id
  • params:url or fp_params:url or fpparams:url instead of url insert the part next the ? of Flatpress standard urls (beta function, I’m not so sure it works)

This version fixes a bug for the homepage when specified cat=0 (as NoWhereMan’s FrontPage does…)

License: GNU GPL 2.0.

Download: tabmenu_v4.0.tar.gz

Italiano

Questo plugin aggiunge la classe sel se ci… [Leggi il resto...]

2
Mar 07 2011

Plugin Tabmenu (v3.0) [Flatpress]

Italiano

Questo plugin aggiunge la classe sel se ci si trova in quella pagina (l’equivalente HTML di class=”sel”).

Questo è un esempio di uso (per l’homepage):

<li {{TABCLASS:index}}><a href="/" title="Homepage>Homepage</a></li>

Al posto di index potete mettere:

  • index o blog per l’indice del blog
  • contact per la pagina contact.php
  • admin per il pannello di amministrazione
  • login per il login
  • post:entry_id oppure entry:entry_id con al posto di entry_id l’identificatore di flatpress per il post
  • static:static_id o page:static_id con al posto di static_id l’identificatore di Flatpress per la pagina statica (quello che decidete voi)
  • category:id o cat:id per una categoria con id il numero di categoria
  • tag:tag_name con il nome di un tag al posto di tag_name
  • params:url o fp_params:url o fpparams:url con al posto di url la parte dopo il ? degli url standard di flatpress (beta, non sono sicuro che funzioni)

Licenza: GNU GPL 2.0.

Download: tabmenu_v3.0.tar.gz

English

It adds “sel” class if you are in that page (in HTML, class=”sel”).

This is an example (for the homepage):

<li {{TABCLASS:index}}><a href="/" title="Homepage>Homepage</a></li>

Replace index with:

0
Set 18 2010

Plugin Tabmenu (v2.0) [Flatpress]

Italiano

Ho riscritto da capo questo plugin.

Esso aggiunge la classe sel se ci si trova in quella pagina (l’equivalente HTML di class=”sel”).

Questo è un esempio di uso (per l’homepage):

<li {{TABCLASS:index}}><a href="/" title="Homepage>Homepage</a></li>

Al posto di index potete mettere:

  • index o blog per l’indice del blog
  • contact per la pagina contact.php
  • admin per il pannello di amministrazione
  • login per il login
  • post:entry_id oppure entry:entry_id con al posto di entry_id l’identificatore di flatpress per il post
  • static:static_id o page:static_id con al posto di static_id l’identificatore di Flatpress per la pagina statica (quello che decidete voi)
  • category:id o cat:id per una categoria con id il numero di categoria
  • tag:tag_name con il nome di un tag al posto di tag_name

Licenza: GNU GPL 2.0.

Download: tabmenu_v2.0.tar.gz

English

I’ve rewritten this plugin from scratch.

It adds “sel” class if you are in that page (in HTML, class=”sel”).

This is an example (for the homepage):

<li {{TABCLASS:index}}><a href="/" title="Homepage>Homepage</a></li>

Replace index with:

  • index or blog for the blog homepage
  • contact for contact.php
  • admin for admin panel
  • login for login page
  • post:entry_id or entry:entry_id for entries (with entry_id the ID of the entry)
  • static:static_id for static pages (with static_id a static page id)
  • category:id o cat:id for a category with category number as id
  • tag:id with tag name as id

License: GNU GPL 2.0.

Download: tabmenu_v2.0.tar.gz

7
Ago 31 2010

Plugin Tabmenu (v1.5) [Flatpress]

Italiano

Ho scritto un plugin che permette di fare dei menu in cui la pagina dove ci si trova rimane selezionata.

Infatti esso aggiunge la classe sel se ci si trova in quella pagina (l’equivalente HTML di class=”sel”).

Questo è un esempio di uso (per l’homepage):

<li {{TABCLASS:index}}><a href="/" title="Homepage>Homepage</a></li>

Al posto di index potete mettere:

  • index per l’homepage
  • contact per la pagina contact.php
  • post:entry_id oppure entry:entry_id con al posto di entry_id l’identificatore di flatpress per il post
  • static:static_id con al posto di static_id l’identificatore di Flatpress per la pagina statica (quello che decidete voi)

Rispetto alla versione 1.0 ho corretto un piccolo bug con l’index.

Licenza: GNU GPL 2.0.

Download: tabmenu_v1.5.tar.gz

English

I’ve written a plugin that allows to make menus where page where you are, it’s selected.

It adds “sel” class if you are in that page (in HTML, class=”sel”).

This is an example (for the homepage):

<li {{TABCLASS:index}}><a href="/" title="Homepage>Homepage</a></li>

Replace index with:

  • index for the homepage
  • contact for contact.php
  • post:entry_id or entry:entry_id for entries (with entry_id the ID of the entry)
  • static:static_id for static pages (with static_id a static page id)

License: GNU GPL 2.0.

Download: tabmenu_v1.5.tar.gz