{rel} macro
Under construction
Overview
The rel macro allows you to set the rel attribute on a hyperlink.
This often ignored attribute has suddenly become important again due to Microformats and the specifications for the next generation of HTML.
Most Community Bubbles macros that display a profile picture already include rel attributes that allow Microformat-compatible plugins and services to parse data from the web page. However, there are times when you will want more control over the rel attribute and this macro allows you to insert rel values from a [central vocabulary] or custom attributes specific to your organisation.
Usage
{rel:CATEGORYID.RELATIONSHIPID}[link]{rel}
{rel:custom=rel}[link]{rel}
Parameters
Note: At least one parameter is required - either the default parameter (for pre-defined relationships) or the custom parameter for custom relationships.
| Parameter |
Required |
Default |
Notes |
Bubbles Version |
| default |
 |
|
Use a predefined relationship specified as CATEGORY.RELATIONSHIP |
1.0 |
| custom |
 |
|
Use a custom relationship, the value of the parameter will be added to the rel tag. |
1.0 |
Examples
Using pre-defined relationships
To use a pre-defined relationship (see Relationships), use the following syntax:
{rel:categoryid.relationshipid}[Page Title]{rel}
For example, if you have a "FAMILY" category with a "SPOUSE" relationship, you could define that relationship attribute on a link to your wife's personal space:
{rel:FAMILY.SPOUSE}[~Jane:Home]{rel}
Custom relationships
To use ad-hoc custom relationship attributes, use the following syntax:
{rel:custom=project}[Project Page]{rel}
Hints and Tips
To follow
CSS Customisation
To follow
FAQs
To follow
See Also
To follow.