Giter Site home page Giter Site logo

bitbagcommerce / syliuscmsplugin Goto Github PK

View Code? Open in Web Editor NEW
231.0 21.0 156.0 30.19 MB

Content management system for eCommerce apps created on Sylius platform. Built with Sylius code quality, flexibility, BDD.

License: MIT License

Gherkin 3.76% PHP 84.10% JavaScript 5.08% Twig 6.76% SCSS 0.30% CSS 0.01%
sylius symfony php cms ecommerce ckeditor sylius-plugin

syliuscmsplugin's Introduction

BitBag SyliusCMSPlugin


Slack Support

At BitBag we do believe in open source. However, we are able to do it just because of our awesome clients, who are kind enough to share some parts of our work with the community. Therefore, if you feel like there is a possibility for us to work together, feel free to reach out. You will find out more about our professional services, technologies, and contact details at https://bitbag.io/.

Like what we do? Want to join us? Check out our job listings on our career page. Not familiar with Symfony & Sylius yet, but still want to start with us? Join our academy!

Table of Content


Overview


Almost every eCommerce app has to present some content. Managing it is often done via third-party libraries like WordPress, eZ Platform, or a built-in content management system. As Sylius does not have a CMS in the standard platform, we decided to develop our own, which will be as flexible as Sylius. This plugin allows you to add dynamic blocks with images, text or HTML to your storefront, as well as pages and FAQs section.

We are here to help

This open-source plugin was developed to help the Sylius community. If you have any additional questions, would like help with installing or configuring the plugin, or need any assistance with your Sylius project - let us know!

Read more about Sylius CMS

About us


BitBag is a company of people who love what they do and do it right. We fulfill the eCommerce technology stack with Sylius, Shopware, Akeneo, and Pimcore for PIM, eZ Platform for CMS, and VueStorefront for PWA. Our goal is to provide real digital transformation with an agile solution that scales with the clients’ needs. Our main area of expertise includes eCommerce consulting and development for B2C, B2B, and Multi-vendor Marketplaces.
We are advisers in the first place. We start each project with a diagnosis of problems, and an analysis of the needs and goals that the client wants to achieve.
We build unforgettable, consistent digital customer journeys on top of the best technologies. Based on a detailed analysis of the goals and needs of a given organization, we create dedicated systems and applications that let businesses grow.
Our team is fluent in Polish, English, German and, French. That is why our cooperation with clients from all over the world is smooth.

Some numbers from BitBag regarding Sylius:

  • 50+ experts including consultants, UI/UX designers, Sylius trained front-end and back-end developers,
  • 120+ projects delivered on top of Sylius,
  • 25+ countries of BitBag’s customers,
  • 4+ years in the Sylius ecosystem.

Our services:

  • Business audit/Consulting in the field of strategy development,
  • Data/shop migration,
  • Headless eCommerce,
  • Personalized software development,
  • Project maintenance and long term support,
  • Technical support.

Key clients: Mollie, Guave, P24, Folkstar, i-LUNCH, Elvi Project, WestCoast Gifts.


If you need some help with Sylius development, don't be hesitated to contact us directly. You can fill the form on this site or send us an e-mail at [email protected]!


Community


For online communication, we invite you to chat with us & other users on Sylius Slack.

Demo Sylius Shop


We created a demo app with some useful use-cases of plugins! Visit sylius-demo.bitbag.io to take a look at it. The admin can be accessed under sylius-demo.bitbag.io/admin/login link and bitbag: bitbag credentials. Plugins that we have used in the demo:

BitBag's Plugin GitHub Sylius' Store
ACL Plugin Private. Available after the purchasing. https://plugins.sylius.com/plugin/access-control-layer-plugin/
Braintree Plugin https://github.com/BitBagCommerce/SyliusBraintreePlugin https://plugins.sylius.com/plugin/braintree-plugin/
CMS Plugin https://github.com/BitBagCommerce/SyliusCmsPlugin https://plugins.sylius.com/plugin/cmsplugin/
Elasticsearch Plugin https://github.com/BitBagCommerce/SyliusElasticsearchPlugin https://plugins.sylius.com/plugin/2004/
Mailchimp Plugin https://github.com/BitBagCommerce/SyliusMailChimpPlugin https://plugins.sylius.com/plugin/mailchimp/
Multisafepay Plugin https://github.com/BitBagCommerce/SyliusMultiSafepayPlugin
Wishlist Plugin https://github.com/BitBagCommerce/SyliusWishlistPlugin https://plugins.sylius.com/plugin/wishlist-plugin/
Sylius' Plugin GitHub Sylius' Store
Admin Order Creation Plugin https://github.com/Sylius/AdminOrderCreationPlugin https://plugins.sylius.com/plugin/admin-order-creation-plugin/
Invoicing Plugin https://github.com/Sylius/InvoicingPlugin https://plugins.sylius.com/plugin/invoicing-plugin/
Refund Plugin https://github.com/Sylius/RefundPlugin https://plugins.sylius.com/plugin/refund-plugin/

If you need an overview of Sylius' capabilities, schedule a consultation with our expert.

Additional resources for developers


To learn more about our contribution workflow and more, we encourage you to use the following resources:

License


This plugin's source code is completely free and released under the terms of the MIT license.

Contact


If you want to contact us, the best way is to fill the form on our website or send us an e-mail to [email protected] with your question(s). We guarantee that we answer as soon as we can!

syliuscmsplugin's People

Contributors

antonioperic avatar bartoszpietrzak1994 avatar bartoszwojdalowicz avatar bitbager avatar chaenu avatar cyrosy avatar damonsson avatar em411 avatar harvel218 avatar jbcr avatar krisflorq avatar lchrusciel avatar leszczuu avatar liszkapawel avatar macbalc avatar mrpogos avatar pamil avatar patrick477 avatar pbalcerzak avatar pgrobelny avatar pierre-h avatar pjedrzejewski avatar pmikolajek avatar prometee avatar senghe avatar shinoks avatar stefandoorn avatar sweoggy avatar techbech avatar zales0123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

syliuscmsplugin's Issues

Problem with extending PageTranslation

Hi,
seems there is some issue when PageTranslation is extended. I wanted to add $subttitle, this is my flow

sylius_resource:

    resources:
        bitbag_sylius_cms_plugin.page:
            classes:
                model: AppBundle\Entity\Page
            translation:
                classes:
                    model: AppBundle\Entity\PageTranslation

<?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
    <entity name="AppBundle\Entity\PageTranslation" table="bitbag_cms_page_translation">
        <field name="subtitle" type="string" length="255" nullable="true"/>
    </entity>
</doctrine-mapping>
<?php

declare(strict_types=1);

namespace AppBundle\Entity;

use BitBag\SyliusCmsPlugin\Entity\PageTranslation as BasePageTranslation;

class PageTranslation extends BasePageTranslation
{
    /**
     * @var string|null
     */
    private $subtitle;

    /**
     * @return null|string
     */
    public function getSubtitle(): ?string
    {
        return $this->subtitle;
    }

    /**
     * @param null|string $subtitle
     */
    public function setSubtitle(?string $subtitle): void
    {
        $this->subtitle = $subtitle;
    }
}

this is error i am getting:

An exception has been thrown during the rendering of a template ("An exception occurred while executing 'SELECT t0.id AS id_1, t0.slug AS slug_2, t0.name AS name_3, t0.meta_keywords AS meta_keywords_4, t0.meta_description AS meta_description_5, t0.content AS content_6, t0.subtitle AS subtitle_7, t0.locale AS locale_8, t9.type AS type_10, t9.path AS path_11, t9.id AS id_12, t9.owner_id AS owner_id_13, t0.translatable_id AS translatable_id_15 FROM bitbag_cms_page_translation t0 LEFT JOIN bitbag_cms_page_image t9 ON t9.owner_id = t14.id WHERE t0.translatable_id = ? AND t0.locale = ? LIMIT 1' with params [7, "hr_HR"]:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 't14.id' in 'on clause'").

Add pages

It would be nice to have another menu item with pages where a page for editorial could be created. PHPCR should be considered for purpose of this issue.

Bundle tries to load its JS resources using invalid URL

When I enter any form within this bundle (either block form or page form) bundle tries to load its JS resources using invalid URL:

Page at:
http://localhost:8080/app_dev.php/admin/pages/new

Requested resources (with 404 error):
http://localhost:8080/bundles/_themes/[theme_name]/default/bitbagsyliuscmsplugin/js/bitbag-page-slug.js
http://localhost:8080/bundles/_themes/[theme_name]/default/bitbagsyliuscmsplugin/js/bitbag-page-slug.js

Page at:
http://localhost:8080/app_dev.php/admin/blocks/new/image

Requested resources (with 404 error):
http://localhost:8080/bundles/_themes/[theme_name]/default/bitbagsyliuscmsplugin/js/bitbag-block-image-preview.js
http://localhost:8080/bundles/_themes/[theme_name]/default/bitbagsyliuscmsplugin/js/bitbag-block-image-preview.js

Yep, both are requested twice lol. The base path for the resources should be: /bundles. This is my directory structure:

Directory structure

I'm using:

        "php": "^7.1",
        "bitbag/cms-plugin": "^1.3",
        "sylius/sylius": "1.2.*",
        "symfony/symfony": "^3.4|^4.1"

Possible bug in the "page" Sylius resource

Hi,

I recently added the SyliusCmsPlugin to my project. It works well, thanks !

I have a problem when I try to search pages in the admin, and i got this error "[Semantical Error] line 0, col 155 near 'name LIKE '%test%'': Error: Class BitBag\SyliusCmsPlugin\Entity\Page has no field or association named type".

And when I check in this file https://github.com/BitBagCommerce/SyliusCmsPlugin/blob/master/src/Resources/config/grids/admin/page.yml , but the page does not seem to have a type field. Maybe it should be removed from the filters ?

Sitemap no more optional in 2.0 ?

With this commit 5a651cb
in 2.0, the sitemap is always defined, so if you don't have the sylius sitemap plugin it will fire an error :

  The service "bitbag_sylius_cms_plugin.sitemap_provider.page" has a dependency on a non-existent service "sylius.sitemap_url_factory".  

Is it a mistake ? @bitbager

Missing changelog and update information on v1.1.0

I've updated a project with composer and noticed that you made a new release. There is however no information about it - nothing in release description or title, nothing in readme, your repository has no changelog or upgrading info.

Which would probably be okay if you didn't include some 300 commits in the release and managed to change names of all tables, thus basically creating a BC break as the default Symfony Schema Update tool doesn't see it as a rename and drops and re-creates the tables instead, potentially resulting in data loss if it goes unnoticed.

Please create and maintain a changelog and upgrade info (just like Sylius does) and if you make a big schema change providing an example migration would be nice too.

Add render block controller

For now, we are rendering block through the Twig function. I think that making it with a custom controller would be more flexible as it can have an optional template parameter. Sometimes the default CMS Block templates are not enough. What I would like to achieve is I want it to be rendered like this: {{ render(path('bitbag_cms_render_block', {'code' : 'homepage_slide_1', 'template' : '@App/Cms/homepageSlide.html.twig'})) }} instead of {{ bitbag_render_block('homepage_slide_1') }}. Maybe it would be also a nice idea to allow an optional parameter to the bitbag_render_block function for a template.

node_modules symlink in vendor breaks vagrant rsync

broken symlink node_modules in vendor upsets rsync during vagrant up.

There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.

Host path: /Users/username/sylius/
Guest path: /vagrant
Command: "rsync" "--verbose" "--archive" "--delete" "-z" "--copy-links" "--no-owner" "--no-group" "--rsync-path" "sudo rsync" "-e" "ssh -p 2222 -o LogLevel=FATAL -o ControlMaster=auto -o ControlPath=/var/folders/ny/6szphdgs1nb76sgc4p7kmz400000gn/T/ssh.236 -o ControlPersist=10m -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i '/Users/username/sylius/.vagrant/machines/sylius/virtualbox/private_key'" "--exclude" ".vagrant/" "/Users/username/sylius/" "[email protected]:/vagrant"
Error: symlink has no referent: "/Users/username/sylius/sites/Sylius/vendor/bitbag/cms-plugin/node_modules"
rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/main.c(996) [sender=2.6.9]

Pages Select Products and Sections

There are not products or prepared sections in the select-menu.
Endless AJAX requests.

As example:

GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359857 | 667ms | 4596d2
-- | -- | -- | -- | -- | --
GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359856 | 267ms | 5d0764
GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359855 | 250ms | bacf43
GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359854 | 285ms | 04b45c
GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359853 | 353ms | 02da46
GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359852 | 244ms | e76459
GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359851 | 320ms | cd5d1d
GET | xhr | 200 | /app_dev.php/admin/ajax/products/search?phrase=&_=1510959359850 | 255ms | 0fc0

Any idea?
Mike

Problems customising Block entity

When I try to customise the Block entity, using the http://docs.sylius.org/en/latest/customization/model.html guide, I get an exception when trying to updated the database schema

[Doctrine\DBAL\Schema\SchemaException]
The table with name 'persiennbutiken_ng.bitbag_cms_block' already exists.

My config looks the following:

sylius_resource:
    resources:
        bitbag.block:
            classes:
                model: AppBundle\Entity\CmsPlugin\Block

And my entity:

/**
 * @ORM\Table(name="bitbag_cms_block")
 * @ORM\Entity(repositoryClass="BitBag\CmsPlugin\Repository\BlockRepository")
 */
class Block extends BaseBlock implements BlockInterface

Prepare for 1.0.0

The plugin needs to support 7.1 PHP only with strict types and require Sylius 1.0.*+.

Product associated with blocks

For now, products can be associated only with pages. The same could be done with blocks. It's just the matter of configuring a form and resource in the same way as Page.

Add link option to the ImageBlock

Image blocks need to have the option to link to some resource. That's why we need to consider another field in the Block entity which will enable us to do it.

duplicate entry 'code' in validation file for Media

Hi,
I've found a bug in Media.yml file :

properties:
        code:
            - NotBlank:
                message: 'bitbag_sylius_cms_plugin.media.code.not_blank'
                groups: ['bitbag']
            - Length:
                min: 2
                max: 250
                minMessage: 'bitbag_sylius_cms_plugin.media.code.min_length'
                maxMessage: 'bitbag_sylius_cms_plugin.media.code.max_length'
                groups: ['bitbag']
        code:
            - NotBlank:
                groups: ['bitbag']

there is 2 'code' entries, the second one should be removed.

Best regards,

David

Table name too long

Since the name change, I'm getting the following issue when setting up the database

SQLSTATE[42000]: Syntax error or access violation: 1059 Identifier name 'bitbag_sylius_cms_plugin_frequently_asked_question_translation_uniq_trans' is too long

Add optional WYSIWYG editor

There should be an optional YAML config which decides whether to add a WYSIWYG editor for available Textarea fields or not.

Add media provider

Each CMS has the opportunity to upload files, especially images, videos, etc. We definitely need to implement new resource which will hold the reference to the uploaded file in the admin backed as well as a simple YAML configuration that will load specific Twig templates based on the file extension that can be easily customized.

Template var in render block code seems ignored

{{ render(path('bitbag_sylius_cms_plugin_shop_block_render', {'code' : 'homepage_header_image', 'template' : '@App/Some/Template/_path.html.twig'})) }}

I have the impression the template variable here is ignored, looking in vendor/bitbag/cms-plugin/src/Controller/BlockController.php the resolver always returns me the default type for HTML, as I can't find any code that takes in account the template variable set.

        $blockTemplateResolver = $this->get('bitbag_sylius_cms_plugin.resolver.block_template');
        $template = $blockTemplateResolver->resolveTemplate($block);

Always results into: @BitBagSyliusCmsPlugin/Shop/Block/Show/htmlBlock.html.twig"

Currently using v1.2, as I'm on Sylius v1.0 at the moment.

Rendering a page link

On the doc of "Usage" "Page" "Or rendering a page link directly:"

should it be:
{{ path('bitbag_sylius_cms_plugin_shop_page_show', {'slug' : 'about'}) }}

instead?

Bug in preview : missing service or alias

Hi,
I've just upgraded to 2.0 and I've got an error when I preview a block

capture d ecran 2018-07-05 a 14 20 33

Maybe all these resolver services need a public : true declaration in resolver.yml ?
capture d ecran 2018-07-05 a 14 30 16

Best regards,

David

Add WYSIWYG plugin for HTML type

While watching the webinar from last week, I just realized that the HTML content block is missing a WYSIWYG form in admin to be more user friendly.

And from the implementation point of view, I guess this means:

  • add WYSIWYG bundle as a dependency to this plugin
  • change HtmlBlockTranslationType from TextareaType::class to CKEditorType::class

wdyt?

Extended section model

Hi, I want to add some other info into Section model, so I've overridden your resource in my config to use my model with extending your BaseSection and added Section.orm.yml with custom field. But when I try to launch doctrine:migrations:diff it always throw error: The table with name 'shop.bitbag_section' already exists.. I did it the same way as with the product model extensions and never seen this kind of error before. How do I find out where the problem is?

Thank you!

...app/config/resources.yml

sylius_resource:
    resources:
        bitbag.section:
            classes:
                model: AppBundle\Entity\Section
            translation:
                classes:
                    model: AppBundle\Entity\SectionTranslation

Model

namespace AppBundle\Entity;

use BitBag\CmsPlugin\Entity\Section as BaseSection;

class Section extends BaseSection {
...
}

...src/AppBundle/Resources/config/doctrine/Section.orm.yml

AppBundle\Entity\Section:
    type: entity
    table: bitbag_section
    fields:
        type:
            ...

Bug in service declaration

Hi, I've just upgraded to 2.0, and I've seen that ajax call to search products fail.
It seems to be a missing "public: true" declaration missing for the service
bitbag_sylius_cms_plugin.controller.action.admin.product_search

capture d ecran 2018-07-05 a 14 20 13

capture d ecran 2018-07-05 a 14 24 24

Best regards,

David

Product Block Type & Containers

Hey guys, thanks for a nice plugin.

We will use it for an upcoming product but we need to extend the bundle a bit. And I want to see if it is of interest of your's and on the roadmap before considering doing a PR.

  1. Product Block Type - We already extended our fork with a new block type adding linked products (just as a Page) since we need to control products within a block.

  2. Containers - Next step will be to add containers to configure a layout that consist 1 or more blocks since this is not supported in a page. That would allow users to have more freedom to create more complex containers to be rendered in a twig.

Let me know your thoughts about it, and if it is any value for your project we would gladly contribute.

Error: Requested page is invalid.

When I change path pattern for product's taxon - plugin is crashing(
Step to reproduce:

  1. Open file #sylius/src/Sylius/Bundle/ShopBundle/Resources/config/routing/product.yml
  2. Change default path pattern from "path: /taxons/{slug}" to "path: /{slug}"
  3. Profit( On admin side and front error is same

Page in admin has no title

In the admin panel, when we go to the pages page, which btw sounds so weird, we don't have the nice "Pages" title 🙁

Page Image mapping error

Hi, it seems there is an error in the new mapping ?

[FAIL] The entity-class BitBag\SyliusCmsPlugin\Entity\PageImage mapping is invalid:

  • The association BitBag\SyliusCmsPlugin\Entity\PageImage#owner refers to the inverse side field BitBag\SyliusCmsPlugin\Entity\PageTranslation#image which does not exist.

Index name too large in table 'bitbag_sylius_cms_plugin_frequently_asked_question_translation'

I have a problem doing a migration:

[Doctrine\DBAL\Exception\DriverException]
An exception occurred while executing 'CREATE TABLE bitbag_sylius_cms_plugi
n_frequently_asked_question_translation (id INT AUTO_INCREMENT NOT NULL, tr
anslatable_id INT NOT NULL, question VARCHAR(1500) NOT NULL, answer LONGTEX
T NOT NULL, locale VARCHAR(255) NOT NULL, INDEX IDX_1F3306412C2AC5D3 (trans
latable_id), UNIQUE INDEX bitbag_sylius_cms_plugin_frequently_asked_questio
n_translation_uniq_trans (translatable_id, locale), PRIMARY KEY(id)) DEFAUL
T CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB':

SQLSTATE[42000]: Syntax error or access violation: 1059 Le nom de l'identif
icateur 'bitbag_sylius_cms_plugin_frequently_asked_question_translation_uni
q_trans' est trop long

Wrong url for an image

I'm testing out you plugin. I've created an image block. A thumbnail of the image appears in the admin but not on the index page.

I've put {{ bitbag_cms_render_block('test_image') }} in the in

sylius2\app\themes\CrimsonTheme\SyliusShopBundle\views\Homepage\index.html.twig

I access to the webpage via this url : http://localhost/sylius2/web/app_dev.php/en_US/

The image url generated is media/image/f4/35/04ed36f0faaecb91d6394b1c9edf.jpeg whilst the others are for example http://localhost/sylius2/web/media/cache/sylius_shop_product_thumbnail/ec/33/f795dd125ba4ddca0a5ac1a9922e.jpeg which is an product image.

I don't know if I've done somthing wrong or if this a bug...

Do you need more informations ?

<p> in FAQ

When I entered this into the answer field of a FAQ item :

Réponse 1

<p>Iamque non umbratis fallaciis res agebatur, sed qua palatium est extra muros, armatis omne circumdedit. ingressusque obscuro iam die, ablatis regiis indumentis Caesarem tunica texit et paludamento communi, eum post haec nihil passurum velut mandato principis iurandi crebritate confirmans et statim inquit exsurge et inopinum carpento privato inpositum ad Histriam duxit prope oppidum Polam, ubi quondam peremptum Constantini filium accepimus Crispum.</p>

Proinde concepta rabie saeviore, quam desperatio incendebat et fames, amplificatis viribus ardore incohibili in excidium urbium matris Seleuciae efferebantur, quam comes tuebatur Castricius tresque legiones bellicis sudoribus induratae.

Equitis Romani autem esse filium criminis loco poni ab accusatoribus neque his iudicantibus oportuit neque defendentibus nobis. Nam quod de pietate dixistis, est quidem ista nostra existimatio, sed iudicium certe parentis; quid nos opinemur, audietis ex iuratis; quid parentes sentiant, lacrimae matris incredibilisque maeror, squalor patris et haec praesens maestitia, quam cernitis, luctusque declarat.

In the public page, I've got :
Réponse 1 <p>Iamque non umbratis fallaciis res agebatur, sed qua palatium est extra muros, armatis omne circumdedit. ingressusque obscuro iam die, ablatis regiis indumentis Caesarem tunica texit et paludamento communi, eum post haec nihil passurum velut mandato principis iurandi crebritate confirmans et statim inquit exsurge et inopinum carpento privato inpositum ad Histriam duxit prope oppidum Polam, ubi quondam peremptum Constantini filium accepimus Crispum.</p> Proinde concepta rabie saeviore, quam desperatio incendebat et fames, amplificatis viribus ardore incohibili in excidium urbium matris Seleuciae efferebantur, quam comes tuebatur Castricius tresque legiones bellicis sudoribus induratae. Equitis Romani autem esse filium criminis loco poni ab accusatoribus neque his iudicantibus oportuit neque defendentibus nobis. Nam quod de pietate dixistis, est quidem ista nostra existimatio, sed iudicium certe parentis; quid nos opinemur, audietis ex iuratis; quid parentes sentiant, lacrimae matris incredibilisque maeror, squalor patris et haec praesens maestitia, quam cernitis, luctusque declarat.

Do you need more informations ?

Expected an instance of AppBundle\Entity\Product. Got: Sylius\Component\Core\Model\Product

Hi, you have to change your association in Page.orm.yml, the target entity have to be Sylius\Component\Product\Model\ProductInterface, because if Someone extend product entity your plugin throw this error updating a page.

BitBag\CmsPlugin\Entity\Page:
    type: entity
    table: bitbag_cms_page
    id:
        id:
            type: integer
            id: true
            generator:
                strategy: AUTO
    fields:
        code:
            type: string
            length: 250
        enabled:
            type: boolean
    manyToMany:
        products:
            targetEntity: Sylius\Component\Product\Model\ProductInterface
            joinTable:
                name: bitbag_cms_page_products
                joinColumns:
                    page_id:
                        referencedColumnName: id
                inverseJoinColumns:
                    product_id:
                        referencedColumnName: id

How to sort blocks in sections

I use sections to create a kind of block collection (for carousels) but I need them to be sorted using a dedicated position field.

For example, create a homepage-carousel section then add many BlockImage into it. How do you sort them?

{{ render(path('bitbag_sylius_cms_plugin_shop_block_index_by_section_code', {
    'sectionCode' : 'home-carousel', 
    'template' : '@SyliusShop/Homepage/_carousel.html.twig',
    'sort': { 'position': 'ASC' }
})) }}

Is it possible to extend Block entity to add position and Gedmo Sortable behaviour ?

Backport template fix to 1.2

@patrick477 Would it be possible to add this fix also in a 1.2.x release?

9a6d48a

I'm migrating to this plugin, but cannot upgrade Sylius to 1.1 yet, but need this template fix so I can at least release the CMS migration, and then work on migrating to Sylius 1.1 & version 1.3 of this plugin :)

Thanks!

Sitemap support

Sylius Sitemap Plugin exists: https://github.com/stefandoorn/sitemap-plugin. Would be great to have a provider to include the page URL's into it.

Some options:

  • Only provide a provider in this repo with tag sylius.sitemap_provider and add the sitemap plugin as a suggest to composer.json. And optionally put the activation behind a config setting.
  • Provide functionality in a separate repo that requires both this package and the sitemap package + add the provider

@bitbager What do you prefer?

FAQ section

We definitely need the FAQ page which will be created as a simple page which displays questions and answers in different languages. Dear community, help us! 🙂

PS. On dev branch, I already started implementing it.

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.