Simple Alfresco tie-in

Simple Alfresco tie-in

by Jon Cochran -
Number of replies: 28
Hi,

We've been looking at a quick and easy way to allow our teachers to add content to Moodle from a network drive, and the best candidate to fill that bill seems to be Alfresco. But, afaik, there's really no way to point Moodle towards Alfresco, or vice versa.

So, with that in mind, I've created a *very* simple tie-in for the two. It allows teachers to "Link to an Alfresco resource" when they add a resource to a class (which is where I think we'll see 90% of our CMS usage). It simply adds the URL of the alfresco resource to Moodle, so it's pretty clean and simple. It does assume that the file to be linked to in Alfresco has "guest/consumer" privileges, but if that's sorted, it works pretty well.

The code is fairly simple, it touches 3 files on the Moodle side, and 2 on the Alfresco side (sample portlets). What I'd really be interested in is anyone with some Alfresco skills to chime in about how I can automate creating a 'public' folder with 'guest/consumer' privileges in Alfresco. It should also go without saying that I'm willing to share what I've done with anyone who wants it and will hopefully improve it. smile

Thanks,

Jon
Average of ratings: -
In reply to Jon Cochran

Re: Simple Alfresco tie-in

by Geoffrey Rowland -
Picture of Plugin developers

Hi Jon

We have also been considering using Alfresco as an in-house, Moodle-linked repository (not yet got past the considering stage sad) so would be very interested in your tie-in. Are you planning to release your code? e.g. to the Modules & Plugins Database

I'm afraid I can't contribute any Alfresco expertise, apart from the obvious comment that it would be good if any developments were compatible with the proposed Repository API being developed for Moodle 2.0 (expected late 2008?)

Regards

Geoff

In reply to Geoffrey Rowland

Re: Simple Alfresco tie-in

by Jon Cochran -
Well, I'd post the code here or email it, but it's not a module. It's a tie-in to the regular Moodle file manager.. not sure how to seperate that out into a regular module, or even if it's possible to do so.

I'm also waiting on the Repository API, which is why my tie-in is quick and dirty and files tied-in should continue to work once we abandon it and use the regular API. We just couldn't wait until late 2008.
In reply to Jon Cochran

Re: Simple Alfresco tie-in

by Geoffrey Rowland -
Picture of Plugin developers

I presume then it would be a new (or modified) Resource Type. e.g. one would add a link to an Alfresco object in a Moodle course by selecting :

Add a resource... >> Link to an Alfresco Object

or

Add a resource... >> Link to a file or website >> then select form options to link to an Alfresco Object.

or something similar. So I suppose most of the code would be either changes to the contents of the /moodle/mod/resource/type/file/ folder or a new /moodle/mod/resource/type/alfresco/ folder - together with any necessary changes to other Moodle and Alfresco components.

Perhaps take a look at the DOOR integration (which also includes a block to transfer objects from Moodle to DOOR) which does a similar job.

Anyway, feel free to zip your code up with instructions, and either attach it to a forum posting or submit it to the Modules & Plugins database. Either way you should get some constructive feedback. I'll certainly have a play with it as soon as I have set up an Alfresco server!

Geoff

In reply to Geoffrey Rowland

Re: Simple Alfresco tie-in

by Jon Cochran -

That's exactly how I've done it...

I've basically added a button that launches an Alfresco Scriptlet, and then posts the content URL back to Moodle once an item has been selected.

I'm not sure exactly how to post it, as it requires code on both the Moodle and Alfresco files... if nobody objects I'll just stick both in a zip file and open myself up to the slings and arrows of criticism. smile

One small caveat... It requires the creation of a custom space template, which I've done... but I have no idea how to package that at the moment.

One huge caveat... both Moodle and Alfresco *must* run on the same server for this to work, otherwise you'll run into Javascript security issues.
In reply to Jon Cochran

Re: Simple Alfresco tie-in

by Matt Campbell -
I, for one, am very interested in this - I'll just have to figure out how to get Alfresco running on a Linux box! (I've done it in Windows - it's the Java in Linux that gives me grief!)

I would suggest that you write a detailed readme, zip up your files, and do two thungs - upload it to the Modules & Plugins database as a major patch, and get in touch with Anthony Borrow to get this into the contrib CVS. You can send Anthony an IM here on Moodle, but I think the better method would be to go to the tracker and file a new issue for it - be sure to select contrib.

Thanks,

Matt
In reply to Jon Cochran

Re: Simple Alfresco tie-in

by Walter Brock -

Please post the code you used for this tie in.  I would dearly love to get this working at my school!

Thank You!

In reply to Walter Brock

Re: Simple Alfresco tie-in

by Jon Cochran -

Moodle/Alfresco integration...

Rather than post the files in a zip, I figured i'd just post the code changes here, as they're fairly minimal.

Assumptions:

  • Teachers have the same Moodle and Alfresco usernames.
  • Moodle and Alfresco are running on the SAME URL. Our setup is like this:
    • http://school/moodle
    • http://school/alfresco/

The code:

/lang/en_utf8/resource.php (you'll want to set this up according to your language)

$string['alfresco'] = 'Link to an alfresco resource';


/lib/form/choosecoursefile.php

(this is the modified function _createElements())

function _createElements() {
global $COURSE;
$this->_elements = array();

$this->_elements[0] =& MoodleQuickForm::createElement('text', 'value', '', array('size'=>'62'));
$this->_elements[1] =& MoodleQuickForm::createElement('button', 'popup', get_string('chooseafile', 'resource') .' ...');
//$this->_elements[2] =& MoodleQuickForm::createElement('static', 'break', '', '<BR>');
$this->_elements[3] =& MoodleQuickForm::createElement('button', 'Frescopopup', get_string('alfresco', 'resource'). ' ...');
 
 
$button =& $this->_elements[1];

if ($this->_options['courseid']!==null){
$courseid=$this->_options['courseid'];
} else {
$courseid=$COURSE->id;
}
// first find out the text field id - this is a bit hacky, is there a better way?
$choose = 'id_'.str_replace(array('[', ']'), array('_', ''), $this->getElementName(0));
$url="/files/index.php?id=$courseid&choose=".$choose;

if ($this->_options['options'] == 'none') {
$options = 'menubar=0,location=0,scrollbars,resizable,width='. $this->_options['width'] .',height='. $this->_options['height'];
}else{
$options = $this->_options['options'];
}
$fullscreen = 0;

$buttonattributes = array('title'=>get_string("chooseafile", "resource"),
'onclick'=>"return openpopup('$url', '".$button->getName()."', '$options', $fullscreen);");

$button->updateAttributes($buttonattributes);
 
 
global $USER;
//Handle the alfresco button elements.
$button =& $this->_elements[3];
$url="http://school/alfresco/service/ui/myspaces?f=0&p=%2FCompany%20Home%2FUser%20Homes%2F$USER->username%2F&guest=";
if ($this->_options['options'] == 'none') {
$options = 'menubar=0,location=0,scrollbars,resizable,width='. $this->_options['width'] .',height='. $this->_options['height'];
}else{
$options = $this->_options['options'];
}
$fullscreen = 0;

$buttonattributes = array('title'=>get_string("alfresco", "resource"),
'onclick'=>"return openExtpopup('$url', '".$button->getName()."', '$options', $fullscreen);");
 
$button->updateAttributes($buttonattributes);
 
//End of the alfresco modifications
}


/lib/javascript.php

function openExtpopup(url,name,options,fullscreen) {
 
windowobj = window.open(url,name,options);
if (fullscreen) {
windowobj.moveTo(0,0);
windowobj.resizeTo(screen.availWidth,screen.availHeight);
}
windowobj.focus();
return false;
}




On the Alfresco side, you'll want to create a copy of the 'MySpaces' portlet/template, and this is the only change you'll need. (Or, you can just modify the default if you don't plan on using it for anything else) In the copied "myspacespanel.get.html.flt" you'll need to change the section that starts with <#if d.isDocument> to look like this:

<#if d.isDocument>
<a href="#" onclick="opener.document.getElementById('id_reference_value').value ='${url.context}${d.url}';event.cancelBubble=true;self.close();"><img class="spaceIconImage" alt="" width="16" height="16" src="${url.context}${d.icon16?replace(".gif",".png")}" border=0></a>
<#else>




Implementation:

I've created an Alfresco template for teachers which automatically creates a Moodle folder for them in their homespace, and assigns permission to allow the outside world to access items in their moodle folder. We've then mounted their Alfresco home folder to their tablet PCs, which gives the ability to drag and drop files to their Moodle course, and then point the course resources to those files.

The MySpaces portlet also supports uploading via the web, so teachers still have the ability to add documents from home.


Questions/comments/critism? I'd love the first two, and be kind with the third. smile
Average of ratings: Useful (2)
In reply to Jon Cochran

Re: Simple Alfresco tie-in

by Geoffrey Rowland -
Picture of Plugin developers
Hi Jon

A huge thanks for this cool

We have just setup a similar system to the one you describe with Alfresco 2.1 and Moodle 1.9.1 running on the same server (CentOS Linux 5).

However, as comparative newbies to Tomcat & Alfresco, we could do with a little more detail on the Alfresco-side of things. I realise that this forum may not be the ideal place for this, but suspect that other Moodle users 'dipping their toes in the waters of repositories' may benefit too. So here are a couple of questions:

  1. How, precisely, did you.. 'clone' the MySpaces portlet/template? What exactly (folders? files?) needs to be copied and renamed?
  2. How precisely did you.. setup an Alfresco template for teachers which automatically creates a Moodle folder for them in their homespace, and assigns permission to allow the outside world to access items in their moodle folder.
Thanks in advance

Geoff
In reply to Geoffrey Rowland

Re: Simple Alfresco tie-in

by Mike Waters -
I took it upon myself to follow this up and have some good news - I managed to get this working, and as an added bonus, it works across domains! This means you don't have to muck about with mod_jk or whatever to get both Alfresco and Moodle running on the same url.

First thing to say is that this would not have been possible without the OP's code so thanks again to Jon Cochran. Fantastic work - still would love to know more about your Alfresco template for teachers.

Here's what I did:

Step 1. Follow the instructions in this thread to modify the PHP code.

Note you must change this line to match your alfresco installation. replace school with your domain and port.

$url="http://school/alfresco/service/ui/myspaces?f=0&p=%2FCompany%20Home%2FUser%20Homes%2F$USER->username%2F&guest=";

Step 2. save the following code in your Moodle installation

/mod/resource/type/repository/generic/makelink.php

you will need to create the containing directory.

<?php
 require_once('../../../../../config.php');
 print_header();
 $alfresco_url = optional_param('repo_item_url', '', PARAM_RAW);
 $alfresco_title = optional_param('repo_item_title', '', PARAM_RAW);
?>
This page should have populated the add resource form with the url to the Repository item.<br /><br />
<a href="#" Xonclick="window.close();">If this window does not close on its own, please click here.</a>
<script type="text/javascript">
//<![CDATA[
 opener.document.getElementById('id_reference_value').value = '<?php echo addslashes_js($repo_item_url) ?>';
 opener.document.getElementById('id_name').value = '<?php echo addslashes_js($repo_item_title) ?>';
 opener.focus();
 window.close();
//]]>
</script>
<? print_footer(); ?>


Step 3. On the Alfresco Side, this has changed since Jon did it, The following applies at least for the latest HEAD code at the time of writing.

In your tomcat installation locate the file

/webapps/alfresco/WEB-INF/classes/alfresco/templates/client/myspaces_preview_panel.ftl

Add the following code between the comments, the bit before is to help you find it. In my installation it starts at line 20. Note that you must change the href to point to makelink.php in your moodle installation. You also have to change the prefix on the repo_item_url parameter to point to your Alfresco installation. Also be careful of url encoding issues...

 <#if c.isDocument || c.isContainer>
 <div style="padding:2px">
 <a class="childSpaceLink" href="${url.context}${c.url}" target="new">
 <img class="spaceImageIcon" src="${url.context}${c.icon16}" border="0">${c.name}</a>
 <#-- MOODLE INTEGRATION - LINK TO CALL A URL THAT POPULATES THE LINK IN MOODLE FORM -->
 <a style="padding-left:5px" class="childSpaceLink"
 href="http://moodle.keembay.com/moodle/mod/resource/type/repository/generic/makelink.php?repo_item_url=http://alfresco.keembay.com${url.context}${c.url}&repo_item_title=${c.name}">
 Send Link To Moodle</a>
 <#-- END MOODLE INTEGRATION -->
 </div>
 </#if>


What this does is add a link next to the file name in the alfresco page that calls the makelink.php, passing in the url and title. Then makelink.php populates the form and disappears. Its all in the moodle domain so no cross domain issues!

Your changes should appear without any restarts, just like in PHP, if not then start troubleshooting.

If they do then give it a whirl - you should be able to just click the link on the Add Resource page in Moodle, and it should pop up the Alfresco space browser, you should get a "Send link to Moodle" option and it should populate your form. Give yourself a pat on the back, show your boss and ask for a raise.

Issues

Apologies for the primitive PHP - and if anyone can tell me how to persuade the form to let you click the button without putting something in the title...

It might be a brittle solution on the Alfresco side, but you can make your own extension that is protected from code changes.

Authentication

If you want to secure your resources in Alfresco then you need single sign on. I use CAS and there is plenty on information about setting up CAS for both Moodle and Alfresco. eg http://wiki.alfresco.com/wiki/Central_Authentication_Service_Configuration


Average of ratings: Useful (1)
In reply to Mike Waters

Re: Simple Alfresco tie-in

by Geoffrey Rowland -
Picture of Plugin developers

Mike

Thanks for taking this forward and making your code available to the community. Seems to address two issues I had noticed, updated Alfresco code and retrieving the URL of an Alfresco resource into Moodle.

As soon as I have finished marking my latest batch of student work, I hope to have a play with this. Suspect I'll be back with some questions...

In reply to Geoffrey Rowland

Re: Simple Alfresco tie-in

by Mike Waters -
Fire away, Geoff! Happy to help.

One thing I noticed is that this forum put a big X in front of the string "onclick", so make sure you double check the javascript and the rest of the code.

Another thing to mention is that the code for ALfresco2.1 CE looks very similar so the instructions should work with that version too.

When I get a moment I'll submit this to JIRA. One good thing about this integration is that it is generic and can work with any system that can be made to call the makelink.php with a url and a title. That should make it a candidate for inclusion in the core codebase, once we add code to show/hide the button via configuration.

cheers

-Mike
In reply to Mike Waters

Re: Simple Alfresco tie-in

by Jon Cochran -

Hey..

I'm happy someone else out there found the code useful enough to extend and improve.

The teacher templates that I had previously mentioned are pretty simple.. the teachers run the "Create Advanced Space" wizard and the template runs and creates a "Moodle" folder which has the appropriate everybody/guest permissions set.

I am trying to work on automating the template to run alongside of LDAP, which in theory should automatically create the "Moodle" space for a teacher the first time they authenticate via LDAP.

In theory.. smile
In reply to Mike Waters

Re: Simple Alfresco tie-in

by Derrin Kent -
Hi,

Thanks for the code; it was a great starting point - unfortunately you'd made a few typos, which tripped us up a little smile

So; here's (hopefully) a more complete(?) version -

1. /mod/resource/type/repository/generic/makelink.php

<?php
require_once('../../../../../config.php');
print_header();
$alfresco_url = optional_param('repo_item_url', '', PARAM_RAW);
$alfresco_title = optional_param('repo_item_title', '', PARAM_RAW);
?>
This page should have populated the add resource form with the url to the Repository item.<br /><br />
<a href="#" Xonclick="window.close();">If this window does not close on its own, please click here.</a>
<script type="text/javascript">
//<![CDATA[
opener.document.getElementById('id_reference_value').value = '<?php echo addslashes_js($alfresco_url) ?>';
opener.document.getElementById('id_name').value = '<?php echo addslashes_js($alfresco_title) ?>';
opener.focus();
window.close();
//]]>
</script>
<?php echo print_footer(); ?>

(You'd used the variables repo_item_url and repo_item_title instead of alfresco_title and alfresco_url in the Javascript near the end).

2. The changes to /lib/form/choosecoursefile.php -

Don't use :
$button =& $this->_elements[1];
Use :
$button = $this->_elements[1];

(Note the &) - we found that we had two buttons for the Alfresco tie in, not one, and they both had the same action/effect - until we removed the &.
(This was with PHP 5.2.3, YMMV with other PHP versions - perhaps?)

3. The changes to Alfresco's ...../templates/client/myspaces_preview_panel.ftl: (you'd typo'ed this into .flt), at approx line 33 :

<table width="100%" cellpadding="0" cellspacing="0">
<#assign navurl='/navigate/showDocDetails/' + node.nodeRef.storeRef.protocol + '/' + node.nodeRef.storeRef.identifier + '/' + node.nodeRef.id>
<#if node.isDocument>
<!-- Moodle link stuff -->
<tr><td>
<a style="padding-left:5px" class="childSpaceLink"
href="http://your.moodle.box/mod/resource/type/repository/generic/makelink.php?repo_item_url=http://data.accountancyplus.co.uk${url.context}${node.url}&repo_item_title=${node.name}"><strong>Send Link To Moodle</strong></a> </td> </tr>
<tr>
<!-- End Moodle link stuff -->
<#if node.isLocked>



Hope this is of some help to someone!
David Goodwin (pretending to be Derrin)
Average of ratings: Useful (1)
In reply to Derrin Kent

Re: Simple Alfresco tie-in

by Mike Waters -

Thanks for that David! I must admit it was posted in haste and I apologise for the wasted time. I will certainly be a bit more careful in future. But thanks for posting the corrections - that's what the community is all about!

cheers

-Mike

In reply to Mike Waters

Re: Simple Alfresco tie-in

by Derrin Kent -
Thank YOU Mike for the inspiration in the first place.

Derrin & David.
In reply to Derrin Kent

Re: Simple Alfresco tie-in

by Geoffrey Rowland -
Picture of Plugin developers
May I add my thanks to all four of you - Jon, Mike, Derrin & David - for moving this forward. As a direct result, we have just got our first Moodle-Alfresco integration working cool.

Already starting to do rather neat things such as using Alfresco to automatically transform PowerPoint resources into 'lightweight' Flash format that can then be easily shared across Moodle courses.

For anyone starting with Alfresco (like us), I would certainly recommend this (the only?) Alfresco book. The Alfresco community website also has some good support and information, but it is a bit fragmented.

Is anyone actively working on the integration of Alfresco and Moodle using the JSR170 interface? It is mentioned in the proposal for the Repository API and it appears that Than Le has already made considerable progress with this. But the thread seems to have petered out in recent times.

Again, thanks for all the work on this.

In reply to Geoffrey Rowland

Re: Simple Alfresco tie-in

by Geoffrey Rowland -
Picture of Plugin developers
Apologies. Got timed-out again mid edit blush. Here is the complete version...

May I add my thanks to all four of you - Jon, Mike, Derrin & David - for moving this forward. As a direct result, we have just got our first Moodle-Alfresco integration working cool.

Already starting to do rather neat things such as using Alfresco to automatically transform PowerPoint resources into 'lightweight' Flash format that can then be easily shared across Moodle courses.

For anyone else starting with Alfresco, I would certainly recommend this Alfresco book for a good introduction and overview. The Alfresco website also has some good support and information, but it is a bit fragmented.

Is anyone actively working on the further integration of Alfresco and Moodle using the JSR170 interface? It is mentioned in the proposal for the Repository API and it appears that Thanh Le has already made considerable progress with this. But the thread seems to have petered out in recent times sad.

Again, thanks for all the work on this.




In reply to Mike Waters

Re: Simple Alfresco tie-in

by Geoffrey Rowland -
Picture of Plugin developers
"...This means you don't have to muck about with mod_jk or whatever to get both Alfresco and Moodle running on the same url..."

As we are currently just testing Alfresco-Moodle integration, we have found it useful to have both systems running on the same server/domain name. The server is internally hosted, behind a firewall/router using NAT (internal IP address different from external IP address). In case it helps anyone else, here is how we have done it.

Moodle 1.9.1 installed in /var/www/html/moodle (CentOS 5 Linux) accessible from http://your.site.ac.uk/moodle

Alfresco 2.1 (community edition Tomcat bundle) in /opt/alfresco, initially accessible from http://your.site.ac.uk:8080/alfresco. Then used Apache mod_proxy to set up a reverse proxy. Add the following to httpd.conf:

<IfModule mod_proxy.c>
ProxyRequests Off
ProxyPass /alfresco http://InternalIPaddress:8080/alfresco
ProxyPassReverse /alfresco http://InternalIPaddress:8080/alfresco
</IfModule>

InternalIPaddress to be replaced with your actual internal IP address

After an Apache restart, Alfresco is now available on http://yoursite.ac.uk/alfresco. It can also be accessed from outside the NAT firewall/router on port 80 (i.e. without opening port:8080).

Not sure if this is the most sensible/secure/efficient way of doing this, compared with mod_jk, and would welcome the opinion of any Apache/Tomcat gurus (and use at your own risk, etc, etc wink). That said, it seems to be working for us...
Average of ratings: Useful (1)
In reply to Geoffrey Rowland

Re: Simple Alfresco tie-in

by Mike Waters -
Thanks for posting this information Geoffrey

In fact, this is exactly the "or whatever" I meant in my comment. (translation - I didn't know how to do it with mod_proxy - so thanks again!) Having said that I have read that the two approaches are comparable.

If you do run on the same domain you can avoid calling makelink.php and modify the fields in the moodle page directly from the alfresco page. It might make it easier to do other fun stuff via javascript too.

You say you found it useful - were there any other specific reasons?
In reply to Mike Waters

Re: Simple Alfresco tie-in

by Geoffrey Rowland -
Picture of Plugin developers
'Useful' in the sense that we only have one development server and domain to play with - so it was a convenient way to set up Moodle and Alfresco up on the same box. No other 'clever' reasons, I'm afraid. We are very much feeling our way with this Alfresco stuff.

Thanks for the tip about makelink.php, though in the longer term we may well need a separate Alfresco implementation so won't be too hasty in bypassing it.
In reply to Mike Waters

Re: Simple Alfresco tie-in

by Shawn Drake -

Thanks to all of you for sharing this code!! I do have some questions concerning it, though, that I hope someone may be able to help with.

In the following line in /lib/form/choosecoursefile.php:

$url="http://school/alfresco/service/ui/myspaces?f=0&p=%2FCompany%20Home%2FUser%20Homes%2F$USER->username%2F&guest=";

I've replaced "school" with our install info, but what would I use for $User if we wanted it to log everyone in each time using a generic account "Student" that would have read only permissions on Alfresco? I assume I would have to pass the password as well, so is there a way to pass it without showing it or possibly encrypt it?

Thanks very much for the assistance! I apologize in advance, I'm a novice. smile

Drake


In reply to Shawn Drake

Re: Simple Alfresco tie-in

by Julian Ridden -
Has there been any thought in redoing this using the new Moodle repository API's in Moodle 2.0? Would be a perfect way for a tie in without all the hacking of Moodle core code.

In reply to Julian Ridden

Re: Simple Alfresco tie-in

by Geoffrey Rowland -
Picture of Plugin developers
I'm also very interested in hooking Alfresco up to the new Moodle 2.0 repository API. May even have a go myself or, more likely, get a computing student to look at it as a project wink. However, this is unlikely to occur for a month or two, so I would encourage anyone else to get started in the meantime, if they haven't already. Will be happy to test and feedback about any developments.

As an aside, the existing 'hacks' in this forum also work, in my hands at least, for the recently released Alfresco Labs (Community) 3 beta.

Although we have not experienced any issues with Moodle and MySQL there are some reasons for favouring PostgreSQL as a backend database. We have also recently started using Postgres as the database for Mahara. So, we have experimented a little with using Postgres as the Alfresco database rather than MySQL. Seems to be OK, though I would be pleased to hear of any other Alfresco-PostgreSQL experiences. Any significant criteria to decide between PostgreSQL and MySQL(using innodb) with Alfresco?
In reply to Shawn Drake

Re: Simple Alfresco tie-in

by Mike Waters -
That part of the URL (the parameter named p) is there to tell Alfresco what "space" to display. If you are logged into Moodle as say, sdrake then it expands to

/Company Home/User Homes/sdrake

which is the "home space" of user sdrake in Alfresco. If you want the same space to be displayed for everyone just change the parameter accordingly and leave out the dynamic bit (ie $USER->username)

If you want to log in with a generic user then you have to do something with Single Sign On. With the CAS based SSO you get logged in with the same username that you log into CAS with. The code would have to change to use a generic login.

I'll have a look but will post this now to avoid a timeout
In reply to Mike Waters

Re: Simple Alfresco tie-in

by Shawn Drake -
Thanks, Mike.

Our current method to link to Alfresco objects is to generate a ticket that logs in using a generic account, adding "?ticket=" at the end of all of our links. Could that same method be used here when opening the popup of the space?
In reply to Shawn Drake

Re: Simple Alfresco tie-in

by Mike Waters -

Thats a good alternative mechanism - and yes it can be used to open the alfresco interface popup.

Can you post the code or request you use for obtaining the ticket?
I think you need the alfresco user's password to be available in the code, which may be a consideration. It looks like there are a lot of options depending on your specific requirements for user management, authentication, sso with other systems, etc. etc.

This thread has it all!

In reply to Jon Cochran

Re: Simple Alfresco tie-in

by Mike Waters -
In reply to Mike Waters

Re: Simple Alfresco tie-in

by ihsanullah khan -

I am new to moodle, and this is my first task to integrate moodle and alfresco. May be now this integration is ready and working with a built in module or i should implement the code.