Overriding renderfield.php
is not working in com_contact. There's a arenderfield.php
in the folder components/com_contact/layouts/joomla/form
I tried to remove that folder and the override in
mytemplate/html/layouts/joomla/form/renderfield.php
is now working. Maybe this folder is an oversight or does it have a usefulness?
Joomla's version 3.6.4
I hope i'm clear enought and that i'm posting in the right place.
Labels |
Added:
?
|
Category | ⇒ | Layout |
Id id test that it's not working. I've tested:
html/com_contact/layouts/joomla/form/renderfield.php
html/layouts/contact/joomla/form/renderfield.php
html/layouts/contact/form/renderfield.php
The only thing working so far is changing core components/com_contact/layouts/joomla/form/renderfield.php
or just delete the whole folder because I thought it may be an oversight. Why use its own renderfield.php and not its own renderlabel.php
I will do some checking now
Why use its own renderfield.php and not its own renderlabel.php
Dont know - sorry
On 17 November 2016 at 10:10, yaume notifications@github.com wrote:
Id id test that it's not working. I've tested:
- html/com_contact/layouts/joomla/form/renderfield.php
- html/layouts/contact/joomla/form/renderfield.php
- html/layouts/contact/form/renderfield.php
The only thing working so far is changing core components/com_contact/
layouts/joomla/form/renderfield.php or just delete the whole folder
because I thought it may be an oversight. Why use its own renderfield.php
and not its own renderlabel.php—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#12922 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8VYZB4UgPubLBfNdM2wBZ1EmhB9gks5q_CgHgaJpZM4K0-rF
.
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/
Should be html/layouts/com_contact/joomla/form/renderfield.php
Ah I didn't try that combo.
On 17 Nov 2016 1:35 p.m., "Michael Babker" notifications@github.com wrote:
Should be html/layouts/com_contact/joomla/form/renderfield.php
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#12922 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8epfNwwu2LOxMEDpXTpuopV-AG_dks5q_FgsgaJpZM4K0-rF
.
I always have to dig into the code to remember the component layout override paths, that's just one of those awkward things about the system I guess.
I actually read the documentation site
On 17 Nov 2016 4:52 p.m., "Michael Babker" notifications@github.com wrote:
I always have to dig into the code to remember the component layout
override paths, that's just one of those awkward things about the system I
guess.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#12922 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8ZnlE9cEaEZ4CUQhO7ZZemRjuoYVks5q_IZJgaJpZM4K0-rF
.
html/layouts/com_contact/joomla/form/renderfield.php
is the correct anwser. Thanks :)
I thought I had already tested this obvious solution ... apparently I had not done it.
Can you tell me where com_contact is documented?
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-11-18 07:20:30 |
Closed_By | ⇒ | Bakual |
and where do you find the render for ?
<?php echo $label; ?><?php echo $input; ?>
in ./templates/mytpl/html/layouts/com_contact/joomla/form/renderfield.php
If you have the override in html/layouts/joomla/form/ then it wont work in this case (as you saw) because com_contact has its own renderfield.php
Not tested it but it should be html/com_contact/layouts/joomla/form/
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12922.