Advertisement:

Author Topic: How to display specific messages on the search pages depending on categories?  (Read 1332 times)

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
Hi

Can someone point me in the right direction as how I can display specific messages on the search pages depending on categories?

Many thanks!

Pa2jack

  • Newbie
  • *
  • Posts: 47
@ Britweb,

 I don't understand your question. Maybe there's some people out there who knows the answer but the question is unclear  . Maybe you could elaborate it more or make an snap shot..

Thanks


frosticek

  • Hero Member
  • *****
  • Posts: 3948
@BritWeb
use function osc_search_category_id()
http://doc.osclass.org/HSearch.php

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
Thank you, frosticek, for the link. I think I will work it out.

Hi Pa2jack, if the search result page displays all the ads on 'House for Rent', then there should be a relevant message at the top of the search results. Hope that's clear!

Regards

Pa2jack

  • Newbie
  • *
  • Posts: 47
@ britweb hello,

Hey, I'm continuously learning. Maybe the term, I still don't get it. Just new guy here been active for couple of days. I learned more a lot and gain more friends.

@ frosticek, you're everywhere.. Thanks for the link.

frosticek

  • Hero Member
  • *****
  • Posts: 3948
@BritWeb
Maybe you could place the message into category description?

@Pa2jack
I am like a tumor  ::)

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
@BritWeb
Maybe you could place the message into category description?

@Pa2jack
I am like a tumor  ::)

That's exactly what I wanted to do. Any pointers as how I can achieve this?

Thanks

frosticek

  • Hero Member
  • *****
  • Posts: 3948
@BritWeb
Easily:
oc-admin > Settings > Categories > Edit > Description

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
Not exactly what I have got in mind. Thanks anyway!