Hello, everybody, welcome. My name is Brian Stauf. I’m a senior cloud architect with Adobe. And in this video, I’ll be reviewing the page structure conversion feature of the AM modernization tools. So this feature does it allows users to convert static pages that use a static template to the to reference an editable template does not create the editable template for you. Instead, it actually updates the structure of a given page to match the expected structure of the editable template so that it can be so the pages can reference the latest features of the AM product. So in this example, I have a page here, the geometrics homepage. And this is the page, the static template has the carousel, lead, columns, right column, paragraph system, etc. We’re going to convert this page into an editable template to use this editable template that I’ve already created as a header carousel, lead, etc, etc. So now in order to, more for this tool to function, you must specify the conversion rule, conversion rules for this particular tool, use an OSGI service, then and basically, it’s a factory configuration. So you simply need to configure the factory. In this case, we have the geometrics homepage, rewrite rule here. So static template apps geometrics templates homepage, that’s the template we want to use, it must have this sling resource type. And then we want to convert that any pages matching those rules to this geodemo homepage. The container resource type is used for the containers as they’re created. And as they’re as the nodes are populated with the content. This is a proxy component to the core container component. As was as with the previous version of this tool, you can still specify the component order within the container. So this is going to have the header carousel container, and with a number, and then the lead component within the main container. This is the order that the components will be arranged from in the root that is created that is off the editable template. There’s a couple of components that are not necessary, because they were legacy from the editable template that are no longer referenced by the editable template. And our evaluation shows that we can delete the news list and the image component nodes from the root of the site. There’s a new feature in version 2.0, which is the ignore components. Out of the box, this this tool will now ignore the blueprint and live copy configuration nodes. This feature allows you to specify additional nodes that are desired to be left at the root of the JCR. So in that context, what we’re referring to is the any nodes that may exist here under JCR content that are wanting to be left alone and remain there. Now, if you do leave them alone, it should be noted that they will not be available for template editors or content authors to update. But maybe there’s a reason for that based on your evaluations. Finally, and at least we need to be able to rename the components as they’re being moved around. In this case, the par node needs to be renamed to container slash container. So if we look at the existing tree structure, this node is the par node, it contains all of our content, and it needs to move into the structure root container slash container component, which is this one here. Additionally, we want to rename the right par to this ID number here with container that was created when we when the editable when the template editor created the structure, we’d have to look at the structure to identify this node. So here’s the container with the digits. And we can see on the editable template that is this container over here. So if we look down, if we come down here to the page itself, we want the right par system to be converted and moved into that tree. That’s what this is for. So now that I’ve gone over how we identify the configurations and how to prepare for the useful scope and use. So we’re going to go ahead down to the tools and then once a modernization tools are installed, they will show up here on the list a modernized tools, really use the page structure conversion tool, this one right here. So this, like all the tools shows a list of all jobs that have been run before I have a example here that was from a previous demonstration. This is the card view. This is this, you can also look at it in list view here. 10 minutes ago when I ran this and multi bucket, multi bucket is based off of how many items were in the job, a job that has more than 500 items will automatically be split into a buckets of 500 or portions thereof. So if this job had more than 500 items, there would be a checkmark here for multi bucket. If you’re in the card view, the card would look like a stack of cards as opposed to a single card. I don’t have any examples of that in this demo. But you should you’ll notice it when you see it. Let’s go ahead and start this schedule as job so click on Create. As with all the tools in the suite, jobs need a job name for referencing later, as you saw on the cart on the view previously, to use geometrics homepage. Now, in version 2.0, there’s now additional options for converting pages. And those are how to handle the pages, the default is none. What that means is simply convert the page in place. The next option is restore. What this means is that you can restore a page to a state that was held previous to the last modernization run. Every time a modernization structure, job runs, or the all in one conversion, the page is versioned with an identifier. So it’s a simple normal page version. And this option allows you to revert back to that state prior to the last run before running again, I’ll actually demonstrate that here in a minute. So the next is copy to target. What this is allows users to do is copy the page from the source location into the to a given destination location. So I’ll go through this real fast. So copy target, if I were to select source path, and I go to geometric demo site, say I want to start here, select that, and target path, I want to copy that into this location, geo demo us, and then select. So what this will do is, every page I select in the next on the next screen, we’ll have this portion of the path replaced with this portion. And I’ll and by selecting the source path, it actually limits us in the next section to only paths that start with that portion. So if I click on that pages, you can see here I’m limited to geometrics. So I click on I can select English. If I were to select this, though, as we saw before, this page, he and already exists in the target location. If you select a page that already exists in our location, the job will continue, but that particular page will error out because it the system will not allow you to copy to the destination. If it already exists, it will prevent that from occurring. We should go back to no page handling for the purposes of this next demonstration. So we’re gonna go next, we’re going to add pages. So we come down here to geo demo site, English and select. As you can see here, one rule is found, we have one conversion, which is this page. As with all the tools, you can select more pages by simply clicking the Add Pages and add more to the list. Or you can select the so we can do that. So like this. Or you can what you can do is you can select a root page and include the children. That allows you to decide whether or not you want to click only or sorry, include only the direct descendants, or you can uncheck that and include all descendants of the pages selected. We’re gonna go ahead and do that and show you what it looks like. As you can see here, it loads all the pages and identifies whether or not there’s any rules. As you can see from this list, there actually aren’t any rules to process for these pages. So I’m actually going to remove all of these selections and go back to just a single page. So add pages, English, select, schedule the job. As for all the tools that confirm for that one schedules job, you must have permission to this page in order to schedule a job. In fact, the user interface won’t allow you to select any pages to which you do not have right permissions. So we’re gonna hit convert. And we’re going to run as with all the tools when you arrive after scheduling the job, you arrive at the job details page. This is where you can see the buckets on the left will be a bucket listed for any jobs that have over 500 items. So it’ll be multiple buckets. Again, the first bucket will have 500 in each bucket after that we’ll have the 500 or a portion thereof depending upon how many items you select. When you run this job, the the the paths are listed here on the right, what the process is, this job has been scheduled but not actually executed. In order to see the state, I can refresh the page, you can see the job has successfully been run. It should be noted that a given job is an all or one commit. So that way, when you run a scheduled job, if you have an error in the page, that is the prevents saving all the content, none of the content will be saved, pages will still be versioned, but they will not have any of the changes persistent. This is true of all the tools within the suite. Let’s go look at the JCR for this page. As you can see here, here’s the original content. So English JCR content, par control, etc. I’m going to refresh this page. We’re going to go in here and as you can see, it now uses the structure of the edible template. Now I want to demonstrate how to revert or reach running a restore job. Go back here, we’re gonna go return to the list. We’re gonna create a new job. This one’s going to be geometrics home page restore. Now if I were to do no page handling and click on Next, and add more pages, go to the same, select the same page, you can actually see that there are no rules to apply, because the structure is no longer valid. We can go back to this page. Actually, before I do that, I need to remove from the list. Go back to the previous page, and we can say restore. When you click on the restore option and select pages, it will actually check the original page version before to determine whether or not the rule any rules apply. So click on Select. As you can see, now there’s one rule that applies. Well, how does it know what rules apply? Let’s take a look at the site history. So we go to this page and look at the history. So timeline, we can actually see that there is a pre modernization version that was created two minutes ago. What happens is the user interface compares this version, which is before the structure was changed against the rules, any rules that were found, that will be what will happen. That will be what it runs against. So if I schedule this job, say yes, I want to convert this, it will revert the page to that previous state, then run the structure conversion rule, and then display the results. As you can see here, even though there’s not much to see on this view, because nothing really would have changed, the restore would have occurred and then it would have executed again, we should be able to see though in the timeline here, the fact that this page was restored. So you can pre modernization, page restored, page edited, all by the service configuration. That’s how to use the page structure conversion tool. Thank you for your time.