Ad Code

Thursday, December 6, 2018

"note" resourceType in AEM Dialogs

Hello Everyone,

Today In this quick blog I am writing about “note” resourceType in a dialog that can be a life
saver. I was amazed why i haven’t know about it and used  it before.

Problem Statement:In AEM, we always try to make dialogs user friendly as much as we can and sometimes we give instructions to authors by giving fieldDescription corresponding to every field. But the problem with fieldDescription is author always need to hover on tooltip to read the instruction.

I was always looking for something better so that author can directly open the dialog
and can see what he/she supposed to enter in the fields.

So Here, a note resourceType came for rescue.This resourceType is available
here: /libs/cq/gui/components/authoring/dialog/note

How to use this:

Make a node with these below properties:
jcr:primaryType : nt:unstructured
sling:resourceType:cq/gui/components/authoring/dialog/note
note: “Any note for Authors”
That's all you need to do.
Dialog After Adding note resourceType

Extended Problem Solving: But i was trying to make an additional thing with this note.I want to provide a hyperlink in the dialog also.So this is also very easy to do. You can overlay or override this note resourceType and change the note.jsp line number 32 .

<h4 class="coral-Heading coral-Heading--4"><%=outVar(xssAPI, i18n, note) %></h4>
to
<h4 class="coral-Heading coral-Heading--4"><%=note %></h4>

After that you can add hyperlinks also in the dialogs by writing html also.
Demonstartion Video on "note" resourceType in AEM Dialogs:

If you have any query or suggestion then kindly comment or mail us at sgaem.blog02@gmail.com

Hope it will help you guys !!
Thanks and Happy Learning.

7 comments:

  1. Awesome blog and its well written to understand it.keep sharing your informative ideas
    interesting blog.keep blogging fantastic work.

    Personalized Learning Software

    ReplyDelete
  2. keep up the good work. this is an Assam post. this to helpful, i have reading here all post. i am impressed. thank you. this is our digital marketing training center. This is an online certificate course
    digital marketing training in bangalore / https://www.excelr.com/digital-marketing-training-in-bangalore

    ReplyDelete
  3. I thought I was strong with my ideas on this, but with your writing expertise you have managed to convert my beliefs your new ideas. Mallorca is fun
    Best Data Science training in Mumbai

    Data Science training in Mumbai

    ReplyDelete
  4. The development of artificial intelligence (AI) has propelled more programming architects, information scientists, and different experts to investigate the plausibility of a vocation in machine learning. Notwithstanding, a few newcomers will in general spotlight a lot on hypothesis and insufficient on commonsense application. machine learning projects for final year In case you will succeed, you have to begin building machine learning projects in the near future.

    Projects assist you with improving your applied ML skills rapidly while allowing you to investigate an intriguing point. Furthermore, you can include projects into your portfolio, making it simpler to get a vocation, discover cool profession openings, and Final Year Project Centers in Chennai even arrange a more significant compensation.


    Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account.

    ReplyDelete