Customize dashboard help window + temp fix for help search
Permalink 1 user found helpful
Has anyone else noticed the search form in the help window doesn't work?
Currently, the search just goes to the concrete5.org log in screen (even if you are already logged in) .... so today, inspired by this posthttps://www.concrete5.org/community/forums/customizing_c5/and039help...
I decided to fix the search (temporary fix) by creating a custom help overlay window and I thought I should share my results since I'm not finding much on changing the help screen.
When you click the 'help' button in the 'edit bar the resulting modal window can be customized.
The original file for the help overlay is actually on the conrete5.org website. Get a copy of this file by visiting this link:http://www.concrete5.org/tools/help_overlay...
To setup the custom help page:
- create your custom help page
- name it help.php and save it in /tools/ NOT /concrete/tools/
- edit config/site.php to tell c5 the path to your custom help file
I setup a new search box which searches the concrete5.org site documentation via Google, rather than the default link to conrete5.org directly which isn't working but I imagine the c5 team will get it working again so I consider this fix temporary until then.
If you replace the search code on the default help_overlay file with this:
Your users will be able to type whatever they want to search for and Google searches only concrete5.org documentation and displays the results in new window.
I've attached my custom help.php also as an example. The only thing special about it is the working search bar as well as a link to Laurence Diver's Concrete5 Beginner's Guide to Editing pdf file, definitely worth checking that out if you haven't, great resource to give to clients and loads of pictures. Oh and as a bonus, added a popup window to open up a Google doc with a site cheat sheet...
:P
Currently, the search just goes to the concrete5.org log in screen (even if you are already logged in) .... so today, inspired by this posthttps://www.concrete5.org/community/forums/customizing_c5/and039help...
I decided to fix the search (temporary fix) by creating a custom help overlay window and I thought I should share my results since I'm not finding much on changing the help screen.
When you click the 'help' button in the 'edit bar the resulting modal window can be customized.
The original file for the help overlay is actually on the conrete5.org website. Get a copy of this file by visiting this link:http://www.concrete5.org/tools/help_overlay...
To setup the custom help page:
- create your custom help page
- name it help.php and save it in /tools/ NOT /concrete/tools/
- edit config/site.php to tell c5 the path to your custom help file
//override default help define('MENU_HELP_URL', '/tools/');
I setup a new search box which searches the concrete5.org site documentation via Google, rather than the default link to conrete5.org directly which isn't working but I imagine the c5 team will get it working again so I consider this fix temporary until then.
If you replace the search code on the default help_overlay file with this:
<h1 style="margin-bottom: 0px; margin-top: 0px">Search Concrete5.org</h1> <script language=JavaScript> <!-- function clear_query() { if (document.searc.q.value = "Google Search") document.searc.q.value = ""; } function on_search() { var originalInput = document.searc.q.value; document.searc.q.value = 'site:concrete5.org/documentation '+originalInput; } --> </script>
Viewing 15 lines of 19 lines. View entire code block.
Your users will be able to type whatever they want to search for and Google searches only concrete5.org documentation and displays the results in new window.
I've attached my custom help.php also as an example. The only thing special about it is the working search bar as well as a link to Laurence Diver's Concrete5 Beginner's Guide to Editing pdf file, definitely worth checking that out if you haven't, great resource to give to clients and loads of pictures. Oh and as a bonus, added a popup window to open up a Google doc with a site cheat sheet...
:P