I have a "pick one" list of CCK radio buttons, each one requiring some explanation. I'd like to be able to use pop-ups in the help text to deal with the various definitions. Is this possible? Simply installing the module and enabling the popup filter for all content types has not allowed me to use popups within CCK help.

CommentFileSizeAuthor
#4 MP - Zeropoint php files.gif98.7 KBitserich

Comments

Scheepers de Bruin’s picture

Status: Active » Closed (fixed)

You could use the following:

popup_filter_process_tag('[popup title="Whatever title you want" text="Whatever text you'd like to popup"]');

to generate the html for a popup.

itserich’s picture

Status: Closed (fixed) » Active

Would this actually be inserted into the Help Text for a cck field?

I have some very long forms with CCK and explanations would help a lot.

Thank you.

Edit: Tried it, guess not, any guidance would be appreciated.

Scheepers de Bruin’s picture

Status: Active » Closed (fixed)

Remember this is within PHP.

So you could, for example:

$form['my_text'] = array(
'#title' => 'My field',
'#type' => 'textfield',
'#description' => popup_filter_process_tag('[popup title="Help" text="This is just a text field"]')
);
itserich’s picture

StatusFileSize
new98.7 KB

Thanks, I have read up a bit on themes and settings, would this go into a php file of the theme?

Attached is a screenshot of zeropoint, from poking around it looks like theme-settings.php might be the place.

Would the actual name of the CCK Field replace the 'textfield' in the php code?

And if I am completely wrong I apologize for taking up your time!

itserich’s picture

Hold on, does the php go right in the cck field?

I noticed the php filter module.

calefilm’s picture

Yah, I need explicit instructions otherwise I can't get this to work :(

itserich’s picture

One thing I have found is at Site Configuration -> Input Format the filtered and Full HTML can be configured for pop up.

Also, Tooltips was relatively easy.

http://drupal.org/project/tooltips

Good luck.

Ankit22’s picture

I tried tool tip ... but all it does is create a input type which can be used for creating pop ups for node text. Is thr any way through which help text can be used as pop-up?

itserich’s picture

Beautytips does a good job with this.

http://drupal.org/project/beautytips

Compact Forms is a bonus

http://drupal.org/node/593324