- Posts: 65
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Item image as background in template override, strange issue
Item image as background in template override, strange issue
- Alexander Ioannidis
-
Topic Author
- Offline
- Senior Member
Less
More
8 years 6 months ago #158871
by Alexander Ioannidis
Item image as background in template override, strange issue was created 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?
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
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 6 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?
Can you send me a link so I can troubleshoot the issue?
Please Log in or Create an account to join the conversation.
- Alexander Ioannidis
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 65
8 years 6 months ago - 8 years 6 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: 8 years 6 months ago by Alexander Ioannidis.
Please Log in or Create an account to join the conversation.
- Alexander Ioannidis
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 65
8 years 6 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
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
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 6 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.
As you can see the images' URLs are not correct -> imgur.com/a/RZc2v
Once I remove the ../../ part the image is shown.
Please Log in or Create an account to join the conversation.
- Alexander Ioannidis
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 65
8 years 6 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
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
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 65
8 years 6 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!!!
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
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 6 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.
Best of luck with your project.
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Item image as background in template override, strange issue