My Mirrors

Admin Pages

Admin: Composite Definition

Add New Composite Shortcode

New Shortcode Name (text)
SAVE

Edit Composite Shortcode Definition

Existing Shortcode Name (select)
SELECT

A Composite Shortcode is comprised of from one to nine Link, Embed, Auto and/or ProForma shortcodes.  These shortcodes are instantiated successively according to their definitions (below), with parameters derived from:

  • the calling parameters of the Composite Shortcode instantiation
  • Automatic Strings
  • user defined Composite Parameters
  • Post metadata

 

EDITING:

Shortcode Name (display)

 

Parameters are defined in the Composite Parameters page.

enable shortcodes
A Link, Embed, Auto or ProForma shortcode (text)
A Link, Embed, Auto or ProForma shortcode (text)
A Link, Embed, Auto or ProForma shortcode (text)
A Link, Embed, Auto or ProForma shortcode (text)
A Link, Embed, Auto or ProForma shortcode (text)
A Link, Embed, Auto or ProForma shortcode (text)
A Link, Embed, Auto or ProForma shortcode (text)
A Link, Embed, Auto or ProForma shortcode (text)
A Link, Embed, Auto or ProForma shortcode (text)
SAVE

Instantiation Parameters

The following predefined parameters will auto-generate text from the parameter list of the shortcode instantiation.

  • @id
  • @url
  • @alias
  • @list
  • @pri
  • @sec
  • @ter
  • @prefix
  • @link
  • @postfix
  • @proforma

Mirrors Parameter

With the expression mirrors=”comma separated integer listin the instantiation of the Composite Shortcode, the order of mirror instantiation may be reorganized, including skips.  If present. it must contain at least as many integers as needed for this Composite Shortcode definition.

The value of “@mirror” will be the successive values of this list if mirrors is in the instantiation, and the successive integers 1-9 if it is not.  

The value of “@alternate” will be the successive values of this list if mirrors is in the instantiation, and the successive integers 1-9 if it is not, except that if the mirror resolves to the same as mirror_0, this shortcode within the Composite Shortcode is not instantiated.

Thus a typical Composite Shortcode definition might set mirror=0 for the first Embed Shortcode, and mirror=@alternate for each succeeding Link Shortcode.

The successive values of these parameters increment with each instantiation of a shortcode for which they are a legal parameter, whether a @mirror or @alternate is specified or not.  The values do not increment for any shortcode which cannot take a @mirror parameter.

  • @mirror
  • @alternate

Automatic Strings

The following predefined parameters will auto-generate text from the context of the shortcode instantiation.

  • @resource_id
  • @resource_name
  • @mirror_name
  • @mirror_number
  • @virtual_name
  • @server_name

In addition, all of the Composite Parameters (defined in the Composite Parameters page) which will appear in the Composite Shortcode instantiation may be used.

Section 7-8