General developer forum

Hub customized url for publishing

 
Picture of Marijan Milovec
Hub customized url for publishing
 

Hello, I have already written about problems that I had.

So I made some advancing about that. 

I have a hub on Moodle 3.3 and on another site I have alfresco which let's say in current time isn't for now so important but it will be.

I was able to change in Moodle database table url where the hub is publishing. 

I want for now publish from Moodle in an empty .txt file so that I can see what metadata will Moodle produce so that I can write some script which will then send this to the alfresco customized site, which is REST API:

Of course, now I am getting an error when I try to publish to that empty file because I guess that Moodle is expecting some response and since the file is empty there is no response.

So in short:

I have customized url in Moodle where to publish something from Moodle, and this url is going now to an empty .txt file, and later this should be some script that will receive moodle metadata when something from Moodle is published and then this script will send this to alfresco customized REST API.

Did anyone has a similar problem, or it knows how to do it. I find files which was responsible for publishing, it is hubselector.php and metadata.php and they are in /var/www/moodle/moodle/course/publish folder


Thank you.

 
Average of ratings: -
Picture of Ken Task
Re: Hub customized url for publishing
Particularly helpful Moodlers

https://moodle.org/plugins/local_hub

says:

"This is an archive version of the plugin implementing the server side of the Moodle Hub framework. It was used at moodle.net (and eventually some other community hubs).

No longer supported With the latest development and improvements to moodle.net, this plugin should be considered as outdated, deprecated and no longer maintained."

https://github.com/moodlehq/moodle-local_hub

In moodle, when one published from a regular Moodle to a Moodle hub, it was a no user backup of a course .... not a single file.   That's from memory as I no longer run a Moodle HUB.

Question ... why are you trying to go through a Moodle HUB to get to an Alfresco?

See: https://docs.moodle.org/35/en/Alfresco_repository

"Warning! The Alfresco plugin does not work with Alfresco 5.0.c or later. The Alfresco repository has been removed from the standard Moodle 3.2."

https://github.com/moodlehq/moodle-repository_alfresco

And suggest that the best forum is the one for developers ... not general help! smile

Best of luck!

'spirit of sharing', Ken





 
Average of ratings: -
Picture of Marijan Milovec
Re: Hub customized url for publishing
 

Thank you for the answer.

Currently, I don't have any other options, Alfresco Repository is also removed from Moodle 3.2.


And for now I will have to use Hub which will publish to some script and then from this script to Alfresco, and also Alfresco on other site is customized and is REST API which can receive metadata so I hope this will work.

So now I should get somehow that Moodle Hub publish in my empty file. And i should find out what moodle is expecting as response. 

I will try with moodle developers smile

 
Average of ratings: -
Picture of Marijan Milovec
Re: Hub customized url for publishing
 

Can a moderator move this topic to developer forum, please?

Thank you.


 
Average of ratings: -
Picture of Howard Miller
Re: Hub customized url for publishing
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

Moved to Developer forum....

(I deleted your posting in the Developer forum)

 
Average of ratings: -