Project

General

Profile

Feature #5253

Show the path file +solution

Added by Andre Boivin about 7 years ago. Updated about 7 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
25/07/2012
Due date:
% Done:

80%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

Show the path file of an item in learnpath:
Solution:
after line 7513 of learnpath.class.php, add:
  • $tbl_doc = Database :: get_course_table(TABLE_DOCUMENT);
    $sql_doc = "SELECT path FROM " . $tbl_doc . " WHERE c_id = ".$course_id." AND id = " . Database :: escape_string($row['path']);
    $result = Database::query($sql_doc);
    $path_file = Database::result($result, 0, 0);
    $path_parts = pathinfo($path_file);
    $lang_path = get_lang ('doc_path');
    $return .= $lang_path . $path_file ;*

Files

path.png (32.8 KB) path.png see the result Andre Boivin, 25/07/2012 14:49
a.zip (11.7 KB) a.zip Julio Montoya, 13/08/2012 14:48
learnpath.class.php (434 KB) learnpath.class.php Yoselyn Castillo, 15/08/2012 09:03
learnpath.class.php (433 KB) learnpath.class.php Yoselyn Castillo, 15/08/2012 22:56
document.gif (32.7 KB) document.gif Yoselyn Castillo, 17/08/2012 14:46
hotpotatoes.gif (31.9 KB) hotpotatoes.gif Yoselyn Castillo, 17/08/2012 14:46

Associated revisions

Revision c205d92b (diff)
Added by Julio Montoya about 7 years ago

Adding hotpotatoe path see #5253

Revision ed9087c9 (diff)
Added by Yoselyn Castillo about 7 years ago

Adding document path when editing a LP item see #5253

Revision d619e655 (diff)
Added by Yoselyn Castillo about 7 years ago

Minor doc path in LPs- see #5253

History

#1

Updated by Julio Montoya about 7 years ago

  • Status changed from New to Needs testing
  • Assignee set to Yoselyn Castillo
  • % Done changed from 50 to 80

Change added

#2

Updated by Yoselyn Castillo about 7 years ago

  • Status changed from Needs testing to Assigned
  • Assignee changed from Yoselyn Castillo to Julio Montoya
  • % Done changed from 80 to 50

This change doesn't work. Any path is shown.

#3

Updated by Julio Montoya about 7 years ago

  • Assignee changed from Julio Montoya to Yoselyn Castillo

you have to add a hotpotato exercise in the LP

#4

Updated by Julio Montoya about 7 years ago

hotpotato test

#5

Updated by Yoselyn Castillo about 7 years ago

it works only for hot potatoes excercises.
It would be useful for all other documents.
Working...
Drag and drop for Hotpotatoes doesn't work in LP

#6

Updated by Yoselyn Castillo about 7 years ago

Upload learnpath.class.php. Functionality is added for TOOL DOCUMENT TOOL QUIZ AND TOOL LINK

#7

Updated by Julio Montoya about 7 years ago

  • Assignee changed from Julio Montoya to Yoselyn Castillo

Code added, but when I select an exercise I see this "File: /document/shared_folder" which is not correct the same thing if a link is selected

#8

Updated by Yoselyn Castillo about 7 years ago

  • Status changed from Assigned to Needs more info
  • Assignee changed from Yoselyn Castillo to Julio Montoya

i am going to check, but this functionality maybe is useful just for documents, not for excercises or links what do you thik?

#9

Updated by Julio Montoya about 7 years ago

  • Assignee changed from Julio Montoya to Andre Boivin

let's ask Andre he opened the task :)

#10

Updated by Andre Boivin about 7 years ago

  • Assignee changed from Andre Boivin to Julio Montoya

For HotPotatoes and documents, it is absolutely necessary for big learnpath, quizzes are recorded in folders as 2226745

#11

Updated by Julio Montoya about 7 years ago

  • Assignee changed from Julio Montoya to Yoselyn Castillo

yeah, only only for exercises (using a hotpotato) and documents

#12

Updated by Yoselyn Castillo about 7 years ago

Upload this learnpath.class.php .fixed.

#13

Updated by Yoselyn Castillo about 7 years ago

  • Status changed from Needs more info to Assigned
  • Assignee changed from Yoselyn Castillo to Julio Montoya
#14

Updated by Julio Montoya about 7 years ago

  • Status changed from Assigned to Needs testing
  • Assignee changed from Julio Montoya to Yoselyn Castillo

file added, works for me

#15

Updated by Yoselyn Castillo about 7 years ago

It works fine, path is shown correctly for documents and hotpotatoes exercises.
See the screenshot

Also available in: Atom PDF