Keyword

Item image as background in template override, strange issue

  • Alexander Ioannidis
  • Alexander Ioannidis's Avatar Topic Author
  • Offline
  • Senior Member
More
7 years 10 months ago #158871 by Alexander Ioannidis
Hi all!

I have created a template override for K2 to go with a custom Joomla template I did for a client. In this override, K2 items are arranged in their categories as "tiles" (please see screenshot imgur.com/a/bzV52 ) where item title and item creation date are displayed, with the item's image as the tile's background.

This works fine in all categories, even when an Item has no image assigned. BUT (yes, there is a "but") in one category AND its' 5 subcategories, the image appears in the source code but NOT in the browser.

I have tried emptying cache, disabling cache, 4 different browsers plus netrenderer.com, so this is not some cache / local issue.

Any ideas, before I go crazy?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 months ago #158888 by Krikor Boghossian
Replied by Krikor Boghossian on topic Item image as background in template override, strange issue
Hey there,
Can you send me a link so I can troubleshoot the issue?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Alexander Ioannidis
  • Alexander Ioannidis's Avatar Topic Author
  • Offline
  • Senior Member
More
7 years 10 months ago - 7 years 10 months ago #158889 by Alexander Ioannidis
Replied by Alexander Ioannidis on topic Item image as background in template override, strange issue
Sure thing Krikor! Thanks!
Last edit: 7 years 10 months ago by Alexander Ioannidis.

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

  • Alexander Ioannidis
  • Alexander Ioannidis's Avatar Topic Author
  • Offline
  • Senior Member
More
7 years 10 months ago #158890 by Alexander Ioannidis
Replied by Alexander Ioannidis on topic Item image as background in template override, strange issue
Sample link of page where backgrounds are working fine www.rivellis.gr/en/seminars
Sample link of page where backgrounds are not working www.rivellis.gr/en/interviews-and-speeches/itemlist/category/4-monologues-2016

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 months ago #158896 by Krikor Boghossian
Replied by Krikor Boghossian on topic Item image as background in template override, strange issue
I am not sure if it is the multilingual extension's fault (altering the HTML code)

As you can see the images' URLs are not correct -> imgur.com/a/RZc2v

Once I remove the ../../ part the image is shown.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Alexander Ioannidis
  • Alexander Ioannidis's Avatar Topic Author
  • Offline
  • Senior Member
More
7 years 10 months ago #158902 by Alexander Ioannidis
Replied by Alexander Ioannidis on topic Item image as background in template override, strange issue
Thanks for looking into it Krikor!

This is really strange, because the problem only appears in a specific category and its subcategories, nowhere else.
Also, the image URL is identical in all other categories, e.g. imgur.com/a/7f9iV

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

  • Alexander Ioannidis
  • Alexander Ioannidis's Avatar Topic Author
  • Offline
  • Senior Member
More
7 years 10 months ago #158903 by Alexander Ioannidis
Replied by Alexander Ioannidis on topic Item image as background in template override, strange issue
Ok, so I decided to create a menu item for the first subcategory, and guess what? The images worked!
This is indeed an issue with the multilingual component, thanks x1.000 for pointing me in the right direction Krikor!!!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 months ago #158906 by Krikor Boghossian
Replied by Krikor Boghossian on topic Item image as background in template override, strange issue
You 're welcome buddy!
Best of luck with your project.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum