• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 512
  • Last Modified:

images not showing up in joomla 1.7 in article using jumi tags

Could someone please have a look at the following forum post:

http://forum.joomla.org/viewtopic.php?f=615&t=666127

Thx
0
qeng
Asked:
qeng
  • 3
1 Solution
 
lazysheepmediaCommented:
have you tried?

<img src='../images/sampledata/fruitshop/apple.jpg' />

Open in new window


Regards

Mark
0
 
qengAuthor Commented:
Thanks for responding Mark.

Yes I had tried that but the path syntax wasn't the issue (folder 'images' sits in the site's root directory so ../images/ and images/ are equivalent).

I was able to figure out what the problem was.

For some reason, somewhere in the Joomla 1.7 > Ja_Purity_ii > Jumi > PHP arena, html single quotes are not  working.

Normally,

<img src="images/mypic.jpg" />
and
<img src='images/mypic.jpg' />

would be equivalent statements in html.

This would allow the following php code to be used (note use of single quotes in html portion):

echo "<img src='images/mypic.jpg' />";

(otherwise using double quotation marks inside the echo  statement, like so:  echo "<img src="images/mypic.jpg" />"; would fail due to the conflicts with the php double quotation mark and the html double quotation mark).

For whatever reason, the Joomla 1.7 > Ja_Purity_ii > Jumi > PHP  combination ignores statements written like so:

<?php
echo "<img src='images/mypic.jpg' />";
?>

In order to get this to work, I have to use the php heredoc syntax, viz:

<?php
$myhtml = <<<SOMEHTML
<img src="images/mypic.jpg" />
SOMEHTML;
echo $myhtml;
?>

Not sure if there is somewhere in the Joomla 1.7/JA_Purity_ii/Jumi/PHP chain whereI have to specify that html can use single quotes.

Anyhow, using the heredoc syntax is a reasonable workaround for me at the moment.



0
 
qengAuthor Commented:
How can I close-off my question, saving it for future reference in the process?
0
 
qengAuthor Commented:
I'm accepting my own solution:

a) because it is the only valid solution 'received'
b) as a means of closing this outstanding question (since I didn't receive a reply to  regarding 'how to close this question)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now