diff --git a/README.md b/README.md index 727439edc..aabca9cb8 100644 --- a/README.md +++ b/README.md @@ -87,20 +87,3 @@ bin/releaser tag [auto-install]: https://img.shields.io/badge/CI-install-green?style=flat-square&labelColor=black&logo=github-actions [auto-test]: https://img.shields.io/badge/CI-tests-green?style=flat-square&labelColor=black&logo=github-actions - - - - - - - - - - - - - - - - - diff --git a/components/RssFeedBundle/src/bundle/Entity/RssFeedItems.php b/components/RssFeedBundle/src/bundle/Entity/RssFeedItems.php index 29677e69f..37d85eca2 100644 --- a/components/RssFeedBundle/src/bundle/Entity/RssFeedItems.php +++ b/components/RssFeedBundle/src/bundle/Entity/RssFeedItems.php @@ -65,6 +65,13 @@ class RssFeedItems */ private $subtreePath; + /** + * @var bool + * + * @ORM\Column(name="only_visible", type="boolean") + */ + private $onlyVisible; + /** * @var string * @@ -149,6 +156,7 @@ public function toArray(): array return [ 'locationId' => $this->getSubtreePath(), 'includeSubtreePath' => $this->getIncludeSubtree(), + 'onlyVisible' => $this->getOnlyVisible(), 'contentTypeId' => $this->getContentTypeId(), 'fieldTypesIdentifier' => [ 'title' => $this->getTitle(), @@ -242,4 +250,14 @@ public function setMedia($media = null): self return $this; } + + public function getOnlyVisible(): bool + { + return $this->onlyVisible; + } + + public function setOnlyVisible(bool $onlyVisible): void + { + $this->onlyVisible = $onlyVisible; + } } diff --git a/components/RssFeedBundle/src/bundle/Form/RssFeedItemsType.php b/components/RssFeedBundle/src/bundle/Form/RssFeedItemsType.php index 108519096..79b8676b3 100644 --- a/components/RssFeedBundle/src/bundle/Form/RssFeedItemsType.php +++ b/components/RssFeedBundle/src/bundle/Form/RssFeedItemsType.php @@ -79,6 +79,14 @@ public function buildForm(FormBuilderInterface $builder, array $options): void 'required' => false, ] ) + ->add( + 'only_visible', + CheckboxType::class, + [ + 'label' => 'ez_rss_feed.form.only_visible', + 'required' => false, + ] + ) ->add( 'contenttype_id', ChoiceType::class, diff --git a/components/RssFeedBundle/src/bundle/Resources/translations/messages.en.yml b/components/RssFeedBundle/src/bundle/Resources/translations/messages.en.yml index c1705272b..711d63ee0 100644 --- a/components/RssFeedBundle/src/bundle/Resources/translations/messages.en.yml +++ b/components/RssFeedBundle/src/bundle/Resources/translations/messages.en.yml @@ -19,6 +19,7 @@ ez_rss_feed.form.url_slug: URL ez_rss_feed.form.sources: Sources ez_rss_feed.form.subtree_path: Select location path ez_rss_feed.form.include_subtree: Include sub node +ez_rss_feed.form.only_visible: Only visible node ez_rss_feed.form.number_of_object: Number of objects ez_rss_feed.form.contenttype: Select content type ez_rss_feed.form.field.title: Title field diff --git a/components/RssFeedBundle/src/bundle/Resources/translations/messages.fr.yml b/components/RssFeedBundle/src/bundle/Resources/translations/messages.fr.yml index c220d6cf9..62061bd1b 100644 --- a/components/RssFeedBundle/src/bundle/Resources/translations/messages.fr.yml +++ b/components/RssFeedBundle/src/bundle/Resources/translations/messages.fr.yml @@ -19,6 +19,7 @@ ez_rss_feed.form.url_slug: URL ez_rss_feed.form.sources: Sources ez_rss_feed.form.subtree_path: Sélectionner un emplacement ez_rss_feed.form.include_subtree: Inclure les sous noeuds +ez_rss_feed.form.only_visible: Afficher uniquement les noeuds visibles ez_rss_feed.form.number_of_object: Nombre d'objet ez_rss_feed.form.contenttype: Sélectionner le type de contenu ez_rss_feed.form.field.title: Champ Titre diff --git a/components/RssFeedBundle/src/bundle/Resources/views/Form/form_fields.html.twig b/components/RssFeedBundle/src/bundle/Resources/views/Form/form_fields.html.twig index 42a0afe90..df78f9976 100644 --- a/components/RssFeedBundle/src/bundle/Resources/views/Form/form_fields.html.twig +++ b/components/RssFeedBundle/src/bundle/Resources/views/Form/form_fields.html.twig @@ -43,6 +43,17 @@ {% endblock _rss_feeds_feed_items_entry_include_subtree_row %} +{% block _rss_feeds_feed_items_entry_only_visible_row %} +