- Posts: 33
R0.25 No Longer Supported
Wrapper working but keeping all Joomla content
- Garrett
- Topic Author
- Offline
- Junior Member
-
Less
More
15 years 9 months ago #1
by Garrett
Wrapper working but keeping all Joomla content was created by Garrett
Hi,
I have created a Joomdle Course Module which is linking into my Moodle courses perfectly however the wrapper is retaining the module and main page content when it brings the user into the moodle course i.e. the module is still appearing on the right squashing all the moodle content and the main content from the joomla page is getting pushed down below the moodle content. Any idea why it is doing this ?
I have checked all my settings and they appear to be good.
The address is www.netmarketinginstitute.com (which is for both my posts)
Thanks, Garrett
I have created a Joomdle Course Module which is linking into my Moodle courses perfectly however the wrapper is retaining the module and main page content when it brings the user into the moodle course i.e. the module is still appearing on the right squashing all the moodle content and the main content from the joomla page is getting pushed down below the moodle content. Any idea why it is doing this ?
I have checked all my settings and they appear to be good.
The address is www.netmarketinginstitute.com (which is for both my posts)
Thanks, Garrett
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
15 years 9 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: Wrapper working but keeping all Joomla content
I understand your problem, and it is already an item on my todo list, although I have not yet figured out the best way to do it.
The problem is that links in the module link to the same menu item id as where you are. So, the modules configured for that menuitem will appear. In this case, the joomdle_courses menu.
I think a temp fix while I get it done for next release would involve editing land.php in the moodle auth plugin, to remove the itemid part of the urls like:
$redirect_url .= "/index.php?option=com_joomdle&view=wrapper&moodle_page_type=$mtype&id=$id&Itemid=$itemid";
leaving it:
$redirect_url .= "/index.php?option=com_joomdle&view=wrapper&moodle_page_type=$mtype&id=$id";
The problem is that links in the module link to the same menu item id as where you are. So, the modules configured for that menuitem will appear. In this case, the joomdle_courses menu.
I think a temp fix while I get it done for next release would involve editing land.php in the moodle auth plugin, to remove the itemid part of the urls like:
$redirect_url .= "/index.php?option=com_joomdle&view=wrapper&moodle_page_type=$mtype&id=$id&Itemid=$itemid";
leaving it:
$redirect_url .= "/index.php?option=com_joomdle&view=wrapper&moodle_page_type=$mtype&id=$id";
Please Log in or Create an account to join the conversation.
- shekar
-
- Offline
- Senior Member
-
Less
More
- Posts: 70
15 years 8 months ago #3
by shekar
Replied by shekar on topic Re: Wrapper working but keeping all Joomla content
Temporally I am using jQuery to hide the particular elements of moodle.
//@ Moodle
<?php
if (isloggedin() && $USER->username != 'admin') { ?>
//hide extra content
}
?>
Shekar.S
//@ Moodle
<?php
if (isloggedin() && $USER->username != 'admin') { ?>
//hide extra content
}
?>
Shekar.S
Please Log in or Create an account to join the conversation.