?
avatar yaume
yaume
17 Nov 2016

Steps to reproduce the issue

Overriding renderfield.php is not working in com_contact. There's a arenderfield.php in the folder components/com_contact/layouts/joomla/form

Actual result

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?

System information (as much as possible)

Joomla's version 3.6.4

Additional comments

I hope i'm clear enought and that i'm posting in the right place.

avatar yaume yaume - open - 17 Nov 2016
avatar joomla-cms-bot joomla-cms-bot - change - 17 Nov 2016
Labels Added: ?
avatar brianteeman
brianteeman - comment - 17 Nov 2016

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.

avatar brianteeman brianteeman - change - 17 Nov 2016
Category ⇒ Layout
avatar yaume
yaume - comment - 17 Nov 2016

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

avatar brianteeman
brianteeman - comment - 17 Nov 2016

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/

avatar mbabker
mbabker - comment - 17 Nov 2016

Should be html/layouts/com_contact/joomla/form/renderfield.php

avatar brianteeman
brianteeman - comment - 17 Nov 2016

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
.

avatar mbabker
mbabker - comment - 17 Nov 2016

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.

avatar brianteeman
brianteeman - comment - 17 Nov 2016

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
.

avatar yaume
yaume - comment - 18 Nov 2016

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?

avatar Bakual Bakual - change - 18 Nov 2016
Status New ⇒ Closed
Closed_Date 0000-00-00 00:00:00 ⇒ 2016-11-18 07:20:30
Closed_By ⇒ Bakual
avatar Bakual Bakual - close - 18 Nov 2016
avatar ymages
ymages - comment - 26 Jul 2017

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

Add a Comment

Login with GitHub to post a comment