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

(tc-512) Hide cronjob does not hide objects in all sublevels

    XMLWordPrintable

Details

    Description

      If you have an article to hide in a sub-folder of the node set in RootNodeList, the article is not hidden.

      Steps to reproduce

      1. Create content.ini.append.php in override with the following settings

      <?php /*
      [HideSettings]
      RootNodeList[]
      RootNodeList[]=2
      HideDateAttributeList[]
      HideDateAttributeList[article]=hidedate
      */ ?>
      

      2. Create a cronjob.ini.append.php in override with the following:

      [CronjobPart-hide]
      Scripts[]=hide.php
      

      3. Edit the article class adding a "Date time" attribute, with identifier (hidedate)
      4. Create a Folder name "News"
      5. Create an article not to hide (no data in hidedate attribute)
      6 Create an article to hide (with hide date 2011.01-01 12:00)
      7. Run the hide cronjob ($php runcronjobs.php hide)

      Note: the cronjob works if you change RootNodeList[]=2 (eZPublish Folder) to the NodeId of the News folder

      Attachments

        Activity

          People

            dp@ez.no dp@ez.no
            jpingo jpingo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: