XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.0.1
    • None

    Description

      Sometimes when you are debugging or writing complex templates it is convenient to know exactly what is in a cache-block.

      This is what the patch is made for, by using a new parameter in the

      {cache-block}

      function, it is possible to define a color that will be used to border the limits of the cache block.

      An example :

      {cache-block keys=$uri_string border_color="FF0000"}

      some contents here

      {/cache-block}

      Limitations :

      • As is it to be used in developpment mode only, this will only work with TemplateCache=disabled and TemplateCompile=disabled
      • It is not possible to use the '#' sign as it has a specific meaning for the template engine, using such a sign would break the template engine name spaces
      • Color code must be enclosed by either simple or double quotes this may trigger an error in the template parser otherwise.

      You can look at the screenshot so see an example.

      Attachments

        Activity

          People

            unknown unknown
            qwix qwix
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: