HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Search block that lists results like MAIN_RECENT_CC_ENTRIES block does

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#59574 (In Topic #12971)
Avatar

Community saint

Search block that lists results like MAIN_RECENT_CC_ENTRIES block does

I'm hoping this is simple to someone. I have looked through the topics archives to find someone else's solution to my question but no luck so here goes.

I can use the MAIN_SEARCH block to get the information I want but I want to use a search function like the MAIN_SEARCH block to find that information and then list it without a visitor initiating the search - I want it to just happen.

I want it to use predetermined search words. In other words I want it to look and act like like the MAIN_RECENT_CC_ENTRIES block does, which displays results based on your predetermined paramaters, so the block wouldn't need a site visitor to tell it what to look for because it already knows.

I would use the the MAIN_RECENT_CC_ENTRIES block but I don't think it does these 2 things without modifying it:
  • Let you start at the CATALOGUE level and dig down through all the CATEGORIES under that CATALOGUE to all of the ENTRIEs under all the CATEGORIES.
  • search the ENTRIES by keywords and display the result.
The MAIN_SEARCH block will do these 2 things but it needs outside input to initiate the search. I want the search to show up as a list when the page is accessed.

So has anyone created a function like this? or what would need to be done to create this kind of block?


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#59606
Avatar

Community saint

Hi Friendly! Have you tried crafting your desired search, selecting desired searched locations, executing it, then copying the URL and using as the basis for a link in a menu somewhere? I have tested this and it works AOK here:

Code

http://xxxx.com/site/index.php?page=search&type=results&keep_cedi_root=30&content=this+is+a+test&author=&days=60&sort=relevance&direction=DESC&search_cedi_pages=1&search_iotds=1&search_download_categories=1&search_polls=1&search_downloads=1&search_news=1&search_galleries=1&search_videos=1&search_images=1

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#59615
Avatar

Community saint

Cool, thanks for this info. If I put the URL info in as a link, it will take me to the info on another page, good but I am searching how to display info on the same page as linked list - when the page opens.


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#59627
Avatar

Community saint

Couple of options that might work then Friendly:

1) Use the much abused and unfortunately maligned iframe.

2) Put your search linkage on a top menu where it is visible on every page including the search results page.

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: