Link

Skip to end of metadata
Go to start of metadata

Configuration

You can pass every valid attribute an a-tag can have (w3.org - Link), such as:

  • class
  • target
  • id
  • style
  • accesskey
  • name
  • title
  • class
  • ...
Name Type
Description
reload
boolean
Set to true to reload the page in editmode after changing the state

Accessable Properties

Name
Type
Description
getHref()
string
get the path of this link

Simple Example

<?php echo $this->link("myLink"); ?>

Advanced Example

<?php while ($this->block("linkblock")->loop()) { ?>
    <?php echo $this->link("myLink", array("class" => "myClass")); ?>
<?php } ?>


This editable is useful for structured links, which shouldn't be inside a WYSIWYG.
It can be used with assets and documents or even as an external link starting with http://

Example linklist:

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Apr 16, 2011

    jason fonseca says:

    I used the linkblock code but instead of a list of links it just comes up with a...

    I used the linkblock code but instead of a list of links it just comes up with a list of select boxes. Can someone tell me what needs to be done here?

    Thanks