<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Irina Ason on Medium]]></title>
        <description><![CDATA[Stories by Irina Ason on Medium]]></description>
        <link>https://medium.com/@irina.ason?source=rss-9a63cd194625------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Irina Ason on Medium</title>
            <link>https://medium.com/@irina.ason?source=rss-9a63cd194625------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 04:23:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@irina.ason/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Sling RepoInit: a Handy Tool to Manage Content and Users in AEM]]></title>
            <link>https://medium.com/exadel-digital-marketing-technology-practice/sling-repoinit-a-handy-tool-to-manage-content-and-users-in-aem-aade9c5adf70?source=rss-9a63cd194625------2</link>
            <guid isPermaLink="false">https://medium.com/p/aade9c5adf70</guid>
            <category><![CDATA[sling]]></category>
            <category><![CDATA[content-migration]]></category>
            <category><![CDATA[adobe-experience-manager]]></category>
            <category><![CDATA[aem]]></category>
            <dc:creator><![CDATA[Irina Ason]]></dc:creator>
            <pubDate>Wed, 06 Jan 2021 17:27:33 GMT</pubDate>
            <atom:updated>2021-04-01T19:56:36.228Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*lpdLWex830zNfeirERznAw.jpeg" /></figure><p>Managing the initial repository state can be hard because it involves setting up code, configuration, content, and more. This is a lot to cope with when we need to complete several tasks in advance, such as creating service users, creating groups, setting up ACL permissions, and pre-creating/updating content. Repoinit (Apache Sling Repository Initialization) is a tool to help configure all of this in one place.</p><p>The advantages of Repoinit include:</p><ul><li>Keeping the environments in sync in terms of initial and basic configuration</li><li>Speeding up local environment setup for developers</li><li>Creating resources at startup so they’re built into the logic from the beginning</li></ul><h3>Enable Repoinit in AEM</h3><p>To enable Repoinit, OSGi configuration for factory PID <strong>org.apache.sling.jcr.repoinit.RepositoryInitializer</strong> in one of the project’s configuration folders. Since it’s an OSGi configuration, it is easy to have a set of scripts for author and publish run modes, along with different environments such as Stage and Production. For example, config.author, config.publish, config.author.prod, and config.publish.stage, etc. use a descriptive name for the configuration like <strong><em>org.apache.sling.jcr.repoinit.RepositoryInitializer~init</em></strong>.</p><p>These configurations have two optional fields:</p><ul><li>A multi-value references field with each value providing the URL (as a String) of raw Repoinit statements</li><li>A multi-value scripts field with each value providing Repoinit statements as plain text in a String</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9fNxBwpLr4mheOtM.jpg" /></figure><p><strong>Note 1:</strong> this service presents a challenge when you’re resolving the references. Each reference is expected to be in the form of a URL, and OSGi supports exposing bundles as URLs. However, when Apache Felix resolves a bundle’s URL in the URLHandlersBundleStreamHandler, it expects the URL host to be the UUID of the bundle, not a stable ID such as the Bundle’s Symbolic Name. You can find out how to resolve this issue <a href="https://blogs.perficient.com/2020/06/17/one-tool-to-configure-them-all-sling-repoinit/">here.</a></p><p><strong>Note 2:</strong> When configuring script properties, it is easier to define them in the .config file than it is to define in the JSON-based .cfg.json format, since scripts are typically multiline.</p><p>Configuration file example: <strong>/apps/my-app/config.author/org.apache.sling.jcr.repoinit.RepositoryInitializer-init.config</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3fb64acc0caa8a97750a92ef02e8a5c7/href">https://medium.com/media/3fb64acc0caa8a97750a92ef02e8a5c7/href</a></iframe><h3>Repoinit vs. Ensure Authorizable</h3><p>Ensure Service User config:<br> <strong>/ui.apps/src/main/content/jcr_root/apps/site-com/config/com.adobe.acs.commons.users.impl.EnsureServiceUser-user-1.xml</strong> (this is the config for user-1 only; for user-2 we will need to create a separate xml config)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/22dbb6e661aee1d567c61b11ec50d953/href">https://medium.com/media/22dbb6e661aee1d567c61b11ec50d953/href</a></iframe><p>Equivalent Repoinit script:</p><p>create service user user-1, user-2</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/912676cd13b35821398b988163325dad/href">https://medium.com/media/912676cd13b35821398b988163325dad/href</a></iframe><h3>Content Management: Repoinit vs. OnDeploy Scripts</h3><p>Imagine that we need to create a “/path/A” resource and update the existing one under “/path/B”.</p><p>The OnDeplyScript might look something like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/56a5eed272251bec601cfafe5882c756/href">https://medium.com/media/56a5eed272251bec601cfafe5882c756/href</a></iframe><p>And this is a script which does the same thing:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/07c684335e6866e9788b87d32d7a3534/href">https://medium.com/media/07c684335e6866e9788b87d32d7a3534/href</a></iframe><p>These are just a few examples of how we used Repoinit for our project; find more ideas about what you can do using Repoinit <a href="https://sling.apache.org/documentation/bundles/repository-initialization.html">here</a>.</p><p><em>Originally published at </em><a href="https://exadel.com/news/sling-repoinit-a-handy-tool-to-manage-content-and-users-in-aem/"><em>https://exadel.com</em></a><em> on January 6, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aade9c5adf70" width="1" height="1" alt=""><hr><p><a href="https://medium.com/exadel-digital-marketing-technology-practice/sling-repoinit-a-handy-tool-to-manage-content-and-users-in-aem-aade9c5adf70">Sling RepoInit: a Handy Tool to Manage Content and Users in AEM</a> was originally published in <a href="https://medium.com/exadel-digital-marketing-technology-practice">Exadel Marketing Technology Practice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using AEM Modernization Tools]]></title>
            <link>https://medium.com/exadel-digital-marketing-technology-practice/using-aem-modernization-tools-88b10bf7c99a?source=rss-9a63cd194625------2</link>
            <guid isPermaLink="false">https://medium.com/p/88b10bf7c99a</guid>
            <category><![CDATA[editabletemplate]]></category>
            <category><![CDATA[aem]]></category>
            <category><![CDATA[content-migration]]></category>
            <category><![CDATA[aem-tips-for-developers]]></category>
            <dc:creator><![CDATA[Irina Ason]]></dc:creator>
            <pubDate>Tue, 20 Oct 2020 14:23:04 GMT</pubDate>
            <atom:updated>2021-02-03T09:40:21.589Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*jNWHtV9FmNVyMgkOaOXxxA.jpeg" /></figure><p>We recently began the process of switching over all of our pages from static to editable templates.This was shaping up to be a long, complicated, and expensive process, so we turned to AEM Modernization Tools for a solution.</p><p>AEM Modernization Tools makes customization easy by providing a broad range of pre-set options that we combined to fit our needs. The tool suite is also designed to be extendable which allowed us to specify custom implementations when the framework did not provide us with quite enough flexibility. We also had the option to extend the feature set by registering OSGi services and implementing specific API interfaces.</p><p>We will not dive into AEM Modernization tools in detail; instead we will show you how to create a custom implementation to fit your own needs by answering some frequently asked questions about AEM Modernization custom solutions.</p><p>Before starting, you should make sure you’ve installed the AEM Modernization Tools package:<br><a href="https://github.com/adobe/aem-modernize-tools">https://github.com/adobe/aem-modernize-tools</a></p><h3>Why did we need to customize AEM Modernization Tools?</h3><ul><li>You might assume that all static pages will be structured correctly, but we discovered that some of our pages were missing several components which were supposed to be parts of the editable template. We also discovered that after conversion some extra components that we didn’t want appeared on the page. We decided to exclude these pages from the conversion process. Still, as a precaution, we checked the accuracy of the structure before converting each page.</li><li>The standard PageStructureConverter implementation will move all the nodes under jcr:content to root. This would not work for us because we had several nodes under jcr:content which are a part of page properties configuration, and we wanted to keep them where they were.</li></ul><h3>How did we customize AEM Modernization Tools for our site?</h3><ul><li>First, we added the new dependency into our pom.xml:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8d19e62e88cedff753b7b69b1c2e042c/href">https://medium.com/media/8d19e62e88cedff753b7b69b1c2e042c/href</a></iframe><ul><li>In order to have our custom converter, we implemented PageStructureRewriteRule:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d97fd83efadf02f2afc9624c54613293/href">https://medium.com/media/d97fd83efadf02f2afc9624c54613293/href</a></iframe><ul><li>We decided to use a simpler configuration than the standard factory by:</li></ul><ol><li>Keeping staticTemplate, editableTemplate, and slingResourceType fields the same as in PageRewriteRule</li><li>Skipping the component order configuration and relying on the order in the initial part of an editable template</li><li>Skipping “components to remove”</li><li>Introducing a new section called “components mapping” where we can list out mappings in the appropriate format [<strong><em>old_component_rel_path:new_component_rel_path</em></strong>]</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eb6b7ce8672e83481d725b4c6aeec98f/href">https://medium.com/media/eb6b7ce8672e83481d725b4c6aeec98f/href</a></iframe><ul><li>When we implemented PageStructureRewriteRule, we needed these methods:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/90712b77350164442ffed4c68d6462e3/href">https://medium.com/media/90712b77350164442ffed4c68d6462e3/href</a></iframe><h3>How exactly did we implement the new solution?</h3><ul><li>We returned our staticTemplate field (basically the same as in PageRewriteRule):</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e54c4ae82121a33e4ff2e1b24c8f2c7b/href">https://medium.com/media/e54c4ae82121a33e4ff2e1b24c8f2c7b/href</a></iframe><ul><li>matches() method was also basically the same; we just checked the cq:template property:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/db164e46ec47e74d15c3fc721312e212/href">https://medium.com/media/db164e46ec47e74d15c3fc721312e212/href</a></iframe><ul><li>The method applyTo() was responsible for the conversion itself</li><li>Before conversion, we created a version as a precaution</li><li>We changed the cq:template property</li><li>We moved nodes under root</li><li>We reordered nodes to match the template</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5697e53482869e592fe3eab351272cf1/href">https://medium.com/media/5697e53482869e592fe3eab351272cf1/href</a></iframe><h3>What does the configuration look like?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wF2v4wm2kNEBZaEn.png" /></figure><ul><li>We also needed the corresponding xml config file (we should have a separate config file for every template):</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ed504dc95035783377cb77d4363beba/href">https://medium.com/media/0ed504dc95035783377cb77d4363beba/href</a></iframe><h3>How did we use AEM Modernizing Tools?</h3><ul><li>This is the AEM Modernizing tool console:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UE4hHPFf0iN2C9dE.png" /></figure><ul><li>We searched for pages under the path we wanted to convert:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NuBnb3j6WfpZYWIN.png" /></figure><ul><li>After selecting page(s), the Convert Pages(s) button appears:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ok4kjdK27YCdM-lo.png" /></figure><ul><li>Here’s the list of successfully converted pages:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZYCTDny3lmemtjA5.png" /></figure><h3>What is the full class EditableTemplateConverter?</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/58f3d3ee37f063eea61e3270e6a51783/href">https://medium.com/media/58f3d3ee37f063eea61e3270e6a51783/href</a></iframe><p><em>Originally published at </em><a href="https://exadel.com/news/using-aem-modernization-tools/"><em>https://exadel.com</em></a><em> on October 20, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88b10bf7c99a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/exadel-digital-marketing-technology-practice/using-aem-modernization-tools-88b10bf7c99a">Using AEM Modernization Tools</a> was originally published in <a href="https://medium.com/exadel-digital-marketing-technology-practice">Exadel Marketing Technology Practice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AEM Experience Fragments: Consuming Outside AEM]]></title>
            <link>https://medium.com/exadel-digital-marketing-technology-practice/aem-experience-fragments-consuming-outside-aem-81cb5b6bdc65?source=rss-9a63cd194625------2</link>
            <guid isPermaLink="false">https://medium.com/p/81cb5b6bdc65</guid>
            <category><![CDATA[fx]]></category>
            <category><![CDATA[aem]]></category>
            <category><![CDATA[experiencefragments]]></category>
            <dc:creator><![CDATA[Irina Ason]]></dc:creator>
            <pubDate>Thu, 30 Jul 2020 10:36:18 GMT</pubDate>
            <atom:updated>2020-11-29T19:40:05.192Z</atom:updated>
            <content:encoded><![CDATA[<p>You can push an Experience Fragment (XF) to an endpoint by using, for example, the 3rd party’s API (e.g. Facebook / Pinterest). A 3rd party can also pull an XF from AEM. Every XF has a unique URL that can be embedded/used. Embedding an HTML XF can be achieved by using an <strong>&lt;iframe&gt;</strong> or with web components.</p><p>Currently, AEM supports HTML ootb (for Adobe Target HTML and JSON offers are supported) but you can implement any format (e.g. image, json, etc.). In addition, you can use the “plain” selector to get just HTML. You can configure the “Experience Fragments HTML rendering output processor” to render specific tags, attributes, and classes:</p><ol><li>Go to <a href="http://localhost:4502/system/console/configMgr">http://localhost:4502/system/console/configMgr</a></li><li>Find “Experience Fragments HTML rendering output processor”</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*plkRrXjiu1BPqxFf.png" /></figure><p>There’s another way to consume an XF on an external page. We can implement a servlet which grabs all the necessary libs (js, css, fonts, etc.) as well as as the XF content and puts them into your page.</p><p>Code example:</p><p>A simple servlet which scavenges XF content, the needed js, css and wraps them into a json object.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c262fad704d79b8e61bc123c911220e6/href">https://medium.com/media/c262fad704d79b8e61bc123c911220e6/href</a></iframe><p>A custom js lib which consumes json provided by the servlet and renders it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*PPIl0m_Tn135_mqJ.png" /></figure><p>.content.xml:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6bda04c733bb1e78c5066ecc963d0ca1/href">https://medium.com/media/6bda04c733bb1e78c5066ecc963d0ca1/href</a></iframe><p>index.js</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a5f0654495c69982dfc5fbc5a81ab20f/href">https://medium.com/media/a5f0654495c69982dfc5fbc5a81ab20f/href</a></iframe><p>After that we can easily put an XF in an external page:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cc2d9380208000e72974133921a134a9/href">https://medium.com/media/cc2d9380208000e72974133921a134a9/href</a></iframe><p><a href="https://exadel.com/?tag=experiencefragments"><em>Find more on AEM Experience Fragments</em></a></p><p><em>Originally published at </em><a href="https://exadel.com/news/aem-experience-fragments-consuming-outside-aem/"><em>https://exadel.com</em></a><em> on July 30, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81cb5b6bdc65" width="1" height="1" alt=""><hr><p><a href="https://medium.com/exadel-digital-marketing-technology-practice/aem-experience-fragments-consuming-outside-aem-81cb5b6bdc65">AEM Experience Fragments: Consuming Outside AEM</a> was originally published in <a href="https://medium.com/exadel-digital-marketing-technology-practice">Exadel Marketing Technology Practice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AEM Experience Fragments: Rollout configuration]]></title>
            <link>https://medium.com/exadel-digital-marketing-technology-practice/aem-experience-fragments-rollout-configuration-dd753369d4ec?source=rss-9a63cd194625------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd753369d4ec</guid>
            <category><![CDATA[aem]]></category>
            <category><![CDATA[fx]]></category>
            <category><![CDATA[experiencefragments]]></category>
            <dc:creator><![CDATA[Irina Ason]]></dc:creator>
            <pubDate>Fri, 24 Jul 2020 06:56:21 GMT</pubDate>
            <atom:updated>2020-11-29T19:37:50.482Z</atom:updated>
            <content:encoded><![CDATA[<p>Our site pages are stored under /content.</p><p>All the Experience fragments are stored under <strong>/content/experience-fragments.</strong><br>When we were designing the structure for experience fragment (XF) pages we wanted them to correlate to our existing site pages.</p><p>Unlike ordinary AEM pages, XF pages cannot be created one under another. In order to mimic the structure of our main site, or just to group fragments logically in a tree structure, we can create folders/subfolders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ofuki0RWBnTjDNot.png" /></figure><p>Our site has the following structure:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7540363f4fc10ba90a9e44257e594c22/href">https://medium.com/media/7540363f4fc10ba90a9e44257e594c22/href</a></iframe><p>In order to have different language versions for an XF, we can create XF variations. The difference between XF and the ordinary pages is that the live XF version will be stored under the same node as the blueprint one.</p><p>So, the structure of a single XF will be like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf13523eedaaacfe3ed3fd6aa1365ef2/href">https://medium.com/media/cf13523eedaaacfe3ed3fd6aa1365ef2/href</a></iframe><p>In order to be able to rollout XFs we need to create a blueprint configuration for XFs:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c558cbbdb35374c1083e4016b7e51f6/href">https://medium.com/media/5c558cbbdb35374c1083e4016b7e51f6/href</a></iframe><p>But this is not enough.</p><p><strong>Rewriting XF links</strong></p><p>When we rollout a page containing an XF e.g. to fr_fr, and there is french version of that XF, we would expect to automatically see the french XF variation on the french site page. To achieve this we need to create a custom rollout action.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/660a920ad415feded26e009f21bdd835/href">https://medium.com/media/660a920ad415feded26e009f21bdd835/href</a></iframe><p>And a separate rollout config for the created action:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bebb95d3d176d89811620b358d17de0a/href">https://medium.com/media/bebb95d3d176d89811620b358d17de0a/href</a></iframe><p>Now, for each locale we should add the config (Page Properties -&gt; Live Copy tab):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/0*108kPzg9mabr-2v5.png" /></figure><p><strong>Rewriting site links inside XFs</strong></p><p>When we roll out an XF page we expect all the site links to be rewritten according to the locale we are rolling it out to. We will create another rollout action to take care of the site link inside an XF.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0c58a2fcdea9999bbb154b2f804d20d1/href">https://medium.com/media/0c58a2fcdea9999bbb154b2f804d20d1/href</a></iframe><p>And the new rollout config:<br> /apps/msm/wcm/rolloutconfigs/site-com/updateSiteReferences:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d559b96d4c04e567393ebba2e4f849b/href">https://medium.com/media/3d559b96d4c04e567393ebba2e4f849b/href</a></iframe><p>We won’t be able to set this config at a blueprint level for XF, so we need to select it by default when we create a new variation:</p><p>We will create a new client lib “xf-rollout”<br> .content.xml:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/49a9b5146d7d594625681eccba786cb8/href">https://medium.com/media/49a9b5146d7d594625681eccba786cb8/href</a></iframe><p>xf-live-copy.js:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/79706be3729fd7fde0322f855ce679d8/href">https://medium.com/media/79706be3729fd7fde0322f855ce679d8/href</a></iframe><p><a href="https://exadel.com/?tag=experiencefragments"><em>Find more on AEM Experience Fragments</em></a></p><p><em>Originally published at </em><a href="https://exadel.com/news/aem-experience-fragments-rollout-configuration/"><em>https://exadel.com</em></a><em> on July 24, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd753369d4ec" width="1" height="1" alt=""><hr><p><a href="https://medium.com/exadel-digital-marketing-technology-practice/aem-experience-fragments-rollout-configuration-dd753369d4ec">AEM Experience Fragments: Rollout configuration</a> was originally published in <a href="https://medium.com/exadel-digital-marketing-technology-practice">Exadel Marketing Technology Practice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AEM Experience Fragments: Templates]]></title>
            <link>https://medium.com/exadel-digital-marketing-technology-practice/aem-experience-fragments-templates-5047bc780723?source=rss-9a63cd194625------2</link>
            <guid isPermaLink="false">https://medium.com/p/5047bc780723</guid>
            <category><![CDATA[fx]]></category>
            <category><![CDATA[experiencefragments]]></category>
            <category><![CDATA[aem]]></category>
            <dc:creator><![CDATA[Irina Ason]]></dc:creator>
            <pubDate>Fri, 17 Apr 2020 14:32:04 GMT</pubDate>
            <atom:updated>2020-11-27T07:54:02.617Z</atom:updated>
            <content:encoded><![CDATA[<p>An experience fragment (XF) Is based on a template to define structure and components. Only <em>editable</em> templates can be used; static templates are not fully compatible. We will create such a template based on a custom template type and policy we will create.</p><p>The diagram below shows how templates, content, and components interrelate:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*Qe36B_mQXw_9Ku0e.png" /></figure><h3>Rendering Component</h3><p>AEM components are used to hold, format, and render the content made available on your webpages. We will need to create a new component for XF in order to be able to use our custom components, etc. inside an XF.</p><p>Our new “Experience Fragment” component extends the out-of-the-box <strong>cq/experience-fragments/components/xfpage</strong> component. <strong>sling:resourceSuperType</strong> is used to inherit the core functionality of the Image component without having to copy and paste.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/0*U4i9g0aLKiygNhhO.png" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a22e7b49b7f92d438b8862342546623f/href">https://medium.com/media/a22e7b49b7f92d438b8862342546623f/href</a></iframe><p>We added a new tab with one checkbox in <strong>_cq_dialog</strong>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/978edc68a178de18aa76ca3c62d62ed0/href">https://medium.com/media/978edc68a178de18aa76ca3c62d62ed0/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/88d27b015fe7c7427d270f1552caf739/href">https://medium.com/media/88d27b015fe7c7427d270f1552caf739/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4335b1400fc57b1f7a2b24446492044a/href">https://medium.com/media/4335b1400fc57b1f7a2b24446492044a/href</a></iframe><h3>Policy</h3><p>The content (or design) policies define the design properties of a component, like the components available or minimum/maximum dimensions. These are applicable to the template (and pages created with the template). Content policies can be created and selected in the template editor of the touch-optimized UI. Let’s create a new policy to be able to add our custom components to the XF.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/df5ea7d3a3e14cea518a84ac4e51d998/href">https://medium.com/media/df5ea7d3a3e14cea518a84ac4e51d998/href</a></iframe><h3>Template type</h3><p>When creating a new template you need to specify a template type.</p><p>Template types function as templates for templates. When creating a new template the structure and initial content of the selected template type is used to create the new template.</p><ul><li>The template type is copied to create the template.</li><li>Once the copy has occurred, the only connection between the template and the template type is a static reference for information purposes.</li></ul><p>Template types allow you to define:</p><ul><li>The resource type of the page component.</li><li>The policy of the root node, which defines the components allowed in the template editor.</li><li>Optionally (but recommended), the breakpoints for the responsive grid and setup of the mobile emulator. This is optional, because the configuration could also be defined on the root page of the site.</li></ul><p>Our new template type will be stored under <strong>/conf/site-com/settings/wcm/template-types</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U7S9SVSHrXM6pJZv.png" /></figure><p><strong>thumbnail.png</strong> is the image that will represent your template.</p><p>There are four <strong>.content.xml</strong> files. Here is the one at the topmost level.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9c8eb084db0a3a189eddd96c3a317364/href">https://medium.com/media/9c8eb084db0a3a189eddd96c3a317364/href</a></iframe><p><strong>initial/.content.xml</strong> defines content that will appear when a page is first created based on the template. This content can then be edited by page authors.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e778fb6417062dfdf84816aabcf4c18/href">https://medium.com/media/9e778fb6417062dfdf84816aabcf4c18/href</a></iframe><p><strong>structure/.content.xml</strong> defines components and content for your template. Components defined in the template structure cannot be moved or deleted on a page based on the template.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/63e7b8c977bba21a5a8502e71586eb66/href">https://medium.com/media/63e7b8c977bba21a5a8502e71586eb66/href</a></iframe><p>In <strong>policies/.content.xml</strong> we describe policy mappings for nodes:</p><ol><li><strong>jcr:content</strong> is an empty policy</li><li><strong>root</strong> is our custom components policy</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/75e9335861e925bc076ef7b5a19fa7d2/href">https://medium.com/media/75e9335861e925bc076ef7b5a19fa7d2/href</a></iframe><h3>Template</h3><p>Having created the template type we can create a template itself:</p><ol><li>Go to <a href="http://localhost:4502/libs/wcm/core/content/sites/templates.html/conf">http://localhost:4502/libs/wcm/core/content/sites/templates.html/conf</a></li><li>Select your project folder, “Site.com”</li><li>Click “Create”</li><li>Select your newly created template type, “Site.com Empty Experience Fragment”</li><li>Enter title and description</li><li>Click “Create”</li></ol><p>After that we will need to enable the template:</p><ol><li>Return back to <a href="http://localhost:4502/libs/wcm/core/content/sites/templates.html/conf/site-com">http://localhost:4502/libs/wcm/core/content/sites/templates.html/conf/site-com</a></li><li>Select your newly created template</li><li>Click “Enable”</li></ol><p>After we created a template we need to allow it under /content/experience-fragments:</p><ol><li>Go to CRX DE <a href="http://localhost:4502/crx/de/index.jsp">http://localhost:4502/crx/de/index.jsp</a></li><li>Select <strong>/content/experience-fragments</strong></li><li>Find a property <strong>cq:allowedTemplates</strong></li><li>Add our template template here: /conf/site-com/settings/wcm/templates.*</li></ol><p>Stay tuned for our next post on XF where we dive into even more detail.</p><p><a href="https://exadel.com/?tag=experiencefragments"><em>Find more on AEM Experience Fragments</em></a></p><p><em>Originally published at </em><a href="https://exadel.com/news/aem-experience-fragments-templates/"><em>https://exadel.com</em></a><em> on April 17, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5047bc780723" width="1" height="1" alt=""><hr><p><a href="https://medium.com/exadel-digital-marketing-technology-practice/aem-experience-fragments-templates-5047bc780723">AEM Experience Fragments: Templates</a> was originally published in <a href="https://medium.com/exadel-digital-marketing-technology-practice">Exadel Marketing Technology Practice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AEM Experience Fragments: Architecture]]></title>
            <link>https://medium.com/exadel-digital-marketing-technology-practice/aem-experience-fragments-architecture-317b89488d32?source=rss-9a63cd194625------2</link>
            <guid isPermaLink="false">https://medium.com/p/317b89488d32</guid>
            <category><![CDATA[fx]]></category>
            <category><![CDATA[experiencefragments]]></category>
            <category><![CDATA[aem]]></category>
            <dc:creator><![CDATA[Irina Ason]]></dc:creator>
            <pubDate>Fri, 15 Nov 2019 20:48:49 GMT</pubDate>
            <atom:updated>2020-11-26T15:53:47.077Z</atom:updated>
            <content:encoded><![CDATA[<p>In this next post on AEM Experience Fragments, we’ll discuss the overall architecture by looking at these three aspects:</p><ul><li>Content model</li><li>Templates</li><li>Rendering HTML output</li></ul><h3>Content Model</h3><p>Experience Fragments are regular pages with specific resource types and templates. They should be stored in /content/experience-fragments.</p><p>The XF page consists of 2 parts: a parent page and one or more variation pages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*TlSFCZiz77kRkYqa.jpg" /></figure><p>The XF parent page has no actual content and serves to logically combine its variations. Its resource type is <strong>cq/experience-fragments/components/experiencefragment</strong> . An XF variation page is a subpage of the parent page. Its resource type is <strong>cq/experience-fragments/components/xfpage</strong> or its subtypes.</p><p>The <strong>master variation</strong> is created automatically when XF is created. It cannot be deleted unless the whole XF is deleted. To distinguish the master variation among the other variations, this JCR property is used:</p><p>Here are some notable JCR properties for variations:<br>-cq:xfShowInEditor = true/false controls whether the variation will be shown in the asset side panel<br>-cq:xfSocialVariation = true/false is used to filter out &quot;social&quot; variations (Facebook, Pintrest) from the various admin UI elements<br>-cq:xfVariantType = web/facebook/pintrest is used to distinguish the variation&#39;s intended use<br>-cq:xfMasterVariation is used to mark &quot;master&quot; variation</p><h3>Templates</h3><p>Templates are used to create variations just as with regular AEM page OOTB (out of the box) templates:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*JXrxVP88IWWcf01f.jpg" /></figure><ul><li>Web templates are based on an HTML5 web templates to create web variations</li><li>“Social” variation templates exist for Facebook and Pintrest</li></ul><p>For experience fragments, only editable templates can be used, static templates are not fully compatible. Editable templates, which in turn are defined by editable template types and an AEM page component implementation, define the allowed AEM components that can be used to compose an Experience Fragment. The experience fragment is an instance of an editable template that represents a logical experience. Experience fragment variations adhere to the editable template, but represent differences in experience (content and design).</p><p>To create an experience fragment template that is detected by the Create Experience Fragment wizard, you must follow one of these scenarios.</p><h3>Scenario #1</h3><ul><li>The resource type of the template (the initial node) must inherit from cq/experience-fragments/components/xfpage</li><li>And the name of the template must begin with “experience-fragments”.</li></ul><p>This allows users to create experience fragments in /content/experience-fragments as the cq:allowedTemplates property of this folder includes all the templates that have names beginning with &quot;experience-fragment&quot;. Customers can update this property to include their own naming scheme or template locations.</p><h3>Scenario #2</h3><ul><li>Add the template details manually in cq:allowedTemplates on the /content/experience-fragment node.</li></ul><p>Creating our own template type and a rendering component will be described in our next article.</p><h3>Rendering HTML Output</h3><p>We can directly expose an experience fragment variation as “plain HTML.” Using the .plain. selector in the URL, you can access the plain HTML rendition. This is available from the browser, but its primary purpose is to allow other applications like third-party web apps or custom mobile implementations to access the content of the experience fragment directly, using only the URL (for example, /content/experience-fragments/xf/xf.plain.html)</p><p>The rendering is controlled by the <strong>Experience Fragments HTML rendering output processor</strong> service, which is configured just like any other OSGI service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*UAl0n14px3ypQ0Pn.jpg" /></figure><h3>Configurable Properties</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*AG2gsCAvTVeMEG5W.jpg" /></figure><p><em>Tags whitelist</em></p><p>xf.rendering.html.whitelist.tag defines which tags are not stripped from the resulting HTML (common HTML tags are specified by default).</p><p><em>Attributes whitelist</em></p><p>xf.rendering.html.whitelist.attribute defines which attributes are not stripped from the resulting HTML (defaults to src, class, and id).</p><p><em>CSS classes whitelist</em></p><p>xf.rendering.html.whitelist.classes defines which classes are not stripped from the resulting HTML (no defaults).</p><p><em>Remove empty nodes</em></p><p>xf.rendering.html.removeempty, if true, instructs the processor to remove empty HTML nodes.</p><p>Stay tuned for our next post on XF where we dive into even more detail.</p><p><a href="https://exadel.com/?tag=experiencefragments">Find more on AEM Experience Fragments</a></p><p><em>Originally published at </em><a href="https://exadel.com/news/aem-experience-fragments-architecture/"><em>https://exadel.com</em></a><em> on November 15, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=317b89488d32" width="1" height="1" alt=""><hr><p><a href="https://medium.com/exadel-digital-marketing-technology-practice/aem-experience-fragments-architecture-317b89488d32">AEM Experience Fragments: Architecture</a> was originally published in <a href="https://medium.com/exadel-digital-marketing-technology-practice">Exadel Marketing Technology Practice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adobe Experience Manager Experience Fragments: An Introduction]]></title>
            <link>https://medium.com/exadel-digital-marketing-technology-practice/adobe-experience-manager-experience-fragments-an-introduction-258668d9e577?source=rss-9a63cd194625------2</link>
            <guid isPermaLink="false">https://medium.com/p/258668d9e577</guid>
            <category><![CDATA[aem]]></category>
            <category><![CDATA[experiencefragments]]></category>
            <category><![CDATA[fx]]></category>
            <dc:creator><![CDATA[Irina Ason]]></dc:creator>
            <pubDate>Tue, 08 Oct 2019 00:31:10 GMT</pubDate>
            <atom:updated>2020-11-26T13:23:44.236Z</atom:updated>
            <content:encoded><![CDATA[<h3>What Is XF?</h3><p>It’s the <strong>experience fragment</strong> feature in Adobe Experience Manager unveiled in version 6.3. Such a fragment is a group of one or more components containing both content and how to display the content. The grouping forms an experience that should make sense on its own independently of where it’s used. A very simple example would be a single product title, product description, and product image.</p><blockquote><em>In this post we’ll sketch out a brief overview of XF. In a later post, we’ll go into much more detail.</em></blockquote><p>As with most things in AEM, the central idea is content reuse. Author it in one place and use it in several different places or with several different variations of it. Here’s a quick run-down of what makes an XF and XF:</p><ul><li>Based on a template for structure</li><li>Consists of one or more components with a defined appearance</li><li>Intended to be reused, reordered, or resized</li><li>Can be modified into multiple variations</li></ul><p>Without the XF feature, if an author wants to reuse parts of a page as an “experience”, they would need to copy and paste that experience repeatedly. Manually, creating and maintaining these fragments on pages is time-consuming and prone to error. The XF feature eliminates the need for this kind of copy/paste.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/0*D6kqpzJqSnU-M-ns.png" /></figure><h3>When Should You Use XF?</h3><p>1. For reuse</p><p>2. To deliver content as a platform for outside services</p><ul><li>Any service that wants to use AEM as a content delivery platform</li><li>Embedding content in 3rd party touchpoints</li></ul><p>3. To easily make different variations</p><ul><li>Channel or content-specific variation</li><li>Experiences that make sense to a group (e.g., a campaign with different experiences across channels)</li></ul><p>4. For omnichannel commerce</p><ul><li>Sharing commerce-related content on social media channels at scale</li><li>Making touchpoints transactional</li></ul><h3>The Experience Fragments Architecture</h3><ul><li>Editable Templates<strong>,</strong> which in turn are defined by Editable Template Types and an AEM Page component implementation, define the allowed AEM Components that can be used to compose an Experience Fragment.</li><li>The Experience Fragment is an instance of an Editable Template that represents a logical experience.</li><li>Experience Fragment variations adhere to the Editable Template, but have variations in the represented experience (content and design).</li><li>Experience Fragments can be exposed/consumed by:</li></ul><p>a. Using Experience Fragments on AEM Sites (or AEM Screens) via the AEM Experience Fragment component.</p><p>b. Exposing an Experience Fragment variations content as JSON (with embedded HTML) via AEM Content Services and API Pages.</p><p>c. Directly exposing an Experience Fragment variation as “Plain HTML”.</p><p>d. Exporting Experience Fragments to Adobe Target as either HTML or JSON offers.</p><p><strong>Did you get all that? </strong>Here’s a graphic to illustrate some of this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0RRfmwqTwui2GngU.png" /></figure><p>Stay tuned for our next post on XF where we dive into more detail.</p><p><a href="https://exadel.com/?tag=experiencefragments"><em>Find more on AEM Experience Fragments</em></a></p><p><em>Originally published at </em><a href="https://exadel.com/news/aem-experience-fragments-an-introduction/"><em>https://exadel.com</em></a><em> on October 8, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=258668d9e577" width="1" height="1" alt=""><hr><p><a href="https://medium.com/exadel-digital-marketing-technology-practice/adobe-experience-manager-experience-fragments-an-introduction-258668d9e577">Adobe Experience Manager Experience Fragments: An Introduction</a> was originally published in <a href="https://medium.com/exadel-digital-marketing-technology-practice">Exadel Marketing Technology Practice</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>