I'm trying to create an 'edit profile' page within AEM. Based on the Geometrixx Outdoors example, I'm creating a link to this page where the link is in a similar format to this:
${profile.path}.form.html/content/(some path)/profile.html
This isn't working for me as the ${profile.path} property doesn't return anything in the target URL. Where does the ${profile.path} property get set?
I'm using 6.1 if that helps.
Solved! Go to Solution.
Views
Replies
Total Likes
I found the answer - for those who may come across the same issue, the code is in the 'Account Item' component in the 'General' component group:
... if (link.contains("${profile.path}")) { final UserProperties userProperties = slingRequest.getResourceResolver().adaptTo(UserProperties.class); link = link.replace("${profile.path}", userProperties.getNode().getPath()); } ...
Views
Replies
Total Likes
I found the answer - for those who may come across the same issue, the code is in the 'Account Item' component in the 'General' component group:
... if (link.contains("${profile.path}")) { final UserProperties userProperties = slingRequest.getResourceResolver().adaptTo(UserProperties.class); link = link.replace("${profile.path}", userProperties.getNode().getPath()); } ...
Views
Replies
Total Likes
Thank you for sharing the answer.
~kautuk
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies