Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19996

Caching global variables with template functions

    Details

      Description

      the documentation has no references to the use of global variables for the function

      {set}

      with cases:

      {set scope=global $persistent_variable=XXX}

      {set scope=global $some_var = $#something_else

      only some incomplete/obscure comments by Gaetano and others.

      to get some some useful information, the best option is to google "set persistent_variable" and follow the links outside of the ez ecosystem

        Activity

        Hide
        Jérôme Vieilledent (Inactive) added a comment -

        Information on persistent variables usage can be found here : http://www.netgenlabs.com/Blog/eZ-Publish-CMS-persistent-variables

        Documentation should be updated according to this.

        Show
        Jérôme Vieilledent (Inactive) added a comment - Information on persistent variables usage can be found here : http://www.netgenlabs.com/Blog/eZ-Publish-CMS-persistent-variables Documentation should be updated according to this.
        Hide
        Jérôme Vieilledent (Inactive) added a comment - - edited

        Andrea Melo: Following doc pages should be updated:

        Please note that ezpagedata_set(), ezpagedata_append() and ezpagedata() need at least ezwebin extension to be installed (ships with ezflow or ezdemo packages, but not with plain_site).

        Another important thing to mention is that only persistent_variable global variable is view cache safe .

        Also, maybe the 3 templates operators mentioned above should be separately documented in the reference doc.

        Show
        Jérôme Vieilledent (Inactive) added a comment - - edited Andrea Melo : Following doc pages should be updated: http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-functions/Variables/set (+later versions) http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Templates/The-template-language/Variable-usage (+later versions) Please note that ezpagedata_set() , ezpagedata_append() and ezpagedata() need at least ezwebin extension to be installed (ships with ezflow or ezdemo packages, but not with plain_site ). Another important thing to mention is that only persistent_variable global variable is view cache safe . Also, maybe the 3 templates operators mentioned above should be separately documented in the reference doc.
        Show
        Ricardo Correia (Inactive) added a comment - @Jerome Vielledent, The following documents have been updated: http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-functions/Variables/set http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Templates/The-template-language/Variable-usage http://doc.ez.no/eZ-Publish/Technical-manual/4.3/Templates/The-template-language/Variable-usage http://doc.ez.no/eZ-Publish/Technical-manual/4.4/Templates/The-template-language/Variable-usage http://doc.ez.no/eZ-Publish/Technical-manual/4.5/Templates/The-template-language/Variable-usage http://doc.ez.no/eZ-Publish/Technical-manual/4.6/Templates/The-template-language/Variable-usage http://doc.ez.no/eZ-Publish/Technical-manual/4.7/Templates/The-template-language/Variable-usage http://doc.ez.no/eZ-Publish/Technical-manual/5.x/Templates/The-template-language/Variable-usage Usage example on setting a global variable have been added. However we still need to create documentation about the ezpagedata_set(), ezpagedata_append() and ezpagedata() operators. Do you have any other details about these operators, apart from the external link http://www.netgenlabs.com/Blog/eZ-Publish-CMS-persistent-variables ? Thanks in advance.
        Hide
        Jérôme Vieilledent (Inactive) added a comment -

        [~ricardo.correia@ez.no] : I think you can safely document these 3 operators in the technical manual (reference part), but please add a warning that it depends on ezwebin/ezdemo. Basically, when you install eZ Publish, if you choose ezdemo, ezflow or ezwebin, you'll be able to use them. They will NOT work with plain_site.

        Show
        Jérôme Vieilledent (Inactive) added a comment - [~ricardo.correia@ez.no] : I think you can safely document these 3 operators in the technical manual (reference part), but please add a warning that it depends on ezwebin/ezdemo. Basically, when you install eZ Publish, if you choose ezdemo , ezflow or ezwebin , you'll be able to use them. They will NOT work with plain_site .
        Hide
        Ricardo Correia (Inactive) added a comment -

        [~jerome.vieilledent@ez.no], thank you for your feedback.

        Can you or anyone else provide a usage example for the operators ezpagedata_set(), ezpagedata_append() and ezpagedata()?
        And what parameters they allow, and which ones are required?

        I checked the example on the following external link, but the it looks a bit incomplete for a solid documentation:
        http://www.netgenlabs.com/Blog/eZ-Publish-CMS-persistent-variables

        I also looked into ezpagedata.php, but I'm not sure which parameters are required for these three operators.

        Can anyone provide some details?

        Show
        Ricardo Correia (Inactive) added a comment - [~jerome.vieilledent@ez.no] , thank you for your feedback. Can you or anyone else provide a usage example for the operators ezpagedata_set() , ezpagedata_append() and ezpagedata() ? And what parameters they allow, and which ones are required? I checked the example on the following external link, but the it looks a bit incomplete for a solid documentation: http://www.netgenlabs.com/Blog/eZ-Publish-CMS-persistent-variables I also looked into ezpagedata.php , but I'm not sure which parameters are required for these three operators. Can anyone provide some details?

          People

          • Assignee:
            Unassigned
            Reporter:
            Paulo Bras (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 week, 5 hours, 30 minutes
              1w 5h 30m