How to modify topbar links ? #5181
-
Hello, As an experienced developer who is new to Chamilo, I am trying to modify the "My courses" link in the topbar to redirect it to the ![]() I've created a new template file at <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="{{ _p.web }}courses.php"> {{ "MyCourses"|get_lang }}</a></li>
... After making these changes, I cleared my browser and the Chamilo cache following the method described in the Chamilo documentation: https://docs.chamilo.org/developer-guide/theming_through_templates/cleaning_the_cache. I've checked the cached files and can confirm that my changes are saved, and the topbar should display the correct link, but it does not reflect the changes. Is there something I'm missing, or an additional step I need to take for the changes to take effect? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Are you running OPCACHE on the server? if yes get the OPCACHE Gui from git hub. |
Beta Was this translation helpful? Give feedback.
-
1st, there's no way to accomplish this without altering the code (so you know). |
Beta Was this translation helpful? Give feedback.
Hi @Simeon-Ferrara
1st, there's no way to accomplish this without altering the code (so you know).
2nd, your procedure seems OK, but I think the topbar.tpl file is for the special admin bar that you can enable in the administration settings (search for
Show admin toolbar
in the settings)3rd I believe what you're looking for (and it's worst because it is not themed) is main/inc/lib/banner.lib.php on lines 46 and 49 (in the latest code, but you can just search for "user_portal.php"). That should work without cache refresh.