Image display solution

  • flightoffire
12 years 9 months ago #402 by flightoffire
Image display solution was created by flightoffire
Hi folks.
A few people, myself included, are having major dramas in using the default joodb code to display images - {joodb path2thumb} and {joodb path2image}.
Until Dirk fixes this issue, I suggest you use the following piece of code. It works fine.
My Solution:
To display an image in either template (cataloge or single view) you will need to go to the code view and insert the following where you need the image to display in the page. You will of course need to edit the path according to how you site's folders are set up. You can also change the parametres like 'center' and <strong> (bolds the text).
NOTE: I had issues with posting the following code into the forum so IGNORE the double quotes at the start and end of the code lines ONLY. ALL other quotes are included.

"<p style="text-align: center;"><strong>Image 1</strong></p>"
"<img src="images/joodb/images_thumb/{joodb image_thumb}" border="0" />"
"<p> </p>"

"Center" is the text alignment and can of course also be 'left' or 'right'.
"Image 1" is the text that displays on the page. This might be a heading or short description of your image.
The <img src=...> line is the directory to you images folder. Change this to correspond to your site's file structure.
The <p> line is simple the next line in my code.
Make sure your images are properly associated with your table data entries.
Paste this exactly as above, edit, then save and preview. It should work fine.
Cheers,
Grant.

Please Log in to join the conversation.

Moderators: Dirkjoest