Announcement

Collapse
No announcement yet.

Possible to add custom links to footer.tpl?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Possible to add custom links to footer.tpl?

    I would like to add more links next to the EspoCRM footer at the bottom of each page, but nothing I've tried has worked. I edited client/res/templates/site/footer.tpl to add another link, but it is only visible briefly when the page is loading. After the page loads, the footer is reset to the default value. Is it possible to modify the footer permanently? I know it's part of the source code and I would have to watch for updates, but the footer is really useful so I'm willing to do the work.

  • #2
    client/res/templates/site/footer.tpl and
    https://github.com/espocrm/espocrm/b.../main.html#L34
    https://github.com/espocrm/espocrm/blob/master/html/portal.html#L33
    Last edited by tanya; 07-17-2018, 08:26 PM.

    Comment


    • #3
      Note: due to the license you cannot remove a copyright
      Job Offers and Requests

      Comment


      • punkyard
        punkyard commented
        Editing a comment
        EspoCRM soon in copyleft ?? ^^

    • #4
      I have no plans to remove the copyright. I want to add more links to the footer next to the EspoCRM link.

      Tanya - I tried to edit those files, but it doesn't work.

      Code:
      html/main.html
      
      +<p class="credit small"><a href="http://test.test">Test Link</a></p>
      Code:
      client/res/templates/site/footer.tpl
      
      +<p class="credit small"><a href="http://test2.test2">Test Link 2</a></p>
      I'm expecting to see Test Link or Test Link 2 next to the EspoCRM link in the footer, but the only thing I see is the EspoCRM link. I think the html/main.html file is no longer used. The footer found in client/res/templates/site/footer.tpl is used in /client/res/templates/site/master.tpl, but changes to the footer don't seem to stick. I know the footer in master.tpl is the right place because deleting the line that includes it makes the whole footer disappear.

      Comment


      • #5
        May be you don't scroll window down?

        If you add <p> </p> like your example link appears on second footer line. See picture

        Comment


        • #6
          Originally posted by dimyy View Post
          May be you don't scroll window down?

          If you add <p> </p> like your example link appears on second footer line. See picture
          Which file did you edit? I scrolled down again and I can't see anything.

          Comment


          • #7
            /home/espotest/public_html/client/res/templates/site/footer.tpl

            My test environment don't use cache. May be shift+reload + clear all cache solve problem.

            Comment


            • #8
              Ok, I think I figured it out. Thanks for the help everyone.

              The footer in main.html is shown before the page is fully loaded. After the page loads, the footer.tpl file is used.

              Edit: Nevermind. I thought that was it, but after doing a hard refresh the only visible link is EspoCRM. The footer is being overwritten somehow.

              Edit2: Ok, I think I did figure it out this time. I accidentally modified the EspoCRM string in the cases where it wasn't working. When EspoCRM is modified, the whole footer is replaced. I don't have any idea where that is happening, but that seems to be the solution.
              Last edited by bandtank; 07-18-2018, 03:58 PM.

              Comment

              Working...
              X