Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

In Admin - open image in lightbox 06 Jul 2012 10:16 #2765

Hi all,

I have an image upload field that I dont want to preview in the admin without clicking on the file name (above the browser box) and opening in a light box.
				<?php echo JDom::_('html.form.input.file', array(
												'dataKey' => 'image_production_1',
												'dataObject' => $this->fundentry,
												'size' => "",
												'target' => "modal",
												'root' => 'http://localhost/components/com_entry/files/fundentries_image_production_1/',
												'indirect' => true,
												));
				?>

I have added the paramaters as indicated above, the new ones being target, root and indirect. The image name text is now linked and opens a lightbox but image is not found!

I tried adding the full URL to the root parameter but this still doesnt work!

Any ideas?

Best regards,
K...

Please Log in or Create an account to join the conversation.

Last edit: by kristianharmer.

Re: In Admin - open image in lightbox 06 Jul 2012 12:35 #2766

OK, I have the following in place now and it would work fine with the exception I cannot seem to put the file path into the URL; the file name is there though!
				<?php echo JDom::_('html.form.input.file', array(
												'dataKey' => 'image_production_1',
												'dataObject' => $this->fund,
												'size' => "",
												'preview' => 'modal',
												'root' => 'projectfolder/components/com_fund/files/fund_image_production_1/'
												));
				?>

This outputs:
<a class="modal " href="chrysanthemum-1.jpg" rel="{}">chrysanthemum-1.jpg</a>

...notice no path!

Any ideas? Best regards,
K...

Please Log in or Create an account to join the conversation.

Last edit: by kristianharmer.

Re: In Admin - open image in lightbox 07 Jul 2012 09:10 #2768

Still stuck on this - any pointers would be very much appreciated... :whistle:

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.389 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started