getgrav / getgrav/grav-plugin-shortcode-owl-carousel
How set id question
- Dominant language
- CSS
- Stars
- 12
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
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](https://github.com/getgrav/grav-plugin-shortcode-core/blob/develop/classes/ShortcodeManager.php) row 305:
```php
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with ShortcodeManager.php around row 305, where the issue identifies the generated value; compare that behavior with the requested optional #id parameter. Done means a single carousel can receive a customizable id while the existing behavior remains when it is omitted, allowing it to be targeted independently with CSS.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, php
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100