wiki:HeadLinkMacro

Insert <link> tags in the <head> of a wiki page

Description

A Wiki macro to insert <link> tags in the <head> of a Trac wiki page. This is useful for when adding an RSS feed to your wiki page.

Works with Trac 0.10 and uses hdf. Will not work with Trac 0.11, which removes hdf.

Usage:

[[HeadLink(rel, mimetype, URL, title)]]

Where:

rel
rel attribute, for example "alternate"
mimetype
the type of the link, for example "application/rss+xml"
URL
the URL of the link
title
the title of the link

For example, the following wiki markup:

[[HeadLink(alternate application/rss+xml https://apestaart.org/moap/releases.rss2 RSS 2.0 Release feed)]]

would insert the following into the <head> section of your Trac page:

<link rel="alternate" href="http://thomas.apestaart.org/moap/releases.rss2" title="RSS 2.0 Release feed" type="application/rss+xml" />

It also adds the feed do the bottom of your Trac page.

Bugs/Feature Requests

Existing bugs and feature requests for HeadLinkMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out HeadLinkMacro from here using Subversion, or browse the source with Trac.

Recent Changes

2243 by thomasvs on 2007-05-20 13:24:26
HeadLinkMacro:

import

2242 by thomasvs on 2007-05-19 17:35:10
New hack HeadLinkMacro, created by thomasvs
(more)

Author/Contributors

Author: thomasvs
Maintainer: thomasvs
Contributors:

Last modified 6 days ago Last modified on Feb 15, 2017, 10:21:02 PM