Please note that Form2Content is no longer being developed. All files from the latest version can be found on Github.

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.

Resolved Replace Joomla Edit button

  1. Big-K
  2. F2C & Joomla plugin integrations
  3. Saturday, 20 June 2015
  4.  Subscribe via email
I have joomla 3.4.1 and F2C Pro 6.10.0

I have read and applied the ideas here and here.

However, what I want is to replace the Joomla Edit button at its exact locaton. Is that possible?
Accepted Answer
Accepted Answer Pending Moderation
Hi,

I've added a "rough" example to show you how it works.
The example is based on Joomla 3.4.1 and the attached file (icons.php) should be placed here:
<your website root>/templates/<your template>/html/layouts/joomla/content/icons.php

The example works, but my implementation of JHtml::('icon.edit') needs some rework. This is just some quick to for demonstration purposes ;)

best,
Julien
Attachments (1)
Responses (5)
Accepted Answer Pending Moderation
Hi,

Yes and no ;)

With the current plugin the position of the edit button will be defined by the F2C template, while the Joomla edit button is "outside" of the article.

Replacing the Joomla edit button would require a Joomla template override.
The F2C plugin will not run out of the box in this template override.

But I think it is possible to copy the the plugin code to the override and modify it so it works in the override. This will require some custom coding.

best,
Julien
Accepted Answer Pending Moderation
Julien,

You had some excellent instructions that worked perfectly for the older version of joomla (3.4 and earlier)

Is it possible to apply the same principles to 3.4.1? Perhaps an override of layouts/joomla/content/icons.php?
Accepted Answer Pending Moderation
It works perfectly :) You're the man!! :)

Does this still need the plugin, or does it work independently?
Accepted Answer Pending Moderation
Hi,

In this case you don't need the plugin. The code I sent you is based on the plugin code.

best,
Julien
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.