Enduro icon indicating copy to clipboard operation
Enduro copied to clipboard

HBS Helpers

Open YuraKolesnikov opened this issue 7 years ago • 2 comments

Hello, guys! Not sure if it's issue, but still. I'm building a website and one of the sections is "Services". I've created a services.js file in cms 'global' folder and did {{}} stuff for an ability to change content in each service (9 all total). Now I found {{#grouped_each 3 bla-bla}}

But here goes a problem. screen shot 2018-01-27 at 19 06 12

Each row starts from new... row, obviously. How do I wrap them?

Thanks in advance.

YuraKolesnikov avatar Jan 27 '18 16:01 YuraKolesnikov

Can you explain your issue further? I'm not sure if I'm understanding it correctly. Also can you display the code inside your {{#grouped_each 3 bla-bla}}?

rnlambert7 avatar Jan 28 '18 22:01 rnlambert7

Add URL (Each 3 is not like saying "3cols in a row"). http://www.endurojs.com/docs/grouped-each

Her you find example for the {{#grouped_each 3 bla-bla}} :) https://github.com/Gottwik/enduro_website/blob/master/pages/docs.hbs

This is the CMS: https://github.com/Gottwik/enduro_website/blob/master/cms/global/documentation/documentation_list.js

And the output is this page: http://www.endurojs.com/docs

Also search on google you find a lot of examples and Q her (Or google it) https://stackoverflow.com/search?q=handlebars+%23each https://funkjedi.com/technology/412-every-nth-item-in-handlebars/

Ezra-Siton-UIX avatar Jan 31 '18 19:01 Ezra-Siton-UIX