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
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:
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.
- Go to the plugin manager and edit the Form2Content Edit Article Button.
- Add your html with the {$LINK} placeholder.
- 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.