Git Product home page Git Product logo

ibexa-scheduled-visibility's Introduction

Netgen's Scheduled Visibility for Ibexa CMS

Build Status Read the Docs Downloads Latest stable PHP Ibexa

Netgen's Ibexa Scheduled Visibility enables scheduled publishing of content based on publish_from and publish_to fields and further configuration.

See the documentation for more details.

Installation

To install Ibexa CMS Scheduled Visibility first add it as a dependency to your project:

composer require netgen/ibexa-scheduled-visibility:^1.0

Once the added dependency is installed, activate the bundle in config/bundles.php file by adding it to the returned array, together with other required bundles:

<?php

return [
    //...

    Netgen\Bundle\IbexaScheduledVisibilityBundle\NetgenIbexaScheduledVisibilityBundle::class => ['all' => true],
}

ibexa-scheduled-visibility's People

Contributors

petarjakopec avatar pspanja avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ibexa-scheduled-visibility's Issues

error executing script bin/console ngscheduledvisibility:update

Hi,

we did some testing on our installation, and if i run the update script:
php bin/console ngscheduledvisibility:update --no-interaction

we get the following warning which produces an error log item:

[2024-06-27T11:58:56.192903+00:00] console.CRITICAL: Error thrown while running command "ngscheduledvisibility:update". Message: "Warning: DOMDocument::loadXML(): xml:id : attribute value 146092 is not an NCName in Entity, line: 2" {"exception":"[object] (ErrorException(code: 0): Warning: DOMDocument::loadXML(): xml:id : attribute value 146092 is not an NCName in Entity, line: 2 at /mnt/data/htdocs/ib46-fide/vendor/ibexa/fieldtype-richtext/src/lib/FieldType/RichText/RichTextStorage.php:139)","command":"ngscheduledvisibility:update","message":"Warning: DOMDocument::loadXML(): xml:id : attribute value 146092 is not an NCName in Entity, line: 2"} []

grafik

It looks like an xml object is not valid. We imported some articles and converted the ezxml items with the ibexa utility.

....
1. we think a script which is updating the visibility status of an object should not break if something is wrong in an richtextfield

=> the script should be ignore the problem objects and process the other objects.

  1. we don't know which object can not be processed => an extended log or view of the processing item would be good to have (maybe a verbose option which output the processing items with date publish_from => publish_to and id + name would be helfpfull

  2. I don't know how the output looks like if it processed an item successfully and reveal it ... in that case a console output could be usefull too with contentid/locationId publish_from publish_to and name
    This output can than be piped in cronjob logfile
    Or we have an extra logfile for that. So that you can say when an article was made visible or unvisible by cronjob ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.