Keyword

<img> Image in Intro Text not shown

  • Daniel
  • Daniel's Avatar Topic Author
  • Offline
  • New Member
More
10 years 9 months ago #115744 by Daniel
<img> Image in Intro Text not shown was created by Daniel
Hello K2 Community,

i have a problem with images in the intro text area - it is from an old installation so some images are directly inside the text with <img> - tag

I already checked if content cleanup is not activated and it isn't - i already tried to enable it and take the img tag out. but the image (which is shown in full article view) is not shown in intro text.

i hope you can help me to find a solution quick.

thank you

daniel

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 9 months ago #115745 by Yiota
Replied by Yiota on topic Re: <img> Image in Intro Text not shown
If you have set the Introtext limit for your itemlists then the image won't show. When the word limit is Enabled all HTML is stripped to avoid breaking the markup.

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

  • Daniel
  • Daniel's Avatar Topic Author
  • Offline
  • New Member
More
10 years 9 months ago #115746 by Daniel
Replied by Daniel on topic Re: <img> Image in Intro Text not shown
at first, thank you for your answer.

hmm ok - and is there a possibility to use html (maybe only img) and the limit at a time?

because if I deactivate the limit the whole article is shown..and again - to set the read-more manually is pretty much work

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 9 months ago #115747 by Yiota
Replied by Yiota on topic Re: <img> Image in Intro Text not shown
I'm afraid that you can't. It's either the one or the other option.
Why don't you just use the K2 image to load your item's image instead of putting it inside the introtext? Then you could have the image and introtext with limit.

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

  • Daniel
  • Daniel's Avatar Topic Author
  • Offline
  • New Member
More
10 years 9 months ago #115748 by Daniel
Replied by Daniel on topic Re: <img> Image in Intro Text not shown
hmm ok.

because the images had been in the source for long time now and i think it is much more work to specify the image new in each article than put the read-more manually and deactivate the limit.

in new Articles I use K2 images already it's only the problem with the old ones.
ah and another question just came up in connection with the K2 image.

how can I change the position to the left?

thank you for your help.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 9 months ago - 10 years 9 months ago #115749 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: <img> Image in Intro Text not shown
Hello Daniel,

Depending on how many images you have in your introtext you can try setting a float: left to them.

For multiple images
div.catItemIntroText img:first-of-type { float: left; margin: 0 10px 10px; }

For ALL Images
div.catItemIntroText img { float: left; margin: 0 10px 10px; }

PS. If you have altered your template you might need to replace .catItemIntroText with the appropriate class.

Another quick and dirty solution is to experiment with this extension.
getk2.org/extend/extensions/616-iaki-import-as-k2-image

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

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

  • Daniel
  • Daniel's Avatar Topic Author
  • Offline
  • New Member
More
10 years 9 months ago #115750 by Daniel
Replied by Daniel on topic Re: <img> Image in Intro Text not shown
Hey Krikor, thank you.
I already tried that...
...but I mean if I put an article Image (there is only one Image possible), it is shown under the article-title and above the introtext - in the middle
how can i put that image on the right or left of the introtext?

and just to be sure, you mean /components/com_k2/k2.css ? :D

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 9 months ago #115751 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: <img> Image in Intro Text not shown
Hello Daniel,

k2.css is in fact in that folder but chances are your template uses its own version of k2.css.

If it doesn't you need to override this file. more info can be found here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

Did you try IAKI?

As for moving the image you have to open item.php locate the image block and move it where you want. No special skills are needed since the code is very well commented.
All you need to watch out is not to break any <?php if() ?> .. <?php endif; ?> checks.

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