Keyword

Layout Bug On Some K2 Items

  • Red Evolution
  • Red Evolution's Avatar Topic Author
  • Offline
  • Senior Member
More
2 months 3 weeks ago #172445 by Red Evolution
Red Evolution created the topic: Layout Bug On Some K2 Items
Hi Fotis,

Got another quirk on a site running the latest dev version of K2. In the Item edit window in the backend, on some of the items the layout is being loaded incorrectly. Basically, the tabs at the top all get loaded together so that some of the section titles overlay the other items on the page and you can't edit them. So for example, in Screenshot1.png you will see I have marked the area where extra section titles are being displayed, this is stopping us from being able to click on the pencil icon to update the article author (although we can change it in the batch layout on the main item screen). This doesn't happen on all the items though which is the odd thing and there are no errors appearing in the console. Any ideas what could be causing this?

Thanks,
Dave
Attachments:

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
2 months 3 weeks ago - 2 months 3 weeks ago #172462 by Fotis
Fotis replied the topic: Layout Bug On Some K2 Items
Do you see any JS errors in your browser's dev tools?

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member
Last edit: 2 months 3 weeks ago by Fotis.

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

  • Red Evolution
  • Red Evolution's Avatar Topic Author
  • Offline
  • Senior Member
More
2 months 1 week ago - 2 months 1 week ago #172502 by Red Evolution
Red Evolution replied the topic: Layout Bug On Some K2 Items
Hi Fotis,

Sorry I was out of the office last week. No, there are no JS errors in the dev tools.

Dave
Last edit: 2 months 1 week ago by Red Evolution.

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
2 months 1 week ago #172507 by Fotis
Fotis replied the topic: Layout Bug On Some K2 Items
Other K2 related extensions you may be using?

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Red Evolution
  • Red Evolution's Avatar Topic Author
  • Offline
  • Senior Member
More
2 months 3 days ago #172554 by Red Evolution
Red Evolution replied the topic: Layout Bug On Some K2 Items
We use this multi category plugin extensions.joomla.org/extension/multiple-categories-for-k2/ but we have articles where multiple categories are assigned and the layout bug doesn't appear so it is a very strange one.

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

  • Red Evolution
  • Red Evolution's Avatar Topic Author
  • Offline
  • Senior Member
More
2 months 2 days ago #172560 by Red Evolution
Red Evolution replied the topic: Layout Bug On Some K2 Items
Apologies for any time you've spent on this one Fotis, diagnosed the issue now. Turns out the client hadn't closed off an image tag properly in the 'Media' field which screwed up the layout for the whole section. Might be something to consider adding in future versions, a failsafe for layouts or a warning if incorrect code is added there although not sure how simple that would be to implement.

Thanks,
Dave

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
1 month 3 weeks ago #172604 by Fotis
Fotis replied the topic: Layout Bug On Some K2 Items
What exactly had they used (out of curiosity)?

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Red Evolution
  • Red Evolution's Avatar Topic Author
  • Offline
  • Senior Member
More
1 month 3 weeks ago - 1 month 3 weeks ago #172647 by Red Evolution
Red Evolution replied the topic: Layout Bug On Some K2 Items
They put the img tag in but had missed to close it off properly so it was like this:
<img href="test.jpg" title="test
Rather than this:
<img href="test.jpg" title="test" />
Last edit: 1 month 3 weeks ago by Red Evolution.

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
1 month 3 weeks ago #172663 by Fotis
Fotis replied the topic: Layout Bug On Some K2 Items
Yeah, it's probably an edge case as most users rarely copy/paste any HTML in the Media tab (they either use AllVideos integration or direct upload/server selection).

To detect broken HTML, we need to parse the output with JS which kinda seems overkill.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white

Powered by Kunena Forum