-
Notifications
You must be signed in to change notification settings - Fork 754
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
Add support for including custom CSS, JS and metadata tags to a page #1203
Conversation
Codecov Report
@@ Coverage Diff @@
## development #1203 +/- ##
=================================================
+ Coverage 83.88% 83.97% +0.09%
- Complexity 1591 1609 +18
=================================================
Files 150 152 +2
Lines 4505 4574 +69
Branches 742 755 +13
=================================================
+ Hits 3779 3841 +62
- Misses 288 290 +2
- Partials 438 443 +5
Continue to review full report at Codecov.
|
This new feature should be documented in the README of the page component. |
...les/core/src/main/java/com/adobe/cq/wcm/core/components/internal/models/v2/PageItemImpl.java
Outdated
Show resolved
Hide resolved
bundles/core/src/main/java/com/adobe/cq/wcm/core/components/config/PageItemsConfig.java
Outdated
Show resolved
Hide resolved
bundles/core/src/main/java/com/adobe/cq/wcm/core/components/config/PageItemsConfig.java
Outdated
Show resolved
Hide resolved
bundles/core/src/main/java/com/adobe/cq/wcm/core/components/config/PageItemsConfig.java
Outdated
Show resolved
Hide resolved
* Moved items attributes to dedicated node * Updated docs and test content
bundles/core/src/main/java/com/adobe/cq/wcm/core/components/config/HtmlPageItemsConfig.java
Outdated
Show resolved
Hide resolved
bundles/core/src/main/java/com/adobe/cq/wcm/core/components/models/HtmlPageItem.java
Outdated
Show resolved
Hide resolved
bundles/core/src/main/java/com/adobe/cq/wcm/core/components/models/Page.java
Outdated
Show resolved
Hide resolved
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ | ||
package com.adobe.cq.wcm.core.components.config; |
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.
Shouldn't the HtmlPageItemsConfig
interface be part of the com.adobe.cq.wcm.core.components.internal
package, similar to the context aware configuration of the data layer?
The context aware config for the PDF Viewer component is also part of the internal package (com.adobe.cq.wcm.core.components.internal.services.pdfviewer
).
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.
I actually think that was a bad choice and all configurations should be API, as we expect people to follow those structures. I was going to propose we find a way to migrate existing configuration to that package as well, in a backwards compatible way.
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.
As long as we treat all context aware configurations similarly I'm fine. Let's keep this one as it is and move the other ones to the same public package later.
Kudos, SonarCloud Quality Gate passed!
|
@vladbailescu: I am using wcm.io editor and when trying to create CA config using page items, I am only getting an option to provide prefix path. Is there any other configuration needed to configure items? |
Added support for including custom CSS, JS and metadata tags to a page
Fixes #1202