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.191 seconds

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started