Activate Language Filter plugin
.
Comment out the line for testing
See, that you can create associations
in the component com_contact.
Try to create an association via Multilingual Associations Component
.
Side by Side
in Multilingual Associations Component
view is not working properly
Side by Side
ended up in a endless loop.
I am not sure if it is a Bug. But I think, that other third party extensions will run into this issue, too.
I was able to isolate the problem.
$(this).contents().find('#jform_id').val()
is undefined in this line:
If you do not use the layout joomla.edit.publishingdata
. Because in this layout a hidden field is set, that is used in the JavaScript File for the Side by Side view. So all extensions at one point must also set this field.
<input type="hidden" readonly id="jform_id" name="jform_id" value="<?php echo (int) $this->item->id ?>">
If my idea is correct, we should add this to this documentation: https://docs.joomla.org/J3.x:Multilingual_Associations/SidebySide
Labels |
Added:
?
|
Title |
|
@infograf768 I do not think we use that for other core components.
Thank you very much for looking.
It is the same with com_contact:
and com_newsfeeds:I want to put it differently
If you install the my com_foo component https://github.com/astridx/boilerplate/releases/tag/v1.0.0 and you do not use the layout, I mean, you delete this line:
https://github.com/astridx/boilerplate/blob/8068f3e4349207f759a567d1e2331c592142fb6c/src/administrator/components/com_foos/tmpl/foo/edit.php#L77
Then you run int this issue.
I encountered this problem when I prepared this component for use in Joomla version 4 (from Joomla version 3).
Am I missing something or is it likely that others will encounter this problem and we could avoid it?
You just need to render the ID field, not necessarily using joomla.edit.publishingdata
layout. If your fields are using different names, that's another issue. The selectors in the script would have to be configurable.
@SharkyKZ The selectors in the script would have to be configurable.
What do you mean exactly?
Can I configure the selectors (I don't see that) or should the script be changed so that the selectors could be configured?
Do you think this is an issue and I should leave this open here.
The script could be changed to support this, if needed.
@astridx
What I meant is that com_content needs to define this id
hidden field, but not com_contact for example.
To test, I commented <?php //echo LayoutHelper::render('joomla.edit.publishingdata', $this); ?>
in contact edit and I had no loop issue in multilingual component.
@infograf768 I have this issue in all components.
But as I am not sure if this is a bug I close this issue. I put a link to this issue on the end of the doc page https://docs.joomla.org/J3.x:Multilingual_Associations/Developers
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-03-01 21:56:56 |
Closed_By | ⇒ | astridx |
We have a specific code in core components for articles:
This is only due to the specific articles parameter
show_publishing_options
.I do not think we use that for other core components.