Forums

Insert a form into an article

dj59 05 Feb, 2013
Is it possible to insert a form into an article or add an image to a form?
thanks.
GreyHead 06 Feb, 2013
Hi dj59,

Yes and yes.

Please see this FAQ for the first.

And use a Custom Element element with an <img> tag for the second.

Bob
dj59 06 Feb, 2013
I tried to upload this plugin, but I get this message:
Plugin Install: Another plugin is already using directory: C:\xampp\htdocs\Joomla_2.5.8/plugins/content/chronoforms

I previously installed chronoforms_V4_RC3.5.2_j1.6
Do I now have to unistall this and install chronoforms_J1.6_V4_RC3.0_Plugin?
If I do that will I loose my forms?
Or what should I do?
GreyHead 06 Feb, 2013
Hi dj59,

It looks as though you have already installed the ChronoForms plug-in. Please check to see if it is enabled.

The ChronoForms component and the Plug-in are separate elements.

Bob
dj59 06 Feb, 2013
That is working now, but to insert an image into a form is still a problem for me.
My code is:

<html>
<body>
<img src="Image_3.jpg">...


Nothing shows up, do I need to specify a path? If so how is that written?
The image is located at
joomla/images/Image_3.jpg
Thanks.
dj59 06 Feb, 2013
Oh, Man...I got it.
"/images/Image_3.jpg" works...ha!
GreyHead 06 Feb, 2013
Hi dj59,

It needs to be a URL, not a folder path (though the two can be very similar); and you don't need the <html> or <body> tags.

Note that you can't reliably use relative URLs in Joomla! because the file may be opened from different locations.

I usually use full URLs like this:
<img src='<?php echo JURI::root(); ?>images/Image_3.jpg' />
The odd PHP bit will insert the current root URL of the site so the end result in the page source is like this:
<img src='http://my_domain.com/images/Image_3.jpg' />

Bob
This topic is locked and no more replies can be posted.