Announcement

Collapse
No announcement yet.

How to give a link

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

  • How to give a link

    How to give a link in espocrm Report page.
    Attached Files

  • #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


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

      Comment


      • #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


        • #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


          • #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


            • #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


              • #8
                Originally posted by tanya View Post
                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


                • #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...
                  X