- Posts: 11
Feature Requests
Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.
Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.
[Solved] Forcing Moodle theme for Joomdle
- Mike
- Topic Author
- Offline
- New Member
-
Less
More
11 years 9 months ago - 11 years 3 months ago #1
by Mike
[Solved] Forcing Moodle theme for Joomdle was created by Mike
Is it possible to force a specific theme by using with joomdle, apart of theme defined in Moodle ?
Last edit: 11 years 3 months ago by Antonio Durán.
The topic has been locked.
- Chris
-
- Offline
- Moderator
-
11 years 9 months ago #2
by Chris
Replied by Chris on topic Forcing Moodle theme for Joomdle
I assume you are asking can you choose your Moodle theme? Sure just change the Moodle settings.
I suspect that is not what you are asking though.
I suspect that is not what you are asking though.
The topic has been locked.
- Mike
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
11 years 9 months ago #3
by Mike
Replied by Mike on topic Forcing Moodle theme for Joomdle
No Chris, it is not.
What I want is to force Joomdle to use a specific theme in the wrapper,
eq. theme without navigation etc.. But in standard mode starting Moodle
itself, to use a default Moodle theme defined in Moodle config,
eq. with full functionality. I suppose now it is only possible
to use only the same theme.
Regards,
Mike.
What I want is to force Joomdle to use a specific theme in the wrapper,
eq. theme without navigation etc.. But in standard mode starting Moodle
itself, to use a default Moodle theme defined in Moodle config,
eq. with full functionality. I suppose now it is only possible
to use only the same theme.
Regards,
Mike.
The topic has been locked.
- Chris
-
- Offline
- Moderator
-
11 years 9 months ago #4
by Chris
Replied by Chris on topic Forcing Moodle theme for Joomdle
That I am not sure of. You really would need to understand more from the moodle side. I understand that you can set different themes for different courses. You should also be able to set a theme based on user role however this would require some moodle customisation I think.
The topic has been locked.
- Mike
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
11 years 9 months ago #5
by Mike
Replied by Mike on topic Forcing Moodle theme for Joomdle
I found in Moodle Docs that it is possible to ad to the URL the parsmeter? theme=[theme name] to force in current session another theme.
So I think it should be possible to load the wrapper with that parameter.
Can you tell me where to find the code I would try this.
So I think it should be possible to load the wrapper with that parameter.
Can you tell me where to find the code I would try this.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
11 years 9 months ago - 11 years 9 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic Forcing Moodle theme for Joomdle
Hi.
Thanks for the suggestion, I will move this thread to Feature Requests, so I can keep track and try to include it in a future release.
In the meantime, I think it should be easy for you to try this. Edit components/com_joomdle/views/wrapper/view.html.php
At the end, you could add:
Please let us know how it goes if you try it.
Thanks for the suggestion, I will move this thread to Feature Requests, so I can keep track and try to include it in a future release.
In the meantime, I think it should be easy for you to try this. Edit components/com_joomdle/views/wrapper/view.html.php
At the end, you could add:
Code:
$this->wrapper->url .= " theme=[theme name]";
Please let us know how it goes if you try it.
Last edit: 11 years 9 months ago by Antonio Durán.
The topic has been locked.
- Mike
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
11 years 9 months ago #7
by Mike
Replied by Mike on topic Forcing Moodle theme for Joomdle
Thanks Antonio,
for your interrests for Feature Request.
I will try this and let you know the results.
for your interrests for Feature Request.
I will try this and let you know the results.
The topic has been locked.
- Mike
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
11 years 9 months ago #8
by Mike
Replied by Mike on topic Forcing Moodle theme for Joomdle
It's working :laugh: ! Once again many thanks for your cooporation.
But there is still a strange behavior.
All is working fine but if you call the Moodle direct in wraper (thrue menu point),
the address in iframe is:
<iframe id="blockrandom" class="autoHeight" src=" www.viaexpert.pl/moodle/?a=1& lang=moodle-admin&theme=anomaly" scrolling="auto" onload="itspower(this, false, true, 20)" frameborder="0" align="top" height="1060" width="100%"></iframe>
Look at the mark in red parameter 'lang'. It's value is the URL value of the Moodle menu point. But this address
is called fine.
The other calls to Moodle seem to be OK.
<iframe id="blockrandom" class="autoHeight" src=" www.viaexpert.pl/moodle/mod/assign/view.php?id=5&theme=anomaly " scrolling="auto" onload="itspower(this, false, true, 20)" frameborder="0" align="top" height="810" width="100%">
But there is still a strange behavior.
All is working fine but if you call the Moodle direct in wraper (thrue menu point),
the address in iframe is:
<iframe id="blockrandom" class="autoHeight" src=" www.viaexpert.pl/moodle/?a=1& lang=moodle-admin&theme=anomaly" scrolling="auto" onload="itspower(this, false, true, 20)" frameborder="0" align="top" height="1060" width="100%"></iframe>
Look at the mark in red parameter 'lang'. It's value is the URL value of the Moodle menu point. But this address
is called fine.
The other calls to Moodle seem to be OK.
<iframe id="blockrandom" class="autoHeight" src=" www.viaexpert.pl/moodle/mod/assign/view.php?id=5&theme=anomaly " scrolling="auto" onload="itspower(this, false, true, 20)" frameborder="0" align="top" height="810" width="100%">
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
11 years 8 months ago #9
by Antonio Durán
Replied by Antonio Durán on topic Forcing Moodle theme for Joomdle
I am glad it worked.
As for the strange thing in iframe address: I don't know how that "moodle-admin" is being set as the lang, it is really weird!
As for the strange thing in iframe address: I don't know how that "moodle-admin" is being set as the lang, it is really weird!
The topic has been locked.
- Mike
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
11 years 8 months ago #10
by Mike
Replied by Mike on topic Forcing Moodle theme for Joomdle
So do I.
The topic has been locked.