コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

First Image in Parsys with cq:include

Avatar

以前のコミュニティメンバー

I have a parsys that contains a number of custom image types. I'm building a component where I want to include the first item in that parsys. What is the best way to accomplish this? I should also not that when the image items are re-ordered in the parsys, I always need to take the first one.

1 受け入れられたソリューション

Avatar

正解者
Level 10

Hi There,

Thanks for reaching out to Adobe Community.

You can create an AEM component that manages text and an image. Also, the component that you learn to create in this article has a CQ dialog box that lets a user select an image during design time. 

https://helpx.adobe.com/experience-manager/kb/creating-cq-widget-supports-image.html

Thank!

元の投稿で解決策を見る

2 返信

Avatar

正解者
Level 10

Hi There,

Thanks for reaching out to Adobe Community.

You can create an AEM component that manages text and an image. Also, the component that you learn to create in this article has a CQ dialog box that lets a user select an image during design time. 

https://helpx.adobe.com/experience-manager/kb/creating-cq-widget-supports-image.html

Thank!

Avatar

以前のコミュニティメンバー

Creating a new component seems a bit superfluous for getting the first child node of a given path. I have a path to the parsys, I simply need to get the first child node for a given a path within a cq:include or sling:include.