Loading...
 
Features / Usability

Features / Usability


Re: Plugin Button in New Window

posts: 214

I found a way to do this. I wouldn't say it is pretty. It would be a lot easier if plugin button had an "open in a new window" option.

I added some jquery code to Admin > Look and Feel > Customization tab > Custom javascript:

Copy to clipboard
$('#buttonexternal a').on("click", function(e) {$(this).attr('target', '_blank');});

Then I thought I would be able to add _class="buttonexternal" to the button plugin and have that work, but it didn't.
I was able to get it to work by wrapping the button plugin in a div plugin:

Copy to clipboard
{DIV(id=buttonexternal)} {BUTTON( ... {DIV}


Tom

There are no comments at this time.