Link Tag
{exp:missing_link:link type="snippet" name="global_footer"}
Edit This
{/exp:missing_link:link}
This tag can be used to build one-click edit links for various content types as well as custom links to any third party modules or services that your site utilises. Pages will load in a lightbox and users will be prompted to refresh the page after completing their changes. Links can be created in an automated fashion by providing a data type
and an id
or name
. Alternatively you can generate URLs manually via the cp_url
and url
parameters.
An advanced syntax is available if you’d like more control over your link markup.
The Missing Link head and body tags are required for link tags to function correctly.
Parameters
attr
attr:class="my_edit_link"
You can use this parameter to create custom link attributes. Simply place the attr:
prefix before each attribute’s name. There’s just one caveat: In order to function Missing Link generates its own link IDs, so you can’t assign custom IDs.
cp_url
cp_url="C=design"
The cp_url
parameter can be used to generate a link to any page within the EE control panel. The base control panel URL, plus any relevant session ID, will be prepended automatically. As a rule of thumb you need to specify the part of the URL that comes after &D=cp&
. The example provided above would direct users to http://example.com/system/index.php?S=0&D=cp&C=design
.
id
id="4"
The numeric ID of the item you’d like to link to, used in conjunction with the type
parameter.
name
name="global_header"
The name (or URL title in the case of entries) of the item you’d like to link to, used in conjunction with the type
parameter.
type
type="entry"
The type of data that you’d like to generate a link to, used in conjunction with the id
or name
parameters. Defaults to ‘entry’ if no value is provided. Currently supported options include:
- entry
- snippet
- global_variable
- low_variable (if Low Variables is installed)
As Low Variables don’t have variable-specific edit pages users will be shown the next best thing – the variable group edit page.
url
url="http://example.com"
The url
parameter is a catch-all option that can be used to create external links to resources such as documentation or support sites.