Quantcast
Channel: Moodle for mobile
Viewing all articles
Browse latest Browse all 8344

Re: How to pre-populate and hide site URL entry page?

$
0
0
by Yezi Yang.  

Dear Daniel, 

Thank you very much for your reply. It does help me skip the entrance URL typing. 

What I do is add the code you mentioned in the reply to the build/mm.bundle.js:


.state('mm_login.site', {
url: '/site',
templateUrl: 'core/components/login/templates/site.html',
controller: 'mmLoginSiteCtrl',
/**-------------------------------add code start----------------------------------------------*/
onEnter: function($state) {
$state.go('mm_login.credentials', {siteurl: 'http://xxx.xxx.edu.cn'});  // (here is my institution Moodle URL)

/**--------------------------add code end---------------------------------------------------*/
})


However, the code you provide seems cause another problem. After add the code, the "Grades" icons where a list of courses a user has is lost, as can be seen below.



Before I add the code, the page is shown as below. (I hide some other icons which are unnecessary to my institution.)




Since "Grades" is quite an important function for both our students and staff to check their personal and overall grades, I really do not want to loss the function. So I wondered whether you know how to both have re-populate and hide entry URL, as well as have the "grades" function. 


In addition, there is a Moodle mobile developer contact me personally about how to re-populating and hiding entry URL. So I am quite sure it is a problem that many developers are facing. It is a very useful function and can also help many people if it is solved. Thank you very much for your help!


Viewing all articles
Browse latest Browse all 8344

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>