F2C front-end edit article button

It's here! The front-end "edit article" button that opens the F2C generated Joomla article in F2C submission form view. After saving your changes or canceling edit you will return to the Joomla article. The button is ACL based so will show depending on your edit permissions in F2C.

Plugin works with F2C LITE (5.5.0 and above) and PRO

  • Step 1: Download, install and publish the F2C edit article plugin
  • Step 2: Add the plugin syntax to your F2C template
  • Step 3: Publish and test
  • Step 4: If you like create an override for the edit article link html
Since I am sure many will try let me clarify in advance. At the moment the link can not be opened in a modal box!
TIP: You can remove the Joomla edit button via Joomla template override for com_content article view.

STEP 1: Download, install and publish the F2C edit article plugin

 

STEP 2: Add the plugin syntax to your F2C template

As always with Joomla content plugins in F2C templates we replace the { } tags with {ldelim} and {rdelim} so Smarty will not get confused. To add the button simply add this line of code:

{ldelim}plgContentF2cEditArticleButton{rdelim}{ldelim}/plgContentF2cEditArticleButton{rdelim}

When does the edit article link show?

The edit article button will only show if you have permission to edit the article. This can be set in the Form2Content back-end at Component level and at Content Type level. In all other situations, even if you add the plugin syntax to a Joomla article that was not generated by F2C absolutely nothing will show.

STEP 3: Publish and test

STEP 4: Create "edit link" html override

Do you want to use Bootstrap or Uikit class on your link? Simply create the custom html override in the plugin field.

  1. Go to the plugin manager and edit the Form2Content Edit Article Button.
  2. Add your html with the {$LINK} placeholder.
  3. Save and refresh your pages (ctrl F5)

An example for the override:

Note: remove the / before {$LINK} as it is added by the code plugin.

<a href="/{$LINK}" class="uk-button">EDIT ARTICLE</a>

 

 

 

F2C Cheat-sheet

An overview of all template parameters (placeholders for your form data). These are used in your F2C intro and main template to parse the data from your submission forms into the Joomla article.

Download

Footer

Form2Content, a Joomla CCK Documentation © 2010 - 2015 Open Source Design | Powered by Form2Content