Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hallo, I would like to link to a specific image in the carousel. Something like http://example.com/carousel.html#slide5 Would that be possible? It would be very useful for finding content better. Thanks!
Comment | File | Size | Author |
---|---|---|---|
#1 | jcarousel-startposition-1386288-1.patch | 1.01 KB | hpbruna |
Comments
Comment #1
hpbruna CreditAttribution: hpbruna commentedHi,
I create a patch on this request. It takes the position from the URL from the 'pos' parameter e.g. example.com?pos=5 and then the jcarousel startposition is set to 5.
Comment #2
hpbruna CreditAttribution: hpbruna commentedAdded: 'needs review'
Comment #3
anruetherGreat, this is a good solution when you want to link to a specific slide. If you are already on the site you might think that the additional pageload is unnecessary.
Another thing would be to have the slide address appear in the url when clicking through the carousel. This would need implementation with next/prev buttons I guess.
But this is already great help for me! You can try it on my website if you want( http://www.aruether.net/photo/landscape?pos=4 )
Thanks a lot!
Andi
Comment #4
Mac_Weber CreditAttribution: Mac_Weber commentedIt does not work well for items not preloaded, as described on the comments:
Comment #5
Mac_Weber CreditAttribution: Mac_Weber commentedHow to get it to work prelaoding form that position:
[...]
Comment #6
Mac_Weber CreditAttribution: Mac_Weber commentedComment #7
Mac_Weber CreditAttribution: Mac_Weber commentedActually, #5 does not solve the problem of not loading non-preloaded items.