Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/01/2013 in all areas

  1. After reading the excellent Site integration tutorial - I quickly came to realize that we can modify almost all aspects of the Site. WARNING WARNING WARNING - ALWAYS MAKE A BACKUP BEFORE MODIFYING ANY FILES There are a LOT of *pdt files within a blesta install, and the one you want to modify is usually pretty easy to find. From the doc root of your Blesta install, simply do the following # find . -name "*pdt" This will give you a list of ALL the PDT files used for the presentation of the site. Now, say you have a little specific mod you want to do (and yes) I did. The Mod I wanted to make was really quite simple - it is on the Support page. (Portal -> Support) We are setting up several Support departments - we only have a single Support department listed where you can raise a request without being logged in, all other departments you need to be logged in. As it is not obvious, we wanted to add a little bit of extra text to the page. First, look at the URL of the Page you are going to: https://yoursite/client/plugin/support_manager/client_tickets/departments/ next list ALL the pdt files so we can identify what we want to modify, we went looking thru the list for a file that was a close match to the page path. ./plugins/support_manager/views/default/client_tickets_departments.pdt looked to be a likely candidate for what we were trying to achieve. First thing, we make a backup of the original file, just in case we mess it up and can easily revert to the original # cp client_tickets_departments.pdt client_tickets_departments.pdt_orig Then with your favorite editor, modify the file. We wanted to add a very simple message to the page <div style="margin: 0 0 0 4em"><p><br />Existing Clients, Please login to see all Support departments</p></div> Well, we took a moment, looked over the code and found what appeared to be the place where we wanted to add the text to the page. <div class="heading first"> <h5><?php $this->_("ClientTickets.departments.heading_details");?></h5> </div> <div style="margin: 0 0 0 4em"><p><br />Existing Clients, Please login to see all Support departments</p></div> <div id="departments" class="pad"> Now, when you go to Portal -> Support you will see what we added (see the attached Image) - In this case, it was pretty east to see where within the pdt file we needed to make the addition. Pretty Simple! The Final Step - remember, if you do an update or install a newer version that your mods may be removed. You should also be keeping a document somewhere of what files you modify and exactly what you changed, so in the event that an upgrade replaces the file you modified, you can easily put your changes back in place - and of course, making a copy of the files you modified as well is probably a good idea as well. Looking forward to seeing some of the other customization's that everyone does.
    2 points
  2. RRWH

    Commenced Integration

    Time for our own show-off! Been busy with our new site just a few things left to go (but when is a website ever finished....), Finally got our integration about 95% there - just need to sort out a few small things that will come in time. site - http://rrwh.com Blesta - https://support.rrwh.com/ Login as a client - demo@example.com / demodemo The bit you cannot see is that we put the "logged in as staff" on the same line as the "client Login / logged in navigation " A huge thanks to Mike for his tutorial - it was invaluable in getting this far.
    1 point
  3. No templates were harmed in this installation. I did change the colors from the system settings, but no hard coding or editing.
    1 point
×
×
  • Create New...