Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Horizontal and Vertical alignment / webcamSub

Avatar

Level 3

How to control the horizontal and vertical alignment of users inside the webcamSub ?

This is the result with the old and new LCCS webcamSub.

1.jpg

2.jpg

Thank you,

Bernard

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Hi Bernard,

Sorry fot the inconvenience - as part of the improvements to the webcamsubscriber, we did make some changes to the layout system, in order to make it easier to control. So, it might not be as good at automatically guessing the layout you'd like, but you'll much more easily be able to force it to do exactly what you want.

Here's the new property we added to webcamSubscriber:

usersPerRow:int  [read-write]


Specifies the number of user videos to show per row in the webcamsubscriber. Once the number of videos to display exceeds this number, a new row is created with the excess videos. Defaults to 4. For a long horizontal strip, set this to a high number - for a vertical strip, set this to a low number.

So, for your case, simply set usersPerRow to 1, and this will lay out vertically.

hope that helps,

  nigel

View solution in original post

5 Replies

Avatar

Correct answer by
Former Community Member

Hi Bernard,

Sorry fot the inconvenience - as part of the improvements to the webcamsubscriber, we did make some changes to the layout system, in order to make it easier to control. So, it might not be as good at automatically guessing the layout you'd like, but you'll much more easily be able to force it to do exactly what you want.

Here's the new property we added to webcamSubscriber:

usersPerRow:int  [read-write]


Specifies the number of user videos to show per row in the webcamsubscriber. Once the number of videos to display exceeds this number, a new row is created with the excess videos. Defaults to 4. For a long horizontal strip, set this to a high number - for a vertical strip, set this to a low number.

So, for your case, simply set usersPerRow to 1, and this will lay out vertically.

hope that helps,

  nigel

Avatar

Level 3

Great ! it's working!

Is it possible to sort the display by username ?

Thanks

Bernard

Avatar

Former Community Member

Sorry, nothing by default. You can also create several webcamsubscribers (each one with its own publisherIDs, one per publisher), and position them any way you'd like.

  nigel

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----