-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sitemap): Add a property to Page to include it in sitemap or not
- Loading branch information
1 parent
8739c74
commit abce8bb
Showing
10 changed files
with
144 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Monsieur Biz' Cms Page plugin for Sylius. | ||
* | ||
* (c) Monsieur Biz <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace MonsieurBiz\SyliusCmsPagePlugin\Migrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\AbstractMigration; | ||
|
||
/** | ||
* Auto-generated Migration: Please modify to your needs! | ||
*/ | ||
final class Version20241009132657 extends AbstractMigration | ||
{ | ||
public function getDescription(): string | ||
{ | ||
return ''; | ||
} | ||
|
||
public function up(Schema $schema): void | ||
{ | ||
// this up() migration is auto-generated, please modify it to your needs | ||
$this->addSql('ALTER TABLE monsieurbiz_cms_page ADD showInSitemap TINYINT(1) DEFAULT 1 NOT NULL'); | ||
$this->addSql('ALTER TABLE messenger_messages CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', CHANGE available_at available_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', CHANGE delivered_at delivered_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\''); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
// this down() migration is auto-generated, please modify it to your needs | ||
$this->addSql('ALTER TABLE messenger_messages CHANGE created_at created_at DATETIME NOT NULL, CHANGE available_at available_at DATETIME NOT NULL, CHANGE delivered_at delivered_at DATETIME DEFAULT NULL'); | ||
$this->addSql('ALTER TABLE monsieurbiz_cms_page DROP showInSitemap'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,39 @@ | ||
monsieurbiz_cms_page: | ||
ui: | ||
pages: "Pages" | ||
new_page: "New page" | ||
edit_page: "Edit page" | ||
cms_content: "CMS content" | ||
pages_subheader: "CMS Page management" | ||
back_to_admin: "Back to admin" | ||
form: | ||
id: 'ID' | ||
page_info: 'Page information' | ||
page_content: 'Page content' | ||
enabled: "Enabled" | ||
channels: "Channels" | ||
title: "Title" | ||
slug: "Slug" | ||
code: "Code" | ||
content: "Content" | ||
meta_title: "Meta Title" | ||
meta_description: "Meta Description" | ||
meta_keywords: "Meta Keyword" | ||
meta_image: "Meta Image" | ||
meta_image_help: "Ideal format: 1200 x 630 px" | ||
show_in: "Show in" | ||
show_page_in_shop_page: "Show page in shop page" | ||
actions: | ||
create: 'Create a new page' | ||
preview: 'Preview' | ||
banner: | ||
preview: 'Preview' | ||
ui: | ||
pages: "Pages" | ||
new_page: "New page" | ||
edit_page: "Edit page" | ||
cms_content: "CMS content" | ||
pages_subheader: "CMS Page management" | ||
back_to_admin: "Back to admin" | ||
form: | ||
id: 'ID' | ||
page_info: 'Page information' | ||
page_content: 'Page content' | ||
enabled: "Enabled" | ||
channels: "Channels" | ||
title: "Title" | ||
slug: "Slug" | ||
code: "Code" | ||
content: "Content" | ||
meta_title: "Meta Title" | ||
meta_description: "Meta Description" | ||
meta_keywords: "Meta Keyword" | ||
meta_image: "Meta Image" | ||
meta_image_help: "Ideal format: 1200 x 630 px" | ||
show_in_sitemap: "Show in sitemap" | ||
show_in: "Show in" | ||
show_page_in_shop_page: "Show page in shop page" | ||
actions: | ||
create: 'Create a new page' | ||
preview: 'Preview' | ||
banner: | ||
preview: 'Preview' | ||
monsieurbiz_menu: | ||
provider: | ||
page: 'Page' | ||
sylius_plus: | ||
rbac: | ||
parent: | ||
page: 'Page' | ||
pages: 'Pages' | ||
rbac: | ||
parent: | ||
page: 'Page' | ||
pages: 'Pages' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,39 @@ | ||
monsieurbiz_cms_page: | ||
ui: | ||
pages: "Pages" | ||
new_page: "Nouvelle page" | ||
edit_page: "Éditer une page" | ||
cms_content: "Contenus CMS" | ||
pages_subheader: "Gestion des contenus CMS" | ||
back_to_admin: "Retour à l'admin" | ||
form: | ||
id: 'ID' | ||
page_info: 'Informations de la page' | ||
page_content: 'Contenu de la page' | ||
enabled: "Activée" | ||
channels: "Canaux" | ||
title: "Titre" | ||
slug: "Slug" | ||
code: "Code" | ||
content: "Contenu" | ||
meta_title: "Meta Title" | ||
meta_description: "Meta Description" | ||
meta_keywords: "Meta Keyword" | ||
meta_image: "Meta Image" | ||
meta_image_help: "Format idéal : 1200 x 630 px" | ||
show_in: "Afficher dans" | ||
show_page_in_shop_page: "Afficher la page dans la boutique" | ||
actions: | ||
create: 'Créer une nouvelle page' | ||
preview: 'Prévisualiser' | ||
banner: | ||
preview: 'Prévisualisation' | ||
ui: | ||
pages: "Pages" | ||
new_page: "Nouvelle page" | ||
edit_page: "Éditer une page" | ||
cms_content: "Contenus CMS" | ||
pages_subheader: "Gestion des contenus CMS" | ||
back_to_admin: "Retour à l'admin" | ||
form: | ||
id: 'ID' | ||
page_info: 'Informations de la page' | ||
page_content: 'Contenu de la page' | ||
enabled: "Activée" | ||
channels: "Canaux" | ||
title: "Titre" | ||
slug: "Slug" | ||
code: "Code" | ||
content: "Contenu" | ||
meta_title: "Meta Title" | ||
meta_description: "Meta Description" | ||
meta_keywords: "Meta Keyword" | ||
meta_image: "Meta Image" | ||
meta_image_help: "Format idéal : 1200 x 630 px" | ||
show_in_sitemap: "Afficher dans le sitemap" | ||
show_in: "Afficher dans" | ||
show_page_in_shop_page: "Afficher la page dans la boutique" | ||
actions: | ||
create: 'Créer une nouvelle page' | ||
preview: 'Prévisualiser' | ||
banner: | ||
preview: 'Prévisualisation' | ||
monsieurbiz_menu: | ||
provider: | ||
page: 'Page' | ||
sylius_plus: | ||
rbac: | ||
parent: | ||
page: 'Page' | ||
pages: 'Pages' | ||
rbac: | ||
parent: | ||
page: 'Page' | ||
pages: 'Pages' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters