-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[3.x] com_wrapper. Add HTML5 mode without B\C break. #19985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| if ($isHtml5) | ||
| { | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove blank line.
|
|
||
| if ($scrolling !== 'auto') | ||
| { | ||
| $scrolling = ($scrolling === 'no' ? 'hidden' : 'scroll'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
() not necessary. Remove.
| $scrolling = ($scrolling === 'no' ? 'hidden' : 'scroll'); | ||
| } | ||
|
|
||
| $frameborder = (!$frameborder ? 'none' : $frameborder . 'px solid #000'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
() not necessary. Remove.
| COM_WRAPPER_FIELD_HEIGHTAUTO_LABEL="Auto Height" | ||
| COM_WRAPPER_FIELD_LABEL_SCROLLBARSPARAMS="Scroll Bar Parameters" | ||
| COM_WRAPPER_FIELD_MODE_LABEL="Mode" | ||
| COM_WRAPPER_FIELD_MODE_DESCRIPTION="HTML5 mode uses CSS to style the IFRAME tag. Legacy mode uses HTML 4.01 IFRAME attributes and is backwards compatible with old template overrides." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to COM_WRAPPER_FIELD_MODE_DESC
|
I have tested this item ✅ successfully on 47a52d6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19985. |
|
You managed to work all major kinks, but there is an issue with scrolling (in HTML4) or overflow (in HTML5) in components/com_wrapper/views/wrapper/tmpl/default.xml More about this you can see @ https://www.w3schools.com/cssref/pr_pos_overflow.asp (auto, scroll & hidden are the main options). In CS there is no need to have line $frameborder = !$frameborder ? 'none' : $frameborder . 'px solid #000';. I tried to add something similar (in default.php and default.xml), but after uploading that file and refreshing my web site, I discovered an error and I left values 1 and 0 in frameborder field (and I can inform you that works). |
|
Only So use
|
|
I'm closing here until I've found a solution for |
|
Reopened after additional commit. |




Related to #19965
See discussion there concerning B\C breaks in Joomla 3.x.
@BaleshSrle
Please feel free to take over code and/or idea into your pr. I have no problems to close this one then.
Summary of Changes
Legacy (HTML4)versusHTML5.Legacyis the default setting. Thus, this pr will not break older template overrides that use HTML4 attributes for IFRAME tags that have been removed in HTML5.HTML5mode if necessary.HTML5uses CSS style instead.overflowfor displaying/hiding scroll barsscrollingattribute cannot be removed in HTML5 mode.Testing Instructions
Mode = Legacy.Mode = HTML5.HTML5because only default.php of core respects new setting.Expected result
Documentation Changes Required
????
New language strings
YES
Please help to optimize description.