Keyword

Layout Bug On Some K2 Items

  • Red Evolution
  • Red Evolution's Avatar Topic Author
  • Offline
  • Premium Member
More
4 years 9 months ago #172445 by Red Evolution
Layout Bug On Some K2 Items was created by Red Evolution
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.

More
4 years 9 months ago - 4 years 9 months ago #172462 by JoomlaWorks
Replied by JoomlaWorks on topic Layout Bug On Some K2 Items
Do you see any JS errors in your browser's dev tools?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 4 years 9 months ago by JoomlaWorks.

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

  • Red Evolution
  • Red Evolution's Avatar Topic Author
  • Offline
  • Premium Member
More
4 years 9 months ago - 4 years 9 months ago #172502 by Red Evolution
Replied by Red Evolution on 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: 4 years 9 months ago by Red Evolution.

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

More
4 years 9 months ago #172507 by JoomlaWorks
Replied by JoomlaWorks on topic Layout Bug On Some K2 Items
Other K2 related extensions you may be using?

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

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

  • Red Evolution
  • Red Evolution's Avatar Topic Author
  • Offline
  • Premium Member
More
4 years 9 months ago #172554 by Red Evolution
Replied by Red Evolution on 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
  • Premium Member
More
4 years 9 months ago #172560 by Red Evolution
Replied by Red Evolution on 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.

More
4 years 9 months ago #172604 by JoomlaWorks
Replied by JoomlaWorks on topic Layout Bug On Some K2 Items
What exactly had they used (out of curiosity)?

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

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

  • Red Evolution
  • Red Evolution's Avatar Topic Author
  • Offline
  • Premium Member
More
4 years 8 months ago - 4 years 8 months ago #172647 by Red Evolution
Replied by Red Evolution on 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: 4 years 8 months ago by Red Evolution.

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

More
4 years 8 months ago #172663 by JoomlaWorks
Replied by JoomlaWorks on 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.

Fotis / 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