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

Latest items block won't show items if the source is set to be the landing page where the block is

    XMLWordPrintable

Details

    Description

      If you add a "Latest Items" block to your landing page and set its source to be the same landing page were the block is, new items won't be displayed.

      Steps To Reproduce

      1. Edit "ezpublish_legacy/settings/override/block.ini.append.php" and add the following lines:
        [General]
        AllowedTypes[]=LatestContent6
        
        [LatestContent6]
        Name=Latest content 6 items
        NumberOfValidItems=6
        NumberOfArchivedItems=6
        ManualAddingOfItems=disabled
        FetchClass=eZFlowLatestContent
        FetchParameters[Source]=NodeID
        FetchParametersSelectionType[Source]=single
        FetchParametersIsRequired[Source]=true
        FetchParameters[Classes]=string
        FetchFixedParameters[Limit]=12
        ClassesList[]
        ClassesList[]=article
        ClassesList[]=landing_page
        ViewList[]=latest_content
        ViewName[latest_content]=Latest content
        
      2. Clear the caches
      3. Open the backoffice and create a landing page
      4. In that landing page layout attribute, add a new "Latest content 6 items" block
      5. Publish the landing page
      6. Edit the landing page
      7. Set the "Latest content 6 items" source to the same landing page where you created it
      8. Publish the landing page
      9. Under that landing page, create three articles
      10. Execute the ezflow cronjob:
        php ezpublish/console --env=prod ezpublish:legacy:script runcronjobs.php ezflow
        
      11. Confirm no items will be displayed in the block

      Attachments

        Activity

          People

            Unassigned Unassigned
            eduardo.fernandes-obsolete@ez.no Eduardo Fernandes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: