Hi,
Iam trying to customize the OOB community journal component. Basiclly i want to add one more field to the blog entry form and return that value as part of the social.JSON so that i can read and display it. The json is formed from the journal API, which file should i customize to add the extra attribute or how the user generated nodes are getting created for the blog entries in the API? Kindly suggest.
Views
Replies
Total Likes
You might want to reference the sample available on GitHub :
https://github.com/Adobe-Marketing-Cloud/aem-scf-sample-components-extension
- JK
Views
Replies
Total Likes
Thanks JK for your reply. I tried building the code that was shared in the above link , i was getting few errors so i updated the pom.xml. I was able to build the package successfully however when deploying the bundle to AEM, the bundle is in installed state and not getting resolved. Also there are other cq.social bundles in "Installed" state and not getting resolved. I am using AEM 6.1 and i have attached the pom.xml here. Iam using community version pack AEM-6.1-Communities-Livefyre-Feature-Pack-6-1.8.500 .
Update: However if i install the same bundle in AEM 6.2 , this works fine.
Views
Replies
Total Likes
Looking at the pom.xml, you have the communities API set to the AEM 6.2 FP1 version (1.10.60) and you added cq-social-commons, which likely should not be there. You also added the AEM 6.1 uber, which isn't in the sample, either (.
From Using Maven for Communities, to use the sample with AEM 6.1 FP6, replace the above with :
- JK
Views
Replies
Total Likes
JK Kendall wrote...
Looking at the pom.xml, you have the communities API set to the AEM 6.2 FP1 version (1.10.60) and you added cq-social-commons, which likely should not be there. You also added the AEM 6.1 uber, which isn't in the sample, either (.
I'm talking about this :
<dependency>
<groupId>com.adobe.cq.social</groupId>
<artifactId>cq-socialcommunities-api</artifactId>
<version>1.10.60</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.adobe.cq.social</groupId>
<artifactId>cq-social-commons</artifactId>
<version>1.5.103</version>
</dependency>
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<version>6.1.0</version>
<scope>provided</scope>
<classifier>obfuscated-apis</classifier>
</dependency>
From Using Maven for Communities, to use the sample with AEM 6.1 FP6, replace the above with :
<dependency>
<groupId>com.adobe.cq.social</groupId>
<artifactId>cq-socialcommunities-api</artifactId>
<version>1.8.500</version>
<scope>provided</scope>
</dependency>
- JK
Hi JK, Now i am able to build and deploy the package in my server without any issues. However i tried adding an additional field to the "New Idea" form in page ideas.html and also made necessay changes in js to pass it in the request on form submit.But in the " beforeAction(Operation op, Session sessionUsed, Resource requestResource, Map<String, Object> props)" method of IdeationStatusExtension.java ,am not able to read "subjectname" from the "props" paarameter. In logs i can see only the below values and not the "subjectname" field i added. I have provided the screengrab of the request parameters on form submit. Below is the snippet from logs which has values of "props" parameter of beforeAction method
Log Snippet :
{added=java.util.GregorianCalendar[time=1489407001886,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Asia/Calcutta",offset=19800000,dstSavings=0,useDaylight=false,transitions=6,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2017,MONTH=2,WEEK_OF_YEAR=11,WEEK_OF_MONTH=3,DAY_OF_MONTH=13,DAY_OF_YEAR=72,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=2,AM_PM=1,HOUR=5,HOUR_OF_DAY=17,MINUTE=40,SECOND=1,MILLISECOND=886,ZONE_OFFSET=19800000,DST_OFFSET=0], ip=0:0:0:0:0:0:0:1, userAgent=Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36, jcr:title=ndbsamfbdnmsa, message=nmdsfsanm, email=, url=, tags=stockphotography:architecture_and_bui/architecture_abstrac}
Please suggest how do i read the "subjectname" request parameter.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies