hi
I've installed and Colorbox Node works fine on a regular page (sweet).

However, in cutting and pasting the exact same code to the "Help text" of a field in my custom Content Type,
colorbox doesn't work and the link opens in the parent window instead..

anyone have any ideas what might be going on here?

EDIT:
I guess this has to do with the "allowable HTML tags" that can be added to the Help text. I tried hacking the field module to add
to the function _field_filter_xss_allowed_tags().. but did not work.. I did find that Lightbox 2 is able to launch a modal from the within the helo text, but cannot control the size.

Comments

iLLin’s picture

Hmm, I messed with the "More information about text formats" help link under a textarea and it wasn't working. I found it had to do with the tips module. It was looking for the arg() and returning the appropriate help text from that. Well the args were wrong because the url had a "colorbox" on the beginning of it. I have added a new line that fixed this.

function colorbox_node_output($path) {
  // @TODO, we should be able to use this for users too,
  // Lets beef this up and make it more intelligent around
  // the system path.
  if(!isset($_GET['destination'])) $_GET['destination'] = $path;
  $_GET['q'] = $path;

Notice the $_GET['q'] line. Try adding that line to see if it helps you.

----------------------------------

Also another issue I ran across was the node/*/edit URL was excluded from the colorbox loading. Check in the colorbox settings under "Advanced" and make sure the URL you are trying to fire this modal window from is not excluded.

iLLin’s picture

Status: Active » Closed (works as designed)
iLLin’s picture

Issue summary: View changes

EDIT update