Keyword

Different CSS for "private" news ?!

  • Alexandre Witschi
  • Alexandre Witschi's Avatar Topic Author
  • Offline
  • New Member
More
14 years 4 months ago #76279 by Alexandre Witschi
Different CSS for "private" news ?! was created by Alexandre Witschi
Hi there,

My client wants a news system which includes public and "private" news for his registrered users to see.

I created 2 categories, one being "news" and one being "private", and so far, works like a charm ;)

Here's where I gets tricky for me!
My clients wants a visual effect to differenciate public from private news in the general news display system (like a yellow background color instead of a white one). This can be easaly done on CSS,It only requires a change on the class attribute of the item ! But.. WHERE?!

I tried creating a new category template, but it's not working (I works on the detail page).
I searched every option in the K2 component, I cannot find anything that allows me do add an extra class to my category.

Then, What should I do to make this work??? Here's a screenshot, too
Attachments:

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

More
14 years 4 months ago #76280 by FeSys
Replied by FeSys on topic Different CSS for "private" news ?!
Hello MorZar..
I have the same problem in the past..
I did solve it the easy and quick way..
Just download this free secure and well done component
Content Templater..
And you are done.

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

  • Alexandre Witschi
  • Alexandre Witschi's Avatar Topic Author
  • Offline
  • New Member
More
14 years 4 months ago #76281 by Alexandre Witschi
Replied by Alexandre Witschi on topic Different CSS for "private" news ?!
Hi bot,
No I'm not interessted in installing another additional component that will slow down my site. Instead, I think someone nice here will post about a little "hack" to do, to help me achieve that!

Followeyes said:Hello MorZar.. I have the same problem in the past..
I did solve it the easy and quick way..
Just download this free secure and well done component
Content Templater..
And you are done.

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

More
14 years 4 months ago #76282 by troponin

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

  • Alexandre Witschi
  • Alexandre Witschi's Avatar Topic Author
  • Offline
  • New Member
More
14 years 4 months ago #76283 by Alexandre Witschi
Replied by Alexandre Witschi on topic Different CSS for "private" news ?!
Hi,

In fact it answers another question, but not the one I'm asking!
This souldnt be a pain to achieve...

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

More
14 years 4 months ago #76284 by troponin
Replied by troponin on topic Different CSS for "private" news ?!
I think it is. The template roots to the same CSS.

IMHO it will be solved in K2 2.2

MorZar said:Hi,
In fact it answers another question, but not the one I'm asking!
This souldnt be a pain to achieve...

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

More
14 years 4 months ago #76285 by bkemler
Replied by bkemler on topic Different CSS for "private" news ?!
If I understand your question correctly, you just have to edit the category_item.php file for the category template. Change the class of the catItemView div.

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


Powered by Kunena Forum