Hi! I like to have a modification in ADD NEW COURSE PAGE , and I am having a hardtime to find the source code where can I find it.
davemanuel
Thu, 06/08/2017 - 04:56
anyone
any one can help me ? I found this <?php if ($action_links&&!isset($node)): ?>
<?php print render($action_links); ?>
<?php endif; ?> <?php print render($page['content']); ?> <?php print render($page['content_bottom']); ?>
when I look for add new course page. how can I edit the html of it.
James Aparicio
Thu, 06/08/2017 - 10:18
Hi davemanuel,
Hi davemanuel,
Take a look at the function opigno_simple_ui_menu_local_tasks_alter in profiles/opigno_lms/modules/opigno/opigno/modules/simple.ui/opigno_simple_ui.module.
Thank you so much for your reply! I will let you know if it is work.
davemanuel
Thu, 06/08/2017 - 10:42
hello!
I find this
function opigno_simple_ui_menu_local_tasks_alter(&$data, $router_item, $root_path) { if ($root_path == 'admin/opigno/content/course-administration' || $root_path == 'my-trainings' || $root_path == 'training-catalogue') { $item = menu_get_item('node/add/' . OPIGNO_COURSE_BUNDLE); if ($item['access']) { $item['title'] = t("Add a new course"); $item['options']['attributes']['class'][] = $item['localized_options']['attributes']['class'][] = 'add-course'; $item['options']['attributes']['class'][] = $item['localized_options']['attributes']['class'][] = 'opigno-simple-ui-add-course'; $item['options']['attributes']['class'][] = $item['localized_options']['attributes']['class'][] = 'opigno-simple-ui-course-administration-add-course-link'; $data['actions']['output'][] = array( '#theme' => 'menu_local_action', '#link' => $item, ); } } module_load_include('inc', 'opigno_simple_ui', 'includes/opigno_simple_ui.quiz'); opigno_simple_ui_quiz_menu_local_tasks_alter($data, $router_item, $root_path);
}
But how could I find the html that builds the FORM in adding a course.
davemanuel
Tue, 06/13/2017 - 02:52
any solutions?
Any detailed solution for this will be appreaiated.
anyone
<?php print render($action_links); ?>
<?php endif; ?> <?php print render($page['content']); ?> <?php print render($page['content_bottom']); ?> when I look for add new course page. how can I edit the html of it.Hi davemanuel,
Hi davemanuel,
Take a look at the function opigno_simple_ui_menu_local_tasks_alter in profiles/opigno_lms/modules/opigno/opigno/modules/simple.ui/opigno_simple_ui.module.
Best regards
In reply to Hi davemanuel, by James Aparicio
Hi James!
hello!
any solutions?
Up