Keyword

[SOLVED] Use content image in Category blog

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 3 months ago #129877 by Ali Can
Hello

Ive imported content into K2

I now want to use first IMG in category blog in K2.

is it possible ??

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

More
10 years 3 months ago #129878 by Lefteris
Replied by Lefteris on topic Re: Use content image in Category blog
Hi. I don't get the question. What do you mean when you say first image?

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

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

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 3 months ago #129879 by Ali Can
Replied by Ali Can on topic Re: Use content image in Category blog
hi again

I imported from content component

and all content is like

<img src="xxx" /> here is the content bla bla....

so this is imported to K2 as is.

when I create 2 column category blog it cleans html and gets only " text" ..


I need a php sniplet that will take my introtext search for " img " tag then give me the part between src"xxxx" like $imgsrc = /images/stories/adsf.jpg

I hope I can explain what I need

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

More
10 years 3 months ago #129880 by Lefteris
Replied by Lefteris on topic Re: Use content image in Category blog

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

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

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 3 months ago #129881 by Ali Can

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

More
10 years 3 months ago #129882 by Lefteris
Replied by Lefteris on topic Re: Use content image in Category blog
Have you setup the category to show item images?

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

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

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 3 months ago #129883 by Ali Can
Replied by Ali Can on topic Re: Use content image in Category blog
it was set show.

But I erased my K2 template in html folder of my template, Also I delete the menu item of categori and recreate.

it now works.

www.antalyasolu.org/63-haberler/42-ortak-etkinlikler

thanks very much

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


Powered by Kunena Forum