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.060 seconds
Great UX great performance and definitely a time saver. It only took me 10 minutes of playing around before purchasing a subscription and right now I just want to throw more money at you! I just started a new project and after just 4h I can already tell it probably saved me several days of work. I'm building a wholesale ordering system with sales rep management. I have not looked at the code yet but so far: impressive.
flip (Forum)

Get Started