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. Marc
  2. Form2Content feature requests
  3. Monday, 10 December 2018
  4.  Subscribe via email
Hi,
I need to hide some fields in the back-end article form.
Since there is no "visible in back-end" option in the Content Type Manager I keep overriding the /administrator/components/com_form2content/views/form/tmpl/edit.php file in order to add a class to the div control-group.

I change the line 113 (ie. for the 6.17.4 version) from


<div class="control-group">


to


<div class="control-group field<?php echo($field->id);?>">


It works but since this file keeps changing in every new version, I need to redo the same thing again and again…

Could you please add this in your code? (or something more clever!)
Thanks
Accepted Answer
Accepted Answer Pending Moderation
Agree, but also good to know the override works. I will ask Julien to add the code. I believe he is preparing a next release.

Regards, PAtrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
Responses (4)
Accepted Answer Pending Moderation
Hi Marc,

Should be possible to add. I personally never did it but isn't a template override for this possible?

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. Form2Content feature requests
  3. # 1
Accepted Answer Pending Moderation
Hi Patrick,
A administrator's template override is possible and it's what I do.
But since the file keeps changing (and especially since your 6.17.x versions) I can't just do the override and forget it.
I need to redo the override for each new version coming from the f2c bakery, every time!

Regards
marc
  1. more than a month ago
  2. Form2Content feature requests
  3. # 2
Accepted Answer Pending Moderation
Thank you very much!

Regards,
marc
  1. more than a month ago
  2. Form2Content feature requests
  3. # 3
  • Page :
  • 1


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