Is there anyway of applying this nice effect / feature on a link / node..?

ie if i want to get a page from outside drupal to open up in the same manner that the edit functions work?
Kind of like how thickbox work?

Kind Regards,
Jonas

Comments

starbow’s picture

Assigned: Unassigned » starbow
Category: support » feature

Good point. There is currently no way to open up a non-drupal page with this module, but it wouldn't be hard to add in.

To add this effect to new drupal pages, you can use hook_popups...There was another way in a test version, by including a "popups=true" attribute in your anchors. I should probably turn that back on.

starbow’s picture

Status: Active » Closed (works as designed)

Hi Jonas,

I did some prototyping on this feature, but I realized that it has the potential to open all sorts of XSS vulnerabilities. So popups will continue to only work on pages inside your site. If you want to, you can create a proxy to the external page, but you will need to take responsibility for sanitizing the page yourself.

I did add a check if a link has a 'popup' class, and if so it adds the popup behavior, but only for pages within your site.