I'm trying to setup popup filter manually using tags and code. I can't seem to find the syntax for adding an image as title, it's not in the documentation page. Searched the issue-queue for clues, but nothing works.

Anyone?

Thanx,
Cas

Comments

caskraker’s picture

Found it. Image is in fact a seperate attribute form title.
Just use image=path/file.jpg with the path and file between quotes.
Path may be relative to your files directory.

Could someone add this to the documentation?
Cas

caskraker’s picture

Status: Active » Closed (fixed)
dianacastillo’s picture

how does this work for a popup block?
I tried http://sei-devdr01/pn/sites/default/files/u11/growth_thumbnail.png
image="http://sei-devdr01/pn/sites/default/files/u11/growth_thumbnail.png"

and all it does is echo the path of the image, but not the actual image.
can someone send me an example of how they do this
?
thank you

dianacastillo’s picture

Status: Closed (fixed) » Needs review
dianacastillo’s picture

please put an example . thank you

dianacastillo’s picture

okay I modified the code in the module in this function
function popup_preprocess_popup_element(&$variables){
I added this:
$variables['title']=html_entity_decode($variables['title']);
now the title which I have as an image <img src="http://sei-devdr01/pn_dev/sites/default/pics/gt.png"/> actually comes out as an image and it works to link to the popup

Can someone modify the code of this module to fix this?

dianacastillo’s picture

Issue summary: View changes

Removed unshown code

vuil’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Issue summary: View changes
Status: Needs review » Postponed (maintainer needs more info)

Could you describe well how to reproduce the issue or it will be closed as Closed (outdated)? Thank you!

I also move the issue to the 7.x-1.x-dev branch.