Keyword

Featured Image

More
14 years 3 months ago #92623 by BBC
Replied by BBC on topic Featured Image
He.....go to your category in Admin Panel and enable everything for "Fatured" under Categor< and "Item view options in category listings" options.

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

  • NintendoNerds
  • NintendoNerds's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 3 months ago #92624 by NintendoNerds
Replied by NintendoNerds on topic Featured Image
Which options are you referring to?


i192.photobucket.com/albums/z133/nintendonerds/params.png

BBC said:

He.....go to your category in Admin Panel and enable everything for "Fatured" under Categor< and "Item view options in category listings" options.

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

More
14 years 3 months ago #92625 by BBC
Replied by BBC on topic Featured Image
"Item view options in category listings"
'Featured' notice (next to title) -> show

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

  • NintendoNerds
  • NintendoNerds's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 3 months ago #92626 by NintendoNerds
Replied by NintendoNerds on topic Featured Image
It's already set to "show"

BBC said:
"Item view options in category listings" 'Featured' notice (next to title) -> show

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

More
14 years 3 months ago #92627 by Terry Britton
Replied by Terry Britton on topic Featured Image
Yes you can do that. You'll have to use an image instead of text and you'll have to place it in the category_item.php so that it shows up in that location. Use Firefox with Firebug and you can inspect the page and see the html and the css to give you an idea where you'll have to place the code to get the desired result. Following is my best guess without actually going in and trying it, plus it will be slightly different for different templates.

 

Put the following code in category_item.php right after <div class="catItemHeader">. Line 41 or so.

 

<?php if ($this->item->featured) : ?>

<img class="featured-image" src="/stories/icons/featured.jpg" alt="featured article"></img>

<?php endif; ?>

 

Change the path to match the location of your image and then add this css to your css file:

 

.featured image {float:right;z-index:99;}

 

The z-index probably isn't necessary, but it won't hurt anything. I like the look, and may steal this for my website.

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

More
14 years 3 months ago #92628 by BBC
Replied by BBC on topic Featured Image
Did you put your item as "Featured" ?

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

  • NintendoNerds
  • NintendoNerds's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 3 months ago #92629 by NintendoNerds
Replied by NintendoNerds on topic Featured Image
Yes. I'm gonna try to follow what Terry suggested...if I can find that file LOL

BBC said:
Did you put your item as "Featured" ?

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

More
14 years 3 months ago #92630 by BBC
Replied by BBC on topic Featured Image
I don´t know why, it seems that your template is overriding:
background: url("../images/system/featuredItem.png") no-repeat scroll 100% 0 transparent;

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

More
14 years 3 months ago #92631 by BBC
Replied by BBC on topic Featured Image
It wont help you. Terry misunderstod you.

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

  • NintendoNerds
  • NintendoNerds's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 3 months ago #92632 by NintendoNerds
Replied by NintendoNerds on topic Featured Image
Hmm...OK Well, I'm not sure what to do next then :D

BBC said:
It wont help you. Terry misunderstod you.

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

More
14 years 3 months ago #92633 by BBC
Replied by BBC on topic Featured Image
In your template folder css/extended,css..............line 231.
There is template´s #itemListPrimary .catItemView that conflicts with K2 featured CSS styling.

If you remove it image shows. But you lose background of category listing blocks.

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

More
14 years 3 months ago #92634 by Terry Britton
Replied by Terry Britton on topic Featured Image
What I said in my last post will look exactly like the link to the image you provided.Kevin McMinn said:
Hmm...OK Well, I'm not sure what to do next then :DBBC said:It wont help you. Terry misunderstod you.

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

  • NintendoNerds
  • NintendoNerds's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 3 months ago #92635 by NintendoNerds
Replied by NintendoNerds on topic Featured Image
I guess I can give it a shot. I mean, what could it hurt? Where is this file located?

category_item.php
Terry A Britton said:

What I said in my last post will look exactly like the link to the image you provided.Kevin McMinn said:Hmm...OK Well, I'm not sure what to do next then :DBBC said:It wont help you. Terry misunderstod you.

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

More
14 years 3 months ago #92636 by Terry Britton
Replied by Terry Britton on topic Featured Image
Just backup your files first. If you're using template overrides it will be in /templates/name-of-your-template/html/com_k2/templates/default (if you're set to use the default image in the K2 backend). If not it will be in /components/com_k2/templates/default (if you're using the default template).Kevin McMinn said:
I guess I can give it a shot. I mean, what could it hurt? Where is this file located?

category_item.phpTerry A Britton said:

What I said in my last post will look exactly like the link to the image you provided.Kevin McMinn said:Hmm...OK Well, I'm not sure what to do next then :DBBC said:It wont help you. Terry misunderstod you.

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


Powered by Kunena Forum