Announcement

Collapse
No announcement yet.

Template List of variables/placeholders

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

  • Template List of variables/placeholders

    Hi together,

    where can I find a list of possible variables to use in the Templates?
    E.g. I found that the page number can be shown by "{pageNumber}" but how about the total number of pages. Normally I would expect "{numPages}" but this doesn't work in all spellings.
    Where can I find a list of available variables/placeholders like that are not listed under "Available Placeholders" on the template screen (like {pageNumber})?

    Many thanks for your help in advance!

  • #2
    Hello,

    https://github.com/espocrm/documenta...ting-to-pdf.md

    {pageNumber}

    Since 5.1.2 {{now}} and {{today}} will be available as well

    Comment


    • #3
      Thanks tanya,

      what I'm searching for is the total number of pages. So that in the footer of each page is "page 1 / 3", "page 2 / 3", "page 3 / 3".
      tcpdf supports this by "getAliasNbPages" like in the example:
      $this
      ->
      Cell
      (
      0
      ,
      10
      ,
      'Page '
      .
      $this
      ->
      getAliasNumPage
      ().
      '/'
      .
      $this
      ->
      getAliasNbPages(
      ),
      0
      ,
      false
      ,
      'C'
      ,
      0
      ,
      ''
      ,
      0
      ,
      false
      ,
      'T'
      ,
      'M'
      );
      But as I can't write source code in the footer. How could I use this in the EspoCRM. Or is this not available so far and maybe should be considered as new feature?

      Comment


      • #4
        for now it's not available
        EspoCRM – Open Source CRM Application. Contribute to espocrm/espocrm development by creating an account on GitHub.

        Comment


        • #5
          Thank you very much tanya!
          Than this would be a "nice to have" as our QM-system requires this from printed documents.
          Last edited by Guest; 03-26-2018, 04:11 PM.

          Comment

          Working...
          X