- Posts: 21
COMMUNITY FORUM
[SOLVED] Use content image in Category blog
- Ali Can
-
Topic Author
- Offline
- Junior Member
Less
More
10 years 10 months ago #129877
by Ali Can
[SOLVED] Use content image in Category blog was created by Ali Can
Hello
Ive imported content into K2
I now want to use first IMG in category blog in K2.
is it possible ??
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.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
10 years 10 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?
Please Log in or Create an account to join the conversation.
- Ali Can
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
10 years 10 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
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.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
10 years 10 months ago #129880
by Lefteris
Replied by Lefteris on topic Re: Use content image in Category blog
Then probably you need this getk2.org/extend/extensions/616-iaki-import-as-k2-image .
Please Log in or Create an account to join the conversation.
- Ali Can
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
10 years 10 months ago #129881
by Ali Can
Replied by Ali Can on topic Re: Use content image in Category blog
this workd fine with " item " layout
antalyasolu.org/5-ortak-etkinlikler/unutmadik-unutturmayacagiz-dp1
but not in category blog antalyasolu.org/26-haberler/5-ortak-etkinlikler
antalyasolu.org/5-ortak-etkinlikler/unutmadik-unutturmayacagiz-dp1
but not in category blog antalyasolu.org/26-haberler/5-ortak-etkinlikler
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
10 years 10 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?
Please Log in or Create an account to join the conversation.
- Ali Can
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
10 years 10 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
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.