Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

ResourceType for OOTB Form Component

Krisgum
Level 4
Level 4

Hi Guys ,

  

   I'm just trying out a use case in CQ 5. 6 and came across a requirement where a page component backing a template should directly embeed some components like breadcrumb, logo , form etc . I'm able to easily embeed custom navigation or some  OOTB  components in my jsp    using . 

  <cq:include path = "breadcrumb"  resourceType="foundation/components/breadcrumb"/> or    <cq:include path = "breadcrumb"  resourceType="foundation/components/image"/>

But to embeed OOTB form component in a similar  what resourceType should I be using  ?  Normally we can drag n drop the form component from parsys , but I'm working on a use case where form component come's pre populated for the author on a page (with formStart and formEnd ) . The author can then  configure it by adding some components in between formstart and formend  . 

Thanks in advance for your help 

 

regards

1 Reply
Krisgum
Level 4
Level 4

Just and update on the problem I forgot to post earlier . If in my script I try to use resourceTypes separately  for  formStart and formEnd  as below , it just shows up ' formStart' component .

 

 <cq:include path = "parContent"  resourceType="foundation/components/form/start"/>
  <cq:include path = "parContent"  resourceType="foundation/components/form/end"/>

 

If I remove the resourceType for formStart  , it then shows formEnd component as well .

 

What resourceType should I be using   so that I can get the same behaviour for the form component ,  when we drag n drop  from side kick . 

 

regards