6/29/2023 0 Comments Graphql nested fragments![]() Select New Content Fragment below the Contact Info field. Let’s create a reference to Jacob’s contact information. Browse to WKND Shared > English > Contributors > jacob_wester.jpg to create a path to the image.Ĭreate a fragment reference from the Content Fragment editorĪEM allows you to create a fragment reference directly from the Content Fragment editor. In the Profile Picture field, add a content reference to an image. Administrator Details: Jacob Wester has been coordinating backpacking adventures for three years.Skills: Rock Climbing, Surfing, Backpacking.Jacob is the winner of climbing competitions, including the Battle of the Bay bouldering competition. Biography: Jacob Wester has been a hiking instructor for ten years and has loved every minute of it! Jacob is an adventure seeker with a talent for rock climbing and backpacking.The newly created Content Fragment looks like the following:Įnter the following content into the fields: Let’s create four people that can be added to a team of Adventure Instructors.įrom the Instructors folder, create a Content Fragment based on the Person Content Fragment Model and give it a title of “Jacob Wester”. Feel free to configure more specific policies so the newly created folder only allows the Contact Info model to be used. The nested folder inherits folder policies of the parent folder. ![]() From here, let’s create a nested folder to store the Instructors’ contact information.įollow the steps outlined in the section on creating folders to create a folder titled “Contact Info”. The only models that you can now select are Person and Contact Info. Navigate into the Instructors folder and select Create > Content Fragment. You have now configured a folder policy for the Instructors folder. Select Save and Close and select OK in the success dialog that appears. Select Person and Contact Info, then press Select to close the dialog. Both Person and Contact Info models must be allowed in the Instructors folder in order to create an Instructor Content Fragment. The Person Content Fragment Model, created in the previous chapter, contains a reference to the Contact Info Content Fragment Model. In the Select Path dialog that opens, follow the path conf > WKND Shared. In the Allowed Content Fragment Models by Path field, select the folder icon. Select the Policies tab, then de-select Inherited from /content/dam/wknd-shared. Select the Instructors folder that you have created, then select Properties from the top navigation bar. In this example, let’s limit a folder to the Person and Contact Info models. By using folder policies, you can limit what Content Fragment Models authors can use in those folders. By using permissions, you can grant only certain users (authors) or groups of authors access to certain folders. You have now created a folder to store Adventure Instructors.ĪEM allows you to define permissions and policies for Content Fragment folders. Titles of the folders that contain many fragments must be plural. ![]() In the Create Folder modal that appears, enter “Instructors” in the Title field. You can see that folders for Teams and Locations have already been created to store Teams and Locations Content Fragments.Ĭreate a folder for Instructors Content Fragments that are based on the Person Content Fragment Model.įrom the Adventures page, select Create > Folder in the top-right corner. Here you can see the various Content Fragment categories, including Adventures and Contributors. Upload and install the package (zip file) downloaded in the previous step.Ĭreate folders and set limits using folder policiesįrom the AEM homepage, select Assets > Files > WKND Shared > English. In AEM, navigate to Tools > Deployment > Packages to access Package Manager. Install an AEM package that contains several folders and sample images used to accelerate the tutorial.ĭownload Advanced-GraphQL-Tutorial-Starter-Package-1.1.zip ![]()
0 Comments
Leave a Reply. |