Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

schmidtkevina
Community profile schmidtkevina Level 1
Job title here
Location here
3 BADGES
Level 1

Level 1

Learn more
Joined the community 06-08-2010 10:25:00 AM
Offline
Top badges earned by schmidtkevina
Customize the badges you want to showcase on your profile
Re: Add HBS Custom Helper
Avatar
Give Back 3
Level 1
schmidtkevina
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
View profile
schmidtkevina
- Adobe Experience Manager
One other question, if I create a custom handlebars helper, does it need to be created server side as well in an OSGi bundle or will client side only suffice?

Views

458

Likes

0

Replies

0
Re: Add HBS Custom Helper
Avatar
Give Back 3
Level 1
schmidtkevina
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
View profile
schmidtkevina
- Adobe Experience Manager
Ok, so when do you know if you need to register it server side or not? "While not required, it is recommended that custom helpers be implemented on the server-side as well as the client-side. For SCF, most templates are compiled and rendered on the server-side as the server generates the HTML for a given component when the page is requested."

Views

460

Likes

0

Replies

0
Re: Add HBS Custom Helper
Avatar
Give Back 3
Level 1
schmidtkevina
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
View profile
schmidtkevina
- Adobe Experience Manager
This is what I added, basically a copy of equals and changed the name, this is for a POC so it's ok the modify the helpers.js directly. Handlebars.registerHelper("equalsNuts", function(lvalue, rvalue, options) { if (arguments.length < 3) throw new Error("Handlebars Helper equal needs 2 parameters"); if (lvalue != rvalue) { return options.inverse(this); } else { return options.fn(this); } });

Views

454

Likes

0

Replies

0
Re: Add HBS Custom Helper
Avatar
Give Back 3
Level 1
schmidtkevina
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
View profile
schmidtkevina
- Adobe Experience Manager
JK Kendall wrote... What release of Communities do you have? For AEM 6.2, you need at least FP1. I would recommend figuring out what is the issue you're having with client libs. If you edit /etc/clientlibs/social/commons/scf/helpers.js, it could be overwritten in a future release. The more details you could provide, the better. - JK We have a buddy drop from Adobe. I added a helper in the helpers.js called equalsNuts and it doesn't recognize it. That's the only change I made. Is there something ...

Views

468

Likes

0

Replies

0
Add HBS Custom Helper
Avatar
Give Back 3
Level 1
schmidtkevina
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
View profile
schmidtkevina
- Adobe Experience Manager
I am trying to register a new HBS helper in /etc/clientlibs/social/commons/scf/helpers.js I have the helper in the JS but it can't find it, is there an additional step that needs to be take here to have the helper recognized? I'm merely trying to add a modified equals helper to the SCF helpers. Or, do I have to create a custom helper as outline here? https://docs.adobe.com/docs/en/aem/6-2/develop/communities/scf/handlebars-helpers.html#Client-side Custom Helpers I'd rather not if I don't have to...

Views

2.2K

Likes

0

Replies

7
Camera Rotation
Avatar
Give Back 3
Level 1
schmidtkevina
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
View profile
schmidtkevina
- Adobe LiveCycle
How do you get the camera on an Android Device (Droid 2) to rotate. It always ends up sideways!

Views

724

Likes

0

Replies

3