Hi
I added the course tags feature enabled, and then I added the Tags block in all course main pages.
On the footer section of this Tags block, there are three links:
1. my tags 2. all tags 3. course tags
Clicking on of the above links points to the current course in which the block exists. Ideally, my tags should point to http://yourmoodle.com/tag/coursetags_more.php?show=my&courseid=<id> and similarly the all tags and course tags should work.
Source code:
In blocks_tags.php: I think coursetag_get_jscript_links($elementid, $coursetagslinks); needs to be changed
Can some one guide me on this?
// Navigation elements at the bottom of the block
// show the alternative displays options if available
/*$elementid = 'coursetagslinks_'.$this->instance->id;
if ($mytags or $officialtags or $commtags or $coursetags) {
$this->content->footer .= '<div id="'.$elementid.'"></div>';
}
// This section sets the order of the links
$coursetagslinks = array();
if ($mytags) {
$coursetagslinks['my'] = array('title'=>get_string('mytags2', $tagslang),
'onclick'=>'f_mytags',
'text'=>get_string('mytags1', $tagslang));
}
// because alltags is always present, only show link if there is something else as well
if ($alltags and ($mytags or $officialtags or $commtags or $coursetags)) {
$coursetagslinks['all'] = array('title'=>get_string('alltags2', $tagslang),
'onclick'=>'f_alltags',
'text'=>get_string('alltags1', $tagslang));
}
if ($officialtags) {
$coursetagslinks['off'] = array('title'=>get_string('officialtags2', $tagslang),
'onclick'=>'f_officialtags',
'text'=>get_string('officialtags1', $tagslang));
}
//if ($commtags) {
// $coursetagslinks['com'] = array('title'=>get_string('communitytags2', $tagslang),
// 'onclick'=>'f_commtags',
// 'text'=>get_string('communitytags1', $tagslang));
//}
if ($coursetags) {
$coursetagslinks['crs'] = array('title'=>get_string('coursetags2', $tagslang),
'onclick'=>'f_coursetags',
'text'=>get_string('coursetags1', $tagslang));
}*/
coursetag_get_jscript_links($elementid, $coursetagslinks);