The lightbox will try to detect the type by parsing an url.
The url can be declared by using the
href-attribute of a link. It is also possible to use any other element as a trigger for the lightbox, like a button. Of course we cannot use a
href-attribute in this case because that would make our html invalid, so we use a
data-bblb-href-attribute. It is namespaced so it will not interfere with other plugins.
If a link has both, the
href-attribute and the
If an url is detected incorrectly, it is possible to force the lightbox to use a certain type.
As an example if we have an image that is dynamically generated by a php-script on the server. The lightbox would assume that it should request the url with ajax. In this case we would have to tell the lightbox which type is correct by setting the