Keyword

Image before title

  • Wilfred Hilbers
  • Wilfred Hilbers's Avatar Topic Author
  • Offline
  • New Member
More
13 years 2 months ago #98753 by Wilfred Hilbers
Image before title was created by Wilfred Hilbers
Started with K2 recent. I'm looking for a way to put the main image left from the title. Is it possible, do I need a specific template or can it be done in the K2 template.

 

Thanks.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 2 months ago #98754 by Yiota
Replied by Yiota on topic Image before title
First you need to create a K2 override, read here. Then all you have to do is to edit the item.php an relocate the blocks. Move the image block before the itemHeader, for example or inside the itemHeader, but before the itemTitle, and so on. You will probably have to edit the CSS file also.

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

  • Wilfred Hilbers
  • Wilfred Hilbers's Avatar Topic Author
  • Offline
  • New Member
More
13 years 2 months ago #98755 by Wilfred Hilbers
Replied by Wilfred Hilbers on topic Image before title
Thanks, the first part (override) succeeded. Can you tel me which item.php I have to edit?

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 2 months ago #98756 by Yiota
Replied by Yiota on topic Image before title
Inside the templates/default/item.php in templates/Your template/html/com_k2/.

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

  • Wilfred Hilbers
  • Wilfred Hilbers's Avatar Topic Author
  • Offline
  • New Member
More
13 years 2 months ago #98757 by Wilfred Hilbers
Replied by Wilfred Hilbers on topic Image before title
It worked outfine, thanks a lot. Php is new for me (trial and error). I still have to edit the CSS.

 

I also wanted it for the category_item view, but that doesn't seem to work. I moved CatItemImageblock before CatItemheader but then my total layout disappears and only the header stays. Can you tell me what's wrong?

 

 

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 2 months ago #98758 by Yiota
Replied by Yiota on topic Image before title
Check if you have left any tags open or an if that closes to the wrong place.

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

  • Wilfred Hilbers
  • Wilfred Hilbers's Avatar Topic Author
  • Offline
  • New Member
More
13 years 2 months ago #98759 by Wilfred Hilbers
Replied by Wilfred Hilbers on topic Image before title
It worked!, installed another editor, Notepad++, cut and paste and ready. Thanks a lot again!!!

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


Powered by Kunena Forum