Link to specific Hub Search Result page

Link to specific Hub Search Result page

by Chris Kenniburg -
Number of replies: 1
Picture of Particularly helpful Moodlers Picture of Plugin developers

Is it possible to link to a search page for a specific hub - a private hub in this case ?

I'd like to skip the page where you have to pick a hub and take them directly to a search form for a specific hub.

Is it doable and if so how?  

My initial thought was to put the search code into a Page resource and allow them to use that.  But I know it will break once the search is performed.  Would love for it to automatically take them to the community finder page once the search is performed.

I am kinda fooling around with page source and trying to find the proper code stuff with no luck on the community search pages..

Average of ratings: -
In reply to Chris Kenniburg

Re: Link to specific Hub Search Result page

by Chris Kenniburg -
Picture of Particularly helpful Moodlers Picture of Plugin developers

I am trying to focus our staff on finding only our hub. 

I did find this in lib/moodlelib.php

/**
* Hub directory url (should be moodle.org)
*/
define('HUB_HUBDIRECTORYURL', "http://hubdirectory.moodle.org");


/**
* Moodle.org url (should be moodle.org)
*/
define('HUB_MOODLEORGHUBURL', "http://hub.moodle.org");

 

I tried changing this to point to my hub and it threw back an error.

 Would be nice to lock it down and limit access to one hub.