Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
Sort
  • Most recent
  • Most views
  • Most likes
  • Most replies
  • Oldest First
Filter
  • All
  • Resolved
  • Unresolved
  • Zero replies

  • 5/21/23
    Hi all,We have a challenge where we're being requested to time stamp PDFs that we upload to AEM. Currently, I have written a script in Acrobat that adds the date automatically when the PDF is first opened (as long as the form is cleared before uploading). Problem is, it only works for the very first...

    Views

    543

    Likes

    0

    Replies

    3
  • 5/21/23
    I want to create a pdf file based on inputs from user and store the file in DAM. I tried creating a pdf file using this code : InputStream stream = new ByteArrayInputStream(attachmentData.getBytes(StandardCharsets.UTF_8));final ValueFactory valueFactory = session.getValueFactory();final Binary binar...

    Views

    863

    Likes

    0

    Replies

    2
  • 5/20/23
    Hi All, I am working on the asset share commons project and created an own search template similar to asset share commons search type template and changed the sling resource type to project specific search page which has a slingResourceSuperType of asset share commons search page. I have authored th...

    Views

    414

    Likes

    0

    Replies

    2
  • 5/19/23
    We have several servlets, e..g "register" and "login".Some of these need to read a list of allowed countries, or swear words (so they cant create accounts with swear words in the display name etc). If this was non-cloud we would make these OSGI configs, which have the beautiful OSGi editor tools. Ho...

    Views

    482

    Like

    1

    Replies

    4
  • 5/19/23
    Hello, I am trying to update a variable in a Workflow using ECMA script. The script is very simple: var workflowItemData = workItem.getWorkflowData(); var workflowData = workItem.getWorkflow().getWorkflowData(); if (workflowItemData.getPayloadType() == "JCR_PATH") { var path = workflowItemData....

    Views

    681

    Likes

    0

    Replies

    4
  • 5/19/23
    I have a scenario where I have 50-100 news pages now I want to create news listing component with the server side pagination using servlet or sling model with the limit of 10 news. I want to know can I achieve this if have any example of code. It would be great. Thanks

    Views

    598

    Likes

    0

    Replies

    2
  • 5/19/23
    Developing Sites with the Front-End Pipeline document mentions that it is possible to set NodeJS version to 12 or 16 using pipeline variable CM_CUSTOM_VAR_NODE_VERSION. However, it does not mention which value should be used. I tried setting this variable to 16 and 16.20.0, but neither worked, pipel...

    Views

    1.2K

    Likes

    0

    Replies

    4
  • 5/19/23
    Is there a way we can make a component available through code in static templates by default without modifying through design mode in 6.4 version?

    Views

    438

    Likes

    0

    Replies

    4
  • 5/19/23
    Hi, . In Virtual Host we have added below line. so when we hit like /content/dam/site/abc.pdf . It matches and set Header as below.<LocationMatch "\.(?i:pdf)$">ForceType application/pdfHeader set Content-Disposition inline</LocationMatch> Requirement: If URL is having a selector lets say "pdfdownloa...

    Views

    452

    Likes

    0

    Replies

    2
  • 5/18/23
    Hi, I am new to AEM development.I have a sling servlet with the below code and I am trying to read a page property. This code snippet works in Author mode, but not in the publisher. ResourceResolver resourceResolver = request.getResourceResolver();PageManager pageManager = resourceResolver.adaptTo(P...

    Views

    1.3K

    Likes

    0

    Replies

    8