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

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started