Powered by MediaWiki
Personal tools

Tag item edit link

From b2evolution manual

Jump to: navigation, search

This template tag displays a link leading to the edit form where an user can edit post if he has edit rights.

[edit] Example

<source lang="php"> <?php

 $Item->edit_link( array(
              'before'       => ' ',
              'after'        => ' ',
              'text'         => '#',
              'title'        => '#',
              'class'        => ,
              'save_context' => true
   ) );

?> </source>

[edit] Parameters

Name Default Usage
before (1 space) Displayed before edit link.
after (1 space) Displayed after edit link.
text '#' If 'text' parameter is not '#', then 'text' value will be displayed instead regular edit link.
title '#' If 'title' parameter is not '#', then 'title' value will be displayed instead regular edit link title.
class (no space) Link CSS class.
save_context true Save context url.

[edit] Return value

This tag displays content only, it does not have a return value.