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

ezini operator does not work properly with TemplateCompile and a dynamic ini_path parameter

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 2011.11
    • None
    • Operating System: Mac OS X Lion
      PHP Version: 5.3.6
      Database and version:
      Browser (and version):

    Description

      Hi guys,

      ezini returns the default value in this case :

      Copy this code in your pagelayout.tpl (outside a cache-block)

      {def $siteaccess_settings_path = concat( 'settings/siteaccess/', $access_type.name )}
      {debug-log msg=concat( 'SiteURL value for siteaccess ', $access_type.name, ' using ', $siteaccess_settings_path, ' as ini_path parameter in ezini' )
                 var=ezini( 'SiteSettings', 'SiteURL', 'site.ini', $siteaccess_settings_path )}

      This code is supposed to get the 'SiteURL' value of a certain siteaccess but I've noticed that it does not work when TemplateCompile is enabled because you will get the default value which is 'example.com' and come from settings/site.ini.
      If you hardcode the ini_path parameter with something like 'settings/siteaccess/ezwebin_site', it will works... even with TemplateCompile...

      A beer to whom will resolve this one!

      Cheers,
      Arnaud

      Attachments

        Activity

          People

            unknown unknown
            arnaud.lafon@gmail.com arnaud.lafon@gmail.com
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: