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.
  1. Tomislav
  2. F2C article templating
  3. Friday, 18 December 2015
  4.  Subscribe via email
Hi,

Now going further, heaving problem with edit article button.

I have add php code in default.php and copy in templates//html/com_content/article/.

I have install plugin, enable it, and add html code in plugin.

I have insert code in article intro and main template and create new article.

...and it is working. I see button on intro and main view and link goes to f2c edit article form. But...

When I sign off, and become Public user, on place where is button I see plugin code : {ldelim}plgContentF2cEditArticleButton{rdelim}
{ldelim}/plgContentF2cEditArticleButton{rdelim}


Also I have try to find very hard to find how to remove joomla default edit button on CATEGORY VIEW (Intro article), but no luck.


Regards,
Tom
Responses (4)
Accepted Answer Pending Moderation
Hi Tom,

Please follow the Forum instructions and create a post per question. Otherwise others can't follow and for us it's impossible to maintain the forum.

I branched this question for you ;)

Now I don't understand this:
When I sign off, and become Public user, on place where is button I see plugin code : {ldelim}plgContentF2cEditArticleButton{rdelim}
{ldelim}/plgContentF2cEditArticleButton{rdelim}


Where do you see it? This code should be in your F2C templates!! So you can never see it like that on your website since the {ldelim} are rendered by Smarty into { tags in the article.... Please provide some more info so I can reproduce :)

I also don't know why/what you changed in com_content override. Not necessary for the plugin:
http://documentation.form2content.com/f2c-extensions/joomla-plugins/134-f2c-front-end-edit-article-button

Last. The JOOMLA edit buttons are controlled by ACL and the Joomla template. We cannot do anything about that. If you log into the front-end as admin or edit permissions you will see the buttons. So set ACL or remove from Joomla template.

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C article templating
  3. # 1
Accepted Answer Pending Moderation
Hi,

for com_content override I use: http://documentation.form2content.com/f2c-tips-and-tricks/124-replacing-the-front-end-joomla-edit-icon-with-f2c-edit-functionality

For seen code in article I am sending image. Code is without {ldelim}{rdelim}, I paste wrong but code is still there.

Thanks for tip in acl joomla for edit button. I try to find but no luck :)


Regards,
Tom
Attachments (1)
  1. more than a month ago
  2. F2C article templating
  3. # 2
Accepted Answer Pending Moderation
Hi,

waiting for answer and thinking.... if Edit article button plugin set to public, should I restrict it view with ods restrict plugin? but future change will be hard to follow if some group or user change?

Regards,
Tom
  1. more than a month ago
  2. F2C article templating
  3. # 3
Accepted Answer Pending Moderation
Hi Tom,

Thanks for the clear explanation. It's strange that the plugin doesn't render (empty) when the public views the article.
I haven't experienced this behavior yet but will see if I can reproduce it. This may take a little time because of the holidays :(
In the mean time adding the plugin code within the content restriction plugin might do the job. You might have to check the order of the plugins for it to work.

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C article templating
  3. # 4
  • Page :
  • 1


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