Skip to content

Releases: Victoire/victoire

2.3.26

27 Dec 10:28
Compare
Choose a tag to compare

Merged PRs:

  • Avoid error when a widget call a missing property #1013
  • Add import in Twig macro #1011

Changes: 2.3.25...2.3.26

✨ Add global 301 redirections (and 404 errors)

20 Dec 18:17
Compare
Choose a tag to compare
  • track and store in database every 404 errors
  • set a 301 redirection in the victoire interface

If it's not already done, please require and enable the Pagerfanta Bundle:

composer require "white-october/pagerfanta-bundle:^1.1"
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
        // ...
    );
}

Then update the schema, there is 2 new tables:

<?php

namespace AppBundle\DoctrineMigrations;

use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;

/**
 * Auto-generated Migration: Please modify to your needs!
 */
class Version20171220215804 extends AbstractMigration
{
    /**
     * @param Schema $schema
     */
    public function up(Schema $schema)
    {
        // this up() migration is auto-generated, please modify it to your needs
        $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');

        $this->addSql('CREATE TABLE vic_http_error (id INT AUTO_INCREMENT NOT NULL, redirection_id INT DEFAULT NULL, url VARCHAR(255) NOT NULL, error_message VARCHAR(255) NOT NULL, counter INT DEFAULT 1 NOT NULL, code INT NOT NULL, UNIQUE INDEX UNIQ_33D0AECAF47645AE (url), INDEX IDX_33D0AECA1DC0789A (redirection_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');
        $this->addSql('CREATE TABLE vic_redirection (id INT AUTO_INCREMENT NOT NULL, link INT DEFAULT NULL, counter INT NOT NULL, url VARCHAR(255) DEFAULT NULL, dtype VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_65EBEF26F47645AE (url), INDEX IDX_65EBEF2636AC99F1 (link), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');
        $this->addSql('ALTER TABLE vic_http_error ADD CONSTRAINT FK_33D0AECA1DC0789A FOREIGN KEY (redirection_id) REFERENCES vic_redirection (id) ON DELETE CASCADE');
        $this->addSql('ALTER TABLE vic_redirection ADD CONSTRAINT FK_65EBEF2636AC99F1 FOREIGN KEY (link) REFERENCES vic_link (id) ON DELETE CASCADE');
    }

    /**
     * @param Schema $schema
     */
    public function down(Schema $schema)
    {
        // this down() migration is auto-generated, please modify it to your needs
        $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');

        $this->addSql('ALTER TABLE vic_http_error DROP FOREIGN KEY FK_33D0AECA1DC0789A');
        $this->addSql('DROP TABLE vic_http_error');
        $this->addSql('DROP TABLE vic_redirection');
    }
}

2.3.25

19 Dec 15:59
be30f2e
Compare
Choose a tag to compare

Merged PRs:

  • Fix/filter bundle #983
  • remove deprecated empty_values and choices as values for Filters #1004
  • implement OrderBy support in widgetDataWarmer #1001

Changes : 2.3.24...2.3.25

2.3.22 Restrict Symfony version, fix notices and errors

25 Jul 08:52
Compare
Choose a tag to compare
  • Fix error "Widget […] name is already in use" #964
  • instantiate ProgressBar because the helper does not exists anymore #963
  • Fix "Notice: Undefined index: receiverProperties" #959
  • restrict to symfony 3.2.9 as 3.2.10 is causing trouble #953
  • Update changelog with 2.2.16 #943

Changes: 2.3.21...2.3.22

[BCB] Category entity renamed to BlogCategory

21 Jul 09:48
Compare
Choose a tag to compare
Merge pull request #962 from MadeWilson/feature/improve-base-blog

Feature/improve base blog

[Fix] Inject Translator in head

07 Jul 11:44
Compare
Choose a tag to compare

Previously in the foot scripts, the Translator was not available soon enouth for components needing it

[Fix] pass locale in blog link

29 Jun 10:31
Compare
Choose a tag to compare
2.2.28

Merge pull request #947 from Victoire/fix-bug-with-locale-on-blog-art…

2.3.18

16 Jun 14:02
Compare
Choose a tag to compare
remove branch alias

Blog locale management

27 Apr 09:40
Compare
Choose a tag to compare
Merge pull request #906 from Charlie-Lucas/feature/filter-blog-by-locale

Reload first blog after locale change

Blog > Tag is now a BusinessEntity

17 Mar 15:54
Compare
Choose a tag to compare
Merge pull request #846 from alexislefebvre/Blog-Tag-BusinessEntity

Blog > Tag is now a BusinessEntity