- Posts: 7
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
$(document).on('ready pjax:scriptcomplete',function(){
// Remove the core links
$('#help-dropdown li').remove();
// Insert some new links
$('#help-dropdown').append('<li>\
<a href=" www.limesurvey.org/manual/LimeSurvey_Manual " target="_blank">\
LimeSurvey Yardım\
<i class="fa fa-external-link pull-right"></i>\
</a>\
</li>\
');
});
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Hello,If you look at the source of the page, you will see that that element no longer has an id attribute.
Try changing "#help-dropdown" to ".dropdown-menu[aria-labelledby="helpDropdown"]".
$(document).on('ready pjax:scriptcomplete',function(){ // Remove the core links $('.dropdown-menu[aria-labelledby="helpDropdown"]').remove(); // Insert some new links $('.dropdown-menu[aria-labelledby="helpDropdown"]').append('<li>\ <a href="https://www.limesurvey.org/manual/LimeSurvey_Manual" target="_blank">\ LimeSurvey Yardım\ <i class="fa fa-external-link pull-right"></i>\ </a>\ </li>\ '); });
Please Log in to join the conversation.
<ul class="dropdown-menu larger-dropdown" aria-labelledby="helpDropdown"> <?php $this->renderPartial( "/admin/super/_tutorial_menu", []); ?> <li class="dropdown-divider"></li> <li> <a href="https://www.limesurvey.org/manual/" target="_blank" class="dropdown-item"> <i class="ri-question-fill"></i> <!-- <?php eT('LimeSurvey Manual');?> --> LimeSurvey Yardım <i class=" ri-external-link-fill float-end"></i> </a> </li> <li> <a href="https://forums.limesurvey.org" target="_blank" class="dropdown-item"> <span class="fa-stack halfed"> <span class="ri-chat-3-fill fa-stack-1x" ></span> <span class="ri-group-fill fa-inverse fa-stack-1x halfed" ></span> </span> <?php eT('LimeSurvey Forums');?> <i class=" ri-external-link-fill float-end"></i> </a> </li>
Please Log in to join the conversation.
But everything will be overwritten by an updateAnd you still can do this
[url] forums.limesurvey.org/index.php/forum/de...ink-help-menu#233090 [/url]
See
Code:<ul class="dropdown-menu larger-dropdown" aria-labelledby="helpDropdown"> <?php $this->renderPartial( "/admin/super/_tutorial_menu", ); ?> <li class="dropdown-divider"></li> <li> <a href="https://www.limesurvey.org/manual/" target="_blank" class="dropdown-item"> <i class="ri-question-fill"></i> <!-- <?php eT('LimeSurvey Manual');?> --> LimeSurvey Yardım <i class=" ri-external-link-fill float-end"></i> </a> </li> <li> <a href="https://forums.limesurvey.org" target="_blank" class="dropdown-item"> <span class="fa-stack halfed"> <span class="ri-chat-3-fill fa-stack-1x" ></span> <span class="ri-group-fill fa-inverse fa-stack-1x halfed" ></span> </span> <?php eT('LimeSurvey Forums');?> <i class=" ri-external-link-fill float-end"></i> </a> </li>
Furthermore you see here how to address it, if you want to use havascript.
Joffm
Please Log in to join the conversation.
$(document).on('ready pjax:scriptcomplete',function(){ // Remove the core links $('.dropdown-menu[aria-labelledby="helpDropdown"] li').remove(); // Insert some new links $('.dropdown-menu[aria-labelledby="helpDropdown"]').append('<li>\ <a href="https://google.com/" target="_blank" class="dropdown-item">\ My link text\ <i class=" ri-external-link-fill float-end"></i>\ </a>\ </li>'); });
Please Log in to join the conversation.