Display product image in specific module position

  • Posts: 71
  • Thank you received: 0
11 years 4 months ago #152870

Hi,

In my product template I want to display one of the product images at the banner position. How can this be achieved? I have adapted the php in the show view so that I can find the relevant picture and show it in a div. However, I'm confined to the position of the product info display. Maybe someone can tell me how I can place that image in the banner? Or maybe there is a module that can do just that?

Thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 84290
  • Thank you received: 13692
  • MODERATOR
11 years 4 months ago #152877

Hi,

The simplest will be to store your HTML in a super global in the view:

$_POST['html'] = $html;
and then retrieve it in a custom code module in the position of your banner with a line of PHP:
echo $_POST['html'];

You can use such module for that:
extensions.joomla.org/extensions/core-en...code-in-modules/3668

Last edit: 11 years 4 months ago by nicolas.
The following user(s) said Thank You: bmichu

Please Log in or Create an account to join the conversation.

  • Posts: 71
  • Thank you received: 0
11 years 4 months ago #152957

Great! with this info I was able to make things work. Thanks!

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum