Have you found out how to set options like dimensions?
Looking at line 116 in the source of behavior.php (see http://api.joomla.org/__filesource/fsou ... r.php.html
) I see that the modal function is as follows:
Code: Select all
function modal($selector='a.modal', $params = array())
What I think this means is that it should be possible to pass a selector (for example a.myselector instead of a.modal). I am not sure what the selector is, though, but I think it is class. The rel attribute of a link I think does not serve as the selector but to set the options for a link, whereas the modal class of links is used as selector.
Also, it should be possible to set other parameters such as size. Lower down in line 144 the size option is set by reference to the params array. By setting these options in calling behavior.modal, I think it should be possible to skip the rel attribute of links altogether.
So, all in all it should be possible to use a custom class (such as 'mylinkclass') and a size (such as 800 by 600) in calling behavior.modal and then all links with that class ('mylinkclass') will get the predefined size (800x600) without any need to set the rel attribute in those links.
However, I do not know how to actually code this, and I would like to know how exactly this is done. Would it be something like this?
Code: Select all
$myselector = "mylinkclass";
$mysizex = 800;
$mysizey = 600
I hope someone has the answers because this will enable me to make a little plugin that for example scans for all links to yourdomain.com and gives them the class 'mylinkclass' so that they open in a Squeezebox of a given size without affecting the use of Squeezebox by any other extension.