getgrav / grav-plugin-shortcode-owl-carousel

Grav Shortcode Owl Carousel Plugin
https://getgrav.org
MIT License
11 stars 12 forks source link

How set id question #20

Open lesar opened 4 years ago

lesar commented 4 years ago

I have look at the code but is hard to me understand how the id is binding in carousel container.
I like to assign an #ID on carousel tag in markdown page.

Can anyone help?
best regards,
Leonardo

Update

I have found it in ShortcodeManager.php row 305:

return substr(md5($shortcode->getShortcodeText()), -10);

so is not possible give an #id to the container.
How can I customize the carousel display by css?
If I use a class all carousel will be customized.
If I like to customizze a single carousel how have to do?

best regards,
Leonardo

Update

Can I do a pull request to add a customizable #id parameter and let the same behaviour if is missing?
If people add non unique #id all go wrong but is a user mistake and I think is acceptable.

best regards,
Leonardo