I have a link field which can contain internal or external links.
I have set a CSS class calling colorbox in order to open the internal link inside a colorbox modal windows.

I'd like to have a different behaviour for eternal link i.e. opened with a header banner.

In order to do it I'd need to had, somewhere in the module code a function to strip the CSS class.

Any idea on how to do it?

Thank you

Comments

dimon00’s picture

I was able to do it by adding

$(this).attr('class', '');

inside external_iframe.js.

But now my external urls fail to validate so I had to comment _external_iframe_error_direct as a workaround...

still working on it.

Any help would be appreciated.

stongo’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry guys for the late response, I'm not exactly sure what you're trying to do. Can you give me a more detailed example?