How to give a link

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brijeshcp@gmail.com
    Member
    • Apr 2018
    • 41

    How to give a link

    How to give a link in espocrm Report page.
    Attached Files
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hi,
    not sure I understood you right, maybe you ask about
    {yourSiteUrl}/#Report - link for the list of reports
    {yourSiteUrl}/#Report/{id} - link for the specified report

    Comment

    • brijeshcp@gmail.com
      Member
      • Apr 2018
      • 41

      #3
      Hi,
      i need a link to a page which is not in espocrm.(<a> tag.)

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        Hi,
        the place, you show is in views:list. You need to override it.

        open base clientDefs
        application/Espo/Modules/Advanced/Resources/metadata/clientDefs/Report.json
        if you want to add your link in button list, check "menu": "list": "buttons" and add own in custom clientDefs

        Comment

        • brijeshcp@gmail.com
          Member
          • Apr 2018
          • 41

          #5
          Hi,
          how to set the href , target attributes of <a> tag ? can you please explain the steps (including code) how to do this?

          Comment

          • tanya
            Senior Member
            • Jun 2014
            • 4308

            #6
            you can override the template in view only
            now is used from client/res/templates/list-with-categories.tpl

            copy this file to client/custom/res/templates/report/list-with-categories.tpl, add your link
            and set in overwritten view template: 'custom:report/list-with-categories',

            Comment

            • brijeshcp@gmail.com
              Member
              • Apr 2018
              • 41

              #7
              Hi,
              I have added my link in list-with-categories.tpl. But the link comes in some other pages also(in product,document).

              Comment

              • tanya
                Senior Member
                • Jun 2014
                • 4308

                #8
                Originally posted by tanya
                copy this file to client/custom/res/templates/report/list-with-categories.tpl, add your link
                and set in overwritten view template: 'custom:report/list-with-categories',
                https://www.espocrm.com/documentatio.../custom-views/

                you don't have to change core code, you need to create own view and relate to own template

                Comment

                • brijeshcp@gmail.com
                  Member
                  • Apr 2018
                  • 41

                  #9
                  Hi,

                  I have copied the client/res/templates/list-with-categories.tpl to client/custom/res/templates/report/list-with-categories.tpl and added my link.
                  Can you please explain the next step in detail??

                  Comment

                  Working...