Moodle calendar not wrapped in Joomla

More
12 years 9 months ago - 12 years 9 months ago #1 by Jesus
Hi Joomdle team,

I am using your excellent plugin for Joomla and Moodle and I have come across a problem. When I pick a day in a certain calendar of a course, the new page shows the moodle calendar page wrapped in the main position of Joomla BUT with all external panels of Moodle such as settings or events (take a look the picture I have attached).

I have been investigating through your code and I have checked that my joomdle generates the same url than joomdle.com/jdemo, the url is: www.myweb.com/calendar/view.php?course=1...1&cal_m=7&cal_y=2013 . Your demo generates the same url (from 'calendar' on). The only difference is that your moodle www.joomdle.com/jdemo/jmoodle/calendar/v...l_m=7&cal_y=2013 shows the calendar isolated but my moodle shows the calendar within several panels.

As you know these urls are generated using com_joomdle component with the view wrapper (components/com_joomdle/views/wrapper/view.html.php) and I have been debugging the code and it seems that is ok.

I don't know if I have to configure sth on Joomdle or I have to customize sth on Moodle.

I am using:
- Joomdle 0.91
- Joomla: 2.5
- Moodle: 2.0.1

Thank you very much
Last edit: 12 years 9 months ago by Jesus.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Moodle calendar not wrapped in Joomla
This is a Moodle template thing. In the demo, we use a modified template to hide all the blocks and navigation (theme is available in downloads area)

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #3 by Michael B
Replied by Michael B on topic Moodle calendar not wrapped in Joomla
Is the demo theme you are referring to compatible with Moodle 2.5?

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #4 by Chris
Replied by Chris on topic Moodle calendar not wrapped in Joomla
We have not tried the template with Moodle 2.5. If you try it, please let us know how it goes.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #5 by Jesus
Replied by Jesus on topic Moodle calendar not wrapped in Joomla
Thanks Antonio.

I have installed your template but not all navigation blocks are hiden. I have a question:
  1. Do you hide or show these navigation blocks depending on if the user is teacher or student? or is the same template for all users?

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Moodle calendar not wrapped in Joomla
It should show navigation to admins, and hide from the rest, if I remember it right.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #7 by Jesus
Replied by Jesus on topic Moodle calendar not wrapped in Joomla
Thanks again for your response.

I have installed your template without ANY CHANGES and it always (for students, teachers and admins) shows all blocks (side-pre and side-post positions) around the main area. Do you change sth more on Moodle configuration? (There are several options about block management on Moodle)

After seeing that your template doesn't work for my web I have been fighting (literally) with Moodle template and modifying it. I am able to remove side-pre and side-post blocks but for all users (students, teachers and admins).

I have also been reading joomdle forums and you wrote 1 year ago that your template hide blocks for students and show it for admins www.joomdle.com/es/forum/tips-tricks/8208-demo-template Unfortunately I can't test that.

Any help is welcomed.

Thanks again

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #8 by Antonio Durán
Replied by Antonio Durán on topic Moodle calendar not wrapped in Joomla
I have read somehting about our template not working fine in most recent Moodle versions (I wrote it for Moodle 2.0)

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago - 12 years 8 months ago #9 by Jesus
Replied by Jesus on topic Moodle calendar not wrapped in Joomla
Thanks again Antonio.

But I am using:
  • Joomdle: 0.91
  • Moodle: 2.0
  • Joomla: 2.5.10

I have been inspecting with Chrome your demo (joomdle.com/jdemo/jmoodle) and it seems that there aren't the same HTML Ids.

For example the template you have on jdemo it has only the region-content class :
Code:
<div class="region-content"> <?php echo core_renderer::MAIN_CONTENT_TOKEN ?> </div>

However the template you upload here it has the following previous divs:
Code:
<div id="page-content"> <div id="region-main-box"> <div id="region-post-box"> <div id="region-main-wrap"> <div id="region-main-pad"> <div id="region-main"> <div class="region-content"> <?php echo core_renderer::MAIN_CONTENT_TOKEN ?> </div> </div> </div> </div>

Thanks again Antonio
Last edit: 12 years 8 months ago by Jesus.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #10 by Antonio Durán
Replied by Antonio Durán on topic Moodle calendar not wrapped in Joomla
I don't really know much about templates, and it took me quite long to get the mod for the demo working. Then I forogot it all :)

Anyway, I just remebered that Fernando, a fellow Joomdle user and frequent contributor, shared a new template with me some time ago.
I did not try it yet (lots of things to do) but it may be what you need. It's at:
github.com/3-bits/joomdlebs

Please Log in or Create an account to join the conversation.