File manager with no close button

Permalink
I am creating a block that allows for use of the file manager on the front end view of a block. The user clicks a link that brings up the file manager dialog where they can select a file. The file manager comes up okay - everything looks fine, there's just no close button in the upper right.

Screenshot attached.

1 Attachment

jgarcia
 
jgarcia replied on at Permalink Reply
jgarcia
So, I figured it out, kind of. I have to add the dialog-modal="false" attribute to the link i am using, so it ends up looking something like this
echo '<a class="sem-file-selector" href="' . DIR_REL . '/index.php/tools/required/files/search_dialog?search=1" dialog-modal="false">Select file</a>';


It works, but technically it's invalid XHTML (which I'm kind of okay with). Anyone know of another way to do it that would be valid XHTML?