Wednesday, 19 October 2016

Dialog Participant Step

In this blog, I will discuss about dialog participant step:

What is the use of dialog participant step?
How can we create the dialog?
How can we save the value of dialog?
Where the value of dialog will be saved?

Use of dialog participant step:

Use of dialog participant Step to collect information from the user who is assigned the work item. This step is useful for collecting the small amounts of data that is used later in the workflow.

Creating the dialog:

Dialogs for participant Step are similar to dialogs that you create for authoring components. The node structure of the dialog which I will use in my dialog Participant Step will be like this:














You can store widget data in the workflow payload or in the work item metadata. The format of the name property of the widget will determines where the data is stored.

Store data with the payload:

To store widget data as a property of the workflow payload, use the following format for the value of the name property of the cq:widget node:

./jcr:content/nodename

The data is stored in the nodename property of the payload node.
When stored with the payload, subsequent uses of the dialog with the same payload overwrites the value of the property.

Store data with the Work Item:

To store widget data as a property of the work item metedata, use the following format for the value of the name property of the cq:widget node:

nodename

The data is stored in the nodename property of the work item metadata.
The data is preserved if the dialog subsequently used with the same payload.

In my case, I stored the data with the work item.





To know How we will use this step click here:


Be Happy

Goto Step

In this blog we will discuss about Goto Step:

The Goto Step specifies the next step in the workflow model to execute, depending on the result of an ECMA script.

If Script returns true, The Goto step completes and the workflow engine executes the specified step.
If Script returns false, The Goto step completes and the normal routing logic determines the next step to executes.

When you drop this step in your model and double click on this step you will find two tab Common and Process.
In common tab you have to give the title and and description and , the following properties are available  in process tab:

1. Step to go to: Select the step to execute.
2. Script path: The path of the ECMA script that determines whether to execute Goto step.
3. Script: The ECMA script that determines whether to execute the Goto step.

Specify the value for either the Script path or the script property. If you specify values for both properties, the step uses Script Path.

In my case there are four step I can switch.

 












And write an ECMA script which return always true.





Click OK. Now after this step Dialog Participant Step will be execute.









Be Happy

Monday, 11 July 2016

Root Mapping Configuration in Adobe CQ5

In Adobe AEM, As we see that if we hit http://<host>:<port>/ by default it is redirected to
Author: /project.html
Publish: /content.html

Did you think about that How it works?

In this post, I will explain how it works and how we can change these URLs.

If you go to http://<host>:<port>/system/console/configMgr and search for the Day CQ Root Mapping, you would be seen like these screen:

RootMappingAuthor:



RootMappingPublish:



In author instance it is straight forward but if you see publish instance, though its configured as '/content.html' but its redirected to /content/geometrixx/en. This reason is being the 2 properties which is set for the node '/content'.

sling:resourceType as sling:redirect and
sling:target as /geohome

/geohome is set as the vanityPath for the geometixx-outdoors site,which is turn has a redirectTarget set to /content/geometrixx/en.

How to Change ?

Most likely, we would want to change the root mapping from /geohome to our own application in the publish instance and the same can be done by 2 types which are mention below:

1. /Content :

We know, in publish instance root mapping is set to /content.html. So go to the content node and change the URL for the property sling:target to your own application content node and save.


2. ConfigMgr :

Login to the config manager console directly either in author or publish which you want to change, search for the Day CQ Root Mapping and change the 'Target Path' to the page which you want to show and click on save. Next time when you access instance, it should redirect to the configured path.




Be Happy

Tuesday, 28 June 2016

Reset the forgotten password

In this post, I am going to explain "How will you reset your AEM password if you have forgotten your password."

The default password for administrator user admin is admin. If the password was changed to something else, to reset your password to admin you have to follow some steps which are mention below:
  • Stop AEM instance.
  • Place the package reset_admin_pass_to_admin.zip in <AEM Home> / crx-quickstart / install (Create it, if there isn't one). 

  • Start AEM instance.
  • Package should have installed. It contains /home/user/a/admin/.content.xml with rep:password set to text admin encrypted.


  • Login as admin/admin.

Be Happy


Friday, 24 June 2016

Change default admin password of AEM

In this blog, I am going to explain that how can we change the default admin password. Sometime my colleagues want to change the admin password so this post is very useful for those guys.

To change the admin password we have to follow some steps which are given below:
  • Open the welcome screen. (http://localhost:4502/projects.html).


  •  Click on the Tools >> Operations >> Security >> Users. You will get the below screen. 

  • Click on the administrator link and find the account setting.

  • Click on Change Password.
  • Fill all the widgets and click OK.
  • Now your password has been changed.


Be Happy


Wednesday, 22 June 2016

Create New User in AEM

In this post I will Explain how to create new User in AEM.

For creating the AEM User with specific permissions we have to follow some steps as I will explain below:
  • Open admin console of AEM.
  • Open User console from main admin console.

  • Create new user by click on Edit by selecting create >> create user:

  • Now, The new editable widget will open:

  • Enter the Login ID, First Name, Last Name, Password, Confirm Password whatever you want.
  • Like, I will create the user with the name content-author.
  • Search the ID from the user list and click on that.
  • In the right hand side of the user list, user details screen will appear.
  • click the permission tab from the user details screen.
  • Select the permissions which we want to give the content-author.
  • If we want to give the permissions to content-author of read, modify, create and delete than we have to select only these same.
  • Now, content-author can read, modify, create and delete under apps, content, etc, home, libs, system,temp and var directory.
  • But, If you want to give the permission to content-author only for content modify, create and delete than you have to tick only on content.Like this:


  • Click Create.
  • Now, login with the new user and you will see that this user can only that things which you gave the permission to this user.

Be Happy

Tuesday, 14 June 2016

Renditions Creation for the Image

In this post, I will explain how to create different type of renditions for the image in Adobe CQ5.

When we upload the images in the DAM, Adobe CQ5 creates the renditions of an image that includes different size of the same image. This can be helpful when we need to create thumbnails or similar views of large or high resolution images.




If we want to create the renditions according to us than we have to configure the DAM Asset workflow.

For this, We have to go this path:

http://localhost:4502/etc/workflow/models/dam/update_asset.html

At this path we will see the page like this image-



Now, Go to the edit mode and double click on the thumbnail creation step.


After click the thumbnail creation step, We will find a pop up like this:-


Now, We have to go on process tab, in the process tab of the step we can add custom rendition values. After this save the workflow.


 
Now, while uploading the image, the configured thumbnails will be created.



Be Happy