Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Zentools2 doesn't treat K2 content like Zentools1

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Bamboo,

See joomla.jlnarducci.com/ for behavior described below. See grid5 contents (Zentools1) vs grid9 (Zentools2).

I use K2 content to layout a Zentools1 grid in grid5. I have a layout the puts the image first, title second and text third. The content is div oriented...

<div style="text-align: left;"><img src=",,,/WhatJLNDoes3.jpg" alt="WhatJLNDoes3" width="400" height="300" style="margin: 10px; float: left;" />
</div>
<div style="margin-left: 0px; line-height: 1.8em;">
<div>Asks Questions, Evaluates Eco-System</div>
<div>Focuses on Execution Design Resources</div>
<div>Provides Cube Framework Evaluation Tools</div>
<div>Administers a "Evaluation Blog"</div>
<div>Coaching & Training </div>
</div>

...where img src is correctly defined and edited here for privacy. Same layout used in Zentools2.

The grid5 resolves correctly where the grid9 version does not and is set up just like the Zentools1 version (near as I can tell). Used K2 content, strip tags - added img as permissable, image style - none, which is different but doesn't matter.

It seems that the the img tag is ignored as the image to be used by Zentools2. It is treated as part of the text.

Is this by design? If so, how can I get the image used as it is in Zentools1?

Notice that Joomla Content layout tags are:

Tags available for display using Joomla as a content source:

introimage
fulltext image
title
author
category
introtext
fulltext
readmore
video - Youtube or vimeo video embedded in the introtext
date
tags
metadescription
social buttons: pinit, like and tweet

K2 Content layout tags are:

Layout tags available for K2:
image
title
introtext
fulltext
category
author
date
video
video_caption
video_credit
gallery
readmore
fulltext
tags
ratings
tweet
pinit
like

Thanks.

Jonathan
  • Jonathanne's Avatar
  • Jonathanne
  • 12 Month basic
  • 439 posts
  • 7 Thanks
  • Karma: 6
The administrator has disabled public write access.
Hi Jonathan,

Looking at the two modules in comparison - You want both to look exactly the same?

Both being

Image
Title / Text

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Yes.
  • Jonathanne's Avatar
  • Jonathanne
  • 12 Month basic
  • 439 posts
  • 7 Thanks
  • Karma: 6
The administrator has disabled public write access.
Hi Jonathon,

I would have thought you would achieve the layout int he same way as zt1 and zt2.

But basically to display the grid9 content as you have on grid5 you would need these settings:

1. image tag
2. title tag
3. text tag

Then strip img from the text or at least img tag is not in the allowed tags.

Otherwise the img does display as a part of the text tag.
Hope I havent misunderstood your question.
Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Anthony,

Thanks for the reply. I have tried:

Turning Fulltext options "strip tags" to off, img tag in the allowed list - leaves the image in the text which is displayed with the text but not displayed as an image using the layout tag "image."

Turning Fulltext options "strip tags" to on, img tag in the allowed list - leaves the image in the text which is displayed with the text but not displayed as an image using the layout tag "image."

Turning Fulltext options "strip tags" to on, img tag not in the allowed list - no image in the text is displayed and not displayed as an image using the layout tag "image."

Turning Fulltext options "strip tags" to off, img tag not in the allowed list - image in the text is displayed and not displayed as an image using the layout tag "image."

I used Introtext layout tag and the results were the same as above.

Please understand that I have used Zentools 1 for quite awhile. And did set Zentools2 up as you said. Did try various scenarios described above using different layout tags for K2.

The code I included in the my first post is the same code I use in Zentools1.

I'm going to set up a Joomla content test as well. Will report on that later on.

Jonathan


LATER:

Tested the Joomla content version - only one category but three items. It looks like the grid5 rendering (strip tags and no img tag in the allow list). If I add the img to the allow list the image is rendered twice per item (as expected). All other options (the four stated above) render as expected.

Problem with item spacing: regardless of how the "Disable margins between items" is set. On or off, the gutter is removed. It's now set to off.

Problem with K2 content?

If I use K2 Categories I get this error:

1146 - Table 'directory.jml_K2_categories' doesn't exist SQL=SELECT name,alias FROM `jml_K2_categories` WHERE `id` = 19 LIMIT 0, 1

Where the directory has been replaced for privacy.

Also, for the K2 rendering (first group in grid 9, no images rendered group) the lightbox option does not work. for the group that tests the Joomla content group the lightbox only renders the image.

See joomla.jlnarducci.com/ grid9 area for test results and the problems described.

By the way, I did create master and custom css files but did not change or add anything to them.
  • Jonathanne's Avatar
  • Jonathanne
  • 12 Month basic
  • 439 posts
  • 7 Thanks
  • Karma: 6
Last Edit: 8 years 10 months ago by Jonathanne.
The administrator has disabled public write access.
Hi Jonathanne,

I've spent the last couple of hours testing zentool2 for issues

Regarding the k2 non appearing images - I currently see the same when using k2 intro text but its works as expected using the k2 item image.

The lightbox I see working but with a glitch regarding a image 404 if an image is added directly to the intro text as well as the item image

With the lightbox what options did you chose to display in the lightbox settings?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Paul,

Please check out my web site (joomla.jlnarducci.com/) and the code - all three articles have the exact same code except different images and words - included here:

<div style="text-align: left;"><img src=",,,/WhatJLNDoes3.jpg" alt="WhatJLNDoes3" width="400" height="300" style="margin: 10px; float: left;" />
</div>
<div style="margin-left: 0px; line-height: 1.8em;">
<div>Asks Questions, Evaluates Eco-System</div>
<div>Focuses on Execution Design Resources</div>
<div>Provides Cube Framework Evaluation Tools</div>
<div>Administers a "Evaluation Blog"</div>
<div>Coaching & Training </div>
</div>

This article code renders in Zentools 1 as seen on my web page. Right below it is the rendering in Zentools 2. The images are missing. Options chosen: Under Options i use the K2 content source, the grid layout, for the "Item layout" I use, in this order, Image, Title, Fulltext.

Fulltext options are strip tags is ON and no img in the "allow" box.
Image options: lightbox chosen, square and none for the other options.
Title settings I chose lightbox.

Module layout and settings are NONE and nothing else is turned on. NOTE: the Disable margins optionis turned off.

Lightbox settings:Zoom in, and the following options are turned ON:
Enable gallery (On or OFF the results are the same), Display title, Display text. The other options are OFF.

Master and custom files have been created but nothing has changed or added to them. Touched no other options under theme.

Under settings all thre button options are red (NO).

Advanced settings: class suffix = secondary1

I checked out my web page on a win 8 tablet using IE11. It rendered as it does on my win 7 laptop.

Note the Joomla2 module just below the first one in grid9. Its using the same options as the K2 one except its using Joomla as the content source.

Check out the lightboxes work in both modules. Note that K2 module shows no images. Note the Joomla content one does but that items - images - have NO gap between them and the option Disable margin is turned OFF.

Please test lightbox using my page. Please note that the images are missing.

Thanks,

Jonathan
  • Jonathanne's Avatar
  • Jonathanne
  • 12 Month basic
  • 439 posts
  • 7 Thanks
  • Karma: 6
The administrator has disabled public write access.
Hi Jonathan,

If you use the k2 image tab instead of the content panel how does that work for you?

Thanks so much for all your contribution so far

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Paul,

Not sure what you are referring to with "K2 image tab." There are only three K2 choices under Options/Select a content source. There is an image selection but that that does not ask for K2 content, only directories containing images.

Choosing K2 categories gives me the 1146 error I reported a couple messages back. Haven't tried K2 authors.

Thanks,

Jonathan
  • Jonathanne's Avatar
  • Jonathanne
  • 12 Month basic
  • 439 posts
  • 7 Thanks
  • Karma: 6
The administrator has disabled public write access.
Hi Jonathan,

In the k2 items itself can you try using the image tab to browse for an image file and add it there

sorry I wasn't clear

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Not a problem. My fault, I should know how to use the tabs in the editor.

Yes, that puts the image where it should be. Did only one but its following the Joomla content Zentools2 module that follows right beneath the K2 version.

But the disable margins option is OFF and there is no difference to the rendering if it ON or OFF.

Thanks for the help on the tabs option. But it seems that the K2 content option (without using the image tab) and Joomla content option do work differently in Zentools 2 and from Zentools 1.

Jonathan
  • Jonathanne's Avatar
  • Jonathanne
  • 12 Month basic
  • 439 posts
  • 7 Thanks
  • Karma: 6
The administrator has disabled public write access.
Yep you are right - I'll need to tell Anthony

I just wanted to confirm

Anthony is away for a couple of days but I'll let him know

Thanks again for your help

Is this an urgent issue for your site?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
No. I do like using the latest and greatest and even with the "errors" I found (or I'm doing something wrong) Zentools 2 is the tool to use. Understand the need to have the community "wring" these things out under the different environments. I can still use Zentools 1!

Jonathan
  • Jonathanne's Avatar
  • Jonathanne
  • 12 Month basic
  • 439 posts
  • 7 Thanks
  • Karma: 6
The administrator has disabled public write access.
Paul,

Please don't forget about the other things I brought up.

By the way, is K2 used less because of Joomla 3+? I would have thought that some of the things I found would have been found (lightbox and margins between items) by others by now. Just a thought.

Jonathan
  • Jonathanne's Avatar
  • Jonathanne
  • 12 Month basic
  • 439 posts
  • 7 Thanks
  • Karma: 6
The administrator has disabled public write access.
Hi Jonathan,

I think yes - fewer people are using k2 as more folks are sticky with core functionality - I'm not sure how we missed the image issue

Anthony is away for the next couple of days and I will be testing myself later today

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Will be interesting to see how k2 develops in its next version however :)

Cheers and thanks again

Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Jonathon,

Back on deck now and apologies for the delay.

I removed the option to reference the image for the image layout tag from the introtext in k2.

So to be able to have an image for your content display in the image tag in zentools2 (ie not in the introtext tag) you need to use K2 item image option as Paul added above.

I decided against teh old behaviour because it leads to less overhead for the module as there is now no need to query the intro text and parse out the image if we just use the item image.

Apologies if I have misunderstood again.
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Anthony,

Thanks and understand.

Will this be the same for fulltext under K12 as well?

Problem with fulltext is that if I place an image using the K2 image editor tab - like Paul said - and add it using the editor itself (img tag is created in the editor) then both are shown when using the image option in the layout.

Now, With Zentools 2 it's up to me to manage the content's images and choose the one I want to be controlled by the layout image option and place it in the article/item via the K2 editor tab. And this is different behavior from using Joomla content as the source.

Correct?

Also, please checkout the posts in this thread. There are other problems reported.

Thanks,

Jonathan
  • Jonathanne's Avatar
  • Jonathanne
  • 12 Month basic
  • 439 posts
  • 7 Thanks
  • Karma: 6
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers