Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Only on Category Pages  (Read 1772 times)

bobcat

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 67
    • ESL Jobs by Country
Only on Category Pages
« on: May 23, 2007, 04:44:01 pm »

Been racking my brains for hours trying to make this work, but my very php knowledge has got me nowhere.

I am trying to get something display only on category index pages (not articles and not 'home' category)

I already have
             ... ...          

to display only in 'home' category and not the others.

Now i need the exact opposite.

Display only on the other category pages (e.g. cat 1, cat 2, cat 3, etc) - but not on 'home'



Thank you so much if anyone can help   :|

bramsyuur

  • Hero Member
  • *****
  • Karma: 23
  • Posts: 873
    • http://snews.vietbee.net
Only on Category Pages
« Reply #1 on: May 23, 2007, 04:50:28 pm »

Try with something like:
Quote
"" AND get_id('category') <> "home" {  ?> ....... ......  
Logged
La comunidad sNews en tu idioma!
Comunidad sNews en Espaņol

bobcat

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 67
    • ESL Jobs by Country
Only on Category Pages
« Reply #2 on: May 24, 2007, 01:20:52 am »

Thanks for the reply Bram but it didn't work.

I however got it work with a if/else statement


So much time wasted, yet so very very simple.. doh  :|