page properties - link input field not displayed
Description
Attachments
- 15 Sep 2020, 06:11 AM
- 15 Sep 2020, 06:11 AM
Activity
M. Ceruti October 7, 2020 at 3:01 PM
Thank you very much. We’ve recently switched to 6.5.6/1.0 and the problem is indeed not reproducible anymore. It was present in 6.5.2. You can therefore close this issue.
Stefan Seifert October 7, 2020 at 1:02 PM
which AEM version / service pack level are you using?
what we are using here to display the further fields depending on the selected link type is an OOTB AEM feature.
i can reproduce the issues in the page properties dialog with older versions of AEM, but they seem to be fixed in recent versions/service packs. after my tests it's running fine in:
AEM 6.4 SP8 CFP2 (6.4.8.2)
AEM 6.5 SP6 (6.5.6)
AEM Cloud Service
so my current recommendation is: please install the most recent service pack and try if it solves your problem.
including a fix like that from the PR may get in conflict with latest versions of the scripts included OOTB.
Daniela Maul September 16, 2020 at 6:16 AM
Pull request added: https://github.com/wcm-io/wcm-io-handler/pull/22
When there is a linktype dropdown and an related URL input within the page properties the URL input is hidden on first load.
Only after selecting the link type (again or another one) the URL input becomes visible.
I fixed this by adding showHide.js (..wcm-io-handler/link/src/main/webapp/app-root/clientlibs/authoring/dialog/js/showHide.js) with following code:
$(document).on("foundation-contentloaded", function(e) { var linkType = $('input[name*="./linkType"]').val(); var showhideEl = $('.option-linktype-showhide-target---'); if (linkType && showhideEl) { showHide(linkType, showhideEl); } }); $(document).on("click", "coral-tab", function(e) { $(document).trigger("foundation-contentloaded"); }); function showHide(linkType, showhideEl) { showhideEl.each(function(index) { if ($(this).data("showhidetargetvalue") === linkType) { $(this).removeClass("hide"); } }); };
See pull request: https://github.com/wcm-io/wcm-io-handler/pull/22
This is adpated from/ based on https://gist.github.com/rjspiker/003cf9eac1e853bb109a .
Concerns component /apps/wcm-io/handler/link/components/granite/form/linkRefContainer/linkRefContainer.jsp