Git Product home page Git Product logo

kunstmaanbundlesstandardedition's Introduction

Kunstmaan Bundles Standard Edition

⚠️ This package is abandoned and no longer maintained. Use the cms-skeleton instead to setup new projects. See our install instructions for more info. ⚠️

Welcome to the Kunstmaan Bundles Standard Edition - a fully-functional CMS (content management system) based on Symfony that you can use as the skeleton for your websites. Please refer to the documentation at http://bundles.kunstmaan.be/getting-started to get your CMS up and running.

Screenshot

Enjoy!

Build Status Total Downloads Latest Stable Version Scrutinizer Code Quality Code Coverage

kunstmaanbundlesstandardedition's People

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

Watchers

 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

kunstmaanbundlesstandardedition's Issues

Instalation - dependencies problem

When i try to install project from composer

php composer.phar create-project kunstmaan/bundles-standard-edition pant-cms -s dev
Installing kunstmaan/bundles-standard-edition (dev-master 83c00433a37aca85876071f37e7478220364dd4d)
  - Installing kunstmaan/bundles-standard-edition (dev-master master)
    Cloning master

Created project in pant-cms
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for kunstmaan/adminlist-bundle dev-master -> satisfiable by kunstmaan/adminlist-bundle[dev-master].
    - kunstmaan/adminlist-bundle dev-master requires phpoffice/phpexcel 1.8.* -> no matching package found.
  Problem 2
    - Installation request for kunstmaan/form-bundle dev-master -> satisfiable by kunstmaan/form-bundle[dev-master].
    - kunstmaan/form-bundle dev-master requires gregwar/form-bundle ~2.4 -> no matching package found.
  Problem 3
    - kunstmaan/adminlist-bundle 2.3.x-dev requires phpoffice/phpexcel 1.8.* -> no matching package found.
    - kunstmaan/translator-bundle dev-master requires kunstmaan/adminlist-bundle 2.3.* -> satisfiable by kunstmaan/adminlist-bundle[2.3.x-dev].
    - Installation request for kunstmaan/translator-bundle dev-master -> satisfiable by kunstmaan/translator-bundle[dev-master].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Delete or edit pagePart

Is it possible to delete or edit a pagePart trough the command line?
If not, what's the best way to do that?

Thanks!

"grunt build" not recognised in install

Hi

I have just tried to do an install by following: http://bundles.kunstmaan.be/getting-started/installation

Everything seems fine apart from one problem. When I run:
npm install -g grunt
everything seems to install ok, but later in the process I used:
grunt build
and i go the following error message:
-bash: grunt: command not found

I couldn't find a workaround for this, so instead I continued with the install.
Now I have a working "demosite" except it does not seem to be picking up any css and looks just like a basic html site from years ago with black and blue writing, all justified to the right!

Using a Macbook Pro less than a year old so should work ok. I ran the config and there were no problems showing apart from intl extension, which I am working on as well.

Thanks in advance

Barry

Undefined offset exception upon first login

I get an exception upon logging in after following the installation readme.

  • An exception has been thrown during the rendering of a template ("Notice: Undefined offset: 0 in ../vendor/kunstmaan/node-bundle/Kunstmaan/NodeBundle /Helper/Menu/PageMenuAdaptor.php line 59") in "../vendor/kunstmaan/admin-bundle
    /Kunstmaan/AdminBundle/Resources/views/Default/index.html.twig".

I added "&& isset($treeNodes[0])" to line 59 in PageMenuAdaptor.php.

if ('KunstmaanNodeBundle_nodes' == $parent->getRoute()  && isset($treeNodes[0])) {

No exception after I added that. Did I miss something in the installation?

Cannot install

Trying to install with command php composer.phar create-project kunstmaan/bundles-standard-edition /path/to/install -s dev

Got this

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for kunstmaan/adminlist-bundle dev-master -> satisfiable by kunstmaan/adminlist-bundle[dev-master].
- kunstmaan/adminlist-bundle dev-master requires phpoffice/phpexcel dev-master -> no matching package found.
Problem 2
- kunstmaan/adminlist-bundle dev-master requires phpoffice/phpexcel dev-master -> no matching package found.
- kunstmaan/translator-bundle dev-master requires kunstmaan/adminlist-bundle dev-master -> satisfiable by kunstmaan/adminlist-bundle[dev-master].
- Installation request for kunstmaan/translator-bundle dev-master -> satisfiable by kunstmaan/translator-bundle[dev-master].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
    see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

 Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Assetic fails to dump svgeezy.js

Hi, I've been following the "Getting started" installation guide.
I need to use "pref-dist" with composer, though, or I get lots of timeouts during downloading from source.
Since I haven't managed to install bower yet (Debian 7) I'm not running the "bower install / npm install / grunt build" part. But once I get to "app/console assetic:dump" it fails at some point with
[RuntimeException] The source file "/home/.../test_kunstmaan/app/../web/vendor/svgeezy/svgeezy.js" does not exist.
Checking the composer.json I haven't seen any requirement mentioning "svgeezy".
Can anyone help please?

PS : When I get to the admin dashboard I notice that existing CSS and JS fail to load. The source code says ''link type="text/css" href="/app_dev.php/css/56f7fdb_style_1.css" rel="stylesheet".
Don't know if "app_dev.php" should be there but it seems to be the problem.

Using FosRestBundle

Hi,

I have problem with integrating FosRestBundle in my project basing on Kunstman Bundles.

Problem is probably only connected to backend. When I enter backend in dev mode I get errors that browser recognized somefiles as css stylesheet files but those files where received with MIME type application/json. This way I get not styled page. If I enter in production mode I'm getting styled page but requests returns error 500 when I want (for example) to add pagepart to existing page.

here is my config

imports:
    - { resource: config_base.yml }

framework:
    esi:                { enabled: true }
    fragments:          { path: /_fragment }
    translator:         { fallback: %locale% }
    templating:
        assets_version:     v1


twig:
    globals:
        websitetitle: %websitetitle%
        defaultlocale: %defaultlocale%
        requiredlocales: %requiredlocales%
        #ga_code: %analytics.google%
        gtm_code: %analytics.googletagmanager%
        #titlecolor: "#000000"
        #titlebgcolor: "#2997CE"

assetic:
    #bundles: ~
    node: /usr/bin/node
    filters:
        cssrewrite: ~
        scss: ~
        uglifyjs2:
            bin: /usr/bin/uglifyjs
            compress: true
        uglifycss:
            bin: /usr/bin/uglifycss
        yui_js:
            jar: %kernel.root_dir%/Resources/tools/java/yuicompressor-2.4.8.jar
        jpegoptim:
            bin: jpegoptim
            strip_all: true
            max: 85
            apply_to: "\.jpe?g$"
        optipng:
            bin: optipng
            apply_to: "\.png$"
            level:    3
        jpegtran:
            bin: jpegtran
            apply_to: "\.jpe?g$"
            optimisation:    true
            progressive:  true


doctrine:
    orm:
        entity_managers:
            default:
                auto_mapping: true
                mappings:
                    gedmo_translatable:
                        type: annotation
                        prefix: Gedmo\Translatable\Entity
                        dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity"
                        alias: GedmoTranslatable # this one is optional and will default to the name set for the mapping
                        is_bundle: false
                    gedmo_translator:
                        type: annotation
                        prefix: Gedmo\Translator\Entity
                        dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Entity"
                        alias: GedmoTranslator # this one is optional and will default to the name set for the mapping
                        is_bundle: false
                    gedmo_loggable:
                        type: annotation
                        prefix: Gedmo\Loggable\Entity
                        dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity"
                        alias: GedmoLoggable # this one is optional and will default to the name set for the mapping
                        is_bundle: false
                    gedmo_tree:
                        type: annotation
                        prefix: Gedmo\Tree\Entity
                        dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity"
                        alias: GedmoTree # this one is optional and will default to the name set for the mapping
                        is_bundle: false


parameters:
    assetic.cache.class: Assetic\Cache\ArrayCache

stof_doctrine_extensions:
    default_locale: %defaultlocale%
    translation_fallback: true
    orm:
        default:
            loggable: true
            translatable: true
            sluggable: true

liip_imagine:
    cache_prefix: uploads/cache
    driver: imagick
    data_loader: filesystem
    data_root: %kernel.root_dir%/../web
    formats : ['jpg', 'jpeg','png', 'gif', 'bmp']
    filter_sets:
        optim:
            quality: 85
            format: jpg
            filters:
                strip: ~
        optimjpg:
            quality: 85
            format: jpg
            filters:
                strip: ~
        optimpng:
            quality: 85
            format: png
            filters:
                strip: ~

services:
    twig.extension.text:
        class: Twig_Extensions_Extension_Text
        tags:
            - { name: twig.extension }

    twig.extension.intl:
        class: Twig_Extensions_Extension_Intl
        tags:
            - { name: twig.extension }

    kunstmaan_logging_introspection:
        class: Monolog\Processor\IntrospectionProcessor
        tags:
            - { name: monolog.processor }

    kunstmaan_logging_web:
        class: Symfony\Bridge\Monolog\Processor\WebProcessor
        tags:
            - { name: monolog.processor }

    kunstmaan_logging_formatter:
        class: Monolog\Formatter\LineFormatter

    kunstmaan_newrelic_naming_strategy:
        class: Kunstmaan\UtilitiesBundle\Helper\UrlTransactionNamingStrategy

white_october_pagerfanta:
    default_view: twitter_bootstrap

kunstmaan_translator:
    enabled: true
    managed_locales: ['nl', 'en', 'de', 'fr']

kunstmaan_admin:
    dashboard_route: 'kunstmaan_dashboard'

ekino_new_relic:
    enabled:        true
    logging:        false
    log_exceptions: true
    log_commands:   true
    transaction_naming: service
    transaction_naming_service: kunstmaan_newrelic_naming_strategy


sensio_framework_extra:
     view: { annotations: false }

fos_rest:
     routing_loader:
         default_format: json
         include_format: true
     param_fetcher_listener: true
     view:
         view_response_listener: 'force'
         formats:
             xml:  true
             json: true
         templating_formats:
             html: true
     format_listener:
         rules:
             - { path: '^/', priorities: [ json, xml, html ], fallback_format: json, prefer_extension: true }

     exception:
         codes:
             'Symfony\Component\Routing\Exception\ResourceNotFoundException': 404
             'Doctrine\ORM\OptimisticLockException': HTTP_CONFLICT
         messages:
             'Symfony\Component\Routing\Exception\ResourceNotFoundException': true
     allowed_methods_listener: true
     access_denied_listener:
         json: true
     body_listener: true
     disable_csrf_role: ROLE_API

nelmio_api_doc:
     name: API

Thanks for help in advance.

Wrong URLs rendered in FrontEnd [SOLVED]

Hi,I have installed the CMS and the fixtures data.Seems like the project folder and web folder are not included in rendered images urls for the frontend slider.The URLs should be
/[project folder]/web/uploads/media/...
but they are
/uploads/media/ ...

UPDATE!! Nothing wrong,I just did'nt configure the server as described here
http://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html

All links are OK after this configuration.Maybe this should be mentioned in installation instructions.

No Image Thumbnails in Media Manager,icons instead.[FOUND CAUSE AND TEMPORARY FIX-YOU ARE ON WINDOWS DUDE!]

Hi,
I have installed the CMS in my local Virtual Host and everything works great except two things.
In my Media Manager,in Images folder,there are no thumbnails like your online demo,but an icon instead:(The files are there,if I click on them,the working links appear.)
images

I will be grateful for your help!Thanks in advance!

UPDATE AND TEMPORARY FIX
OK,I found the cause of the problem with thumbnails.It's because of
Symfony\Component\HttpFoundation\File\MimeType\FileBinaryMimeTypeGuesser;
FileBinaryMimeTypeGuesser does not work on Windows!
Temporary workaround:
In
Kunstmaan\MediaBundle\Helper\File\FileHandler ,in constructor,
use

$this->mimeTypeGuesser = new FileinfoMimeTypeGuesser();

instead of

$this->mimeTypeGuesser = new FileBinaryMimeTypeGuesser();`

And switch back to FileBinaryMimeTypeGuesser when you move to Linux in production.

Bundle Path mismatch

I have just installed the CMS and found when I tried to use

php app/console kuma:generate:default-site --demosite

It looks for my bundle in a wrong way. I tracked it down to the KunstmaanGenerateCommand::getOwnBundles method, which assumes that the bundle structure is something like

src/
    SomeName/
        SomeBundle

However my Bundle has a differenct structure

src/
    MyFolder/
        Bundle/
            MyBundle

The Command ends up looking for "MyFolderBundle" which of course does not exist.

Nesting PageParts

Hi,

I was wondering if it is possible to nest PageParts? For example to create PagePart Triptich that would then hold three columns, that would hold other PageParts (Headers, Paragraphs, etc)...

Thanks!

_sattelite Table missing

After installing everything I came accross another problem that _sattelite table was never generated.

Any ideas?

v2.3.* has broken

I have noticed that you have changed your standard installation to use 2.4 changes, so I tried a fresh install via v2.3.* release, it gives me the same error as follows (I tried both v2.3.3 and v2.3.4 as I am not sure what the difference it makes by setting branch-alias):

An exception has been thrown during the rendering of a template ("An exception occurred while executing 'SELECT n.id, n.parent_id AS parent, t.url,
IF(t.weight IS NULL, v.weight, t.weight) AS weight,
IF(t.title IS NULL, v.title, t.title) AS title,
IF(t.online IS NULL, 0, t.online) AS online,
n.hidden_from_nav AS hidden FROM kuma_nodes n LEFT JOIN kuma_node_translations t ON (t.node_id = n.id AND t.lang = ?) LEFT JOIN (SELECT lang, title, weight, node_id, url FROM kuma_node_translations GROUP BY node_id ORDER BY id ASC) v ON (v.node_id = n.id AND v.lang <> ?) INNER JOIN (SELECT DISTINCT o.object_identifier as id FROM kunst-2.3.acl_object_identities as o
INNER JOIN kunst-2.3.acl_classes c ON c.id = o.class_id
LEFT JOIN kunst-2.3.acl_entries e ON (
e.class_id = o.class_id AND (e.object_identity_id = o.id
OR e.object_identity_id IS NULL)
)
LEFT JOIN kunst-2.3.acl_security_identities s ON (
s.id = e.security_identity_id
)
WHERE c.class_type = "Kunstmaan\\NodeBundle\\Entity\\Node"
AND (s.identifier = "IS_AUTHENTICATED_ANONYMOUSLY" OR s.identifier = "ROLE_SUPER_ADMIN" OR s.identifier = "ROLE_PERMISSIONMANAGER" OR s.identifier = "ROLE_ADMIN" OR s.identifier = "ROLE_ALLOWED_TO_SWITCH" OR s.identifier = "Kunstmaan\\AdminBundle\\Entity\\User-admin")
AND e.mask & 4 > 0) perms_ ON perms_.id = n.id WHERE n.deleted = 0 GROUP BY n.id ORDER BY t.weight ASC, t.title ASC' with params ["en", "en"]:

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-2.3.acl_object_identities as o
INNER JOIN kunst-2.3.acl_classes c ON c.id = o.c' at line 5") in /Users/{username}/kunst-2.3/vendor/kunstmaan/admin-bundle/Kunstmaan/AdminBundle/Resources/views/Default/layout.html.twig at line 80.

kunst-2.3 is my db name. I can't figure out why. I initiated my projects with standard installation awhile back, and it was 2.3. But now I don't know why, the pages and user management stuff in the cms are gone. I am thus trying to fix this while encountering this error.

Pages in Admin

Hello, could you help me?

Was using the Sonata Project, now I want to use the Kunstmaan Bundles Standard Edition.

Installed according to the recommendations.

But the pages created does not appear in the admin. The BD is OK! What is happening?

Thank you!

uglifyjs2 installation

When installed standard edition by following http://bundles.kunstmaan.be/getting-started/installation tutorial doesn't work, the front end page works fine, but the admin part throws error: An exception has been thrown during the compilation of a template ("There is no "uglifyjs2" filter.") in "KunstmaanAdminBundle:Default:layout.html.twig".

By adding
uglifyjs2:
bin: /usr/local/bin/uglifyjs
in config.yml to assetic configuration, the error disappears, but then there are no js loaded:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_jquery-1.9.0.min_2.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_jquery.filedrop_4.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/css/a3e6fab_style_1.css?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_modernizr.custom.2.6.2_1.js?v1
Uncaught ReferenceError: jQuery is not defined jquery.jstree.js:21
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_jquery-ui-1.10.0.custom.min_1.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_bootstrap.min_2.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_chosen.jquery.min_3.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_jquery.fileupload_5.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_jquery.iframe-transport_6.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_jquery.inputmask_7.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_jquery.form_8.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_jquery.inputmask.date.extensions_9.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_responsive-tables_11.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_modaldialog.min_10.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_charCount_12.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_bootstrap-datepicker_13.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_bootstrap-timepicker_14.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_bootstrap-colorpicker_16.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_iphone-style-checkboxes_15.js?v1
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/generated-js/scripts_bottom_script_17.js?v1
Uncaught ReferenceError: jQuery is not defined

LiipCacheControlBundle

I realized you use the LiipCacheControlBundle. I want to make you aware that we are currently in the process of rebuilding that into the FOSHttpCacheBundle. If you want to have a look or have any inputs, now is the time :-)

We hope to be stable by mid of the year. LiipCacheControlBundle will stay around for a long time for backwards compatibility, but stop being maintained.

PS: You should depend on 1.0.* of the LiipCacheControlBundle, not dev-master :-)

Installing -s dev composer error

When installing through the following command 'composer create-project kunstmaan/bundles-standard-edition /Applications/MAMP/htdocs/site -s dev'. I get the following error

Problem 1
- kunstmaan/form-bundle v2.3.9 requires sensio/framework-extra-bundle 2.3.* -> no matching package found.
- kunstmaan/form-bundle v2.3.8 requires symfony/symfony 2.3.* -> no matching package found.
- kunstmaan/form-bundle v2.3.7 requires symfony/symfony 2.3.* -> no matching package found.
- kunstmaan/form-bundle v2.3.6 requires symfony/symfony 2.3.* -> no matching package found.
- kunstmaan/form-bundle v2.3.5 requires symfony/symfony >=2.3.0,<2.4.0 -> no matching package found.
- kunstmaan/form-bundle v2.3.4 requires symfony/symfony >=2.3.0,<2.4.0 -> no matching package found.
- kunstmaan/form-bundle v2.3.3 requires symfony/symfony >=2.3.0,<2.4.0 -> no matching package found.
- kunstmaan/form-bundle v2.3.2 requires symfony/symfony >=2.3.0,<2.4.0 -> no matching package found.
- kunstmaan/form-bundle v2.3.1 requires symfony/symfony >=2.3.0,<2.4.0 -> no matching package found.
- kunstmaan/form-bundle v2.3 requires symfony/symfony >=2.3.0,<2.4.0 -> no matching package found.
- Installation request for kunstmaan/bundles-standard-edition 2.4.x-dev -> satisfiable by kunstmaan/bundles-standard-edition[2.4.x-dev].
- kunstmaan/bundles-standard-edition 2.4.x-dev requires kunstmaan/form-bundle 2.3.* -> satisfiable by kunstmaan/form-bundle[v2.3, v2.3.1, v2.3.10, v2.3.11, v2.3.2, v2.3.3, v2.3.4, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9].
- kunstmaan/form-bundle v2.3.10 requires gregwar/form-bundle ~2.4 -> satisfiable by gregwar/form-bundle[2.4].
- kunstmaan/form-bundle v2.3.11 requires gregwar/form-bundle ~2.4 -> satisfiable by gregwar/form-bundle[2.4].
- Conclusion: don't install gregwar/form-bundle 2.4

Potential causes:

Read http://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

How to limit pageParts

How can I limit pageParts on a page in the adminsection. Let's say I want for the contact page that there can be a max of 4 pageParts.

It would also be nice if I can say that for a certain page only the pageParts 'Header' and 'Text' are available

no package with stability stable

At the moment when you try to run "php composer.phar create-project kunstmaan/bundles-standard-edition path/to/install" you get error "Could not find package kunstmaan/bundles-standard-edition with stability stable."
The current solution is to use 'create-project -s dev' until there is a stable version.

Articles -> categories multi-level

Hello !

I would like some help.
I would like to associate my articles several categories.
His categories are hierarchical.
And I would have pages to list the items by categories.
How to have its page overview?

Top category 1        -> listing page
    sub category 1    -> listing page
      sub category 2    -> listing page
Top category 2       -> listing page
      sub category 1     -> listing page

Article 1 link :
/top-category-1/sub-category-1/article-1
/top-category-2/sub-category-1/article-1

Extending the admin User entity -

I had follown up http://bundles.kunstmaan.be/news/extending-the-admin-user-entity
and i have one problem.

Adding new user works perfectly, new users goes to my entity. The problem lays in displaying users in system. The admin -> settings -> users shows only records from Kuma_users entity, not my entity.

My files looks almost the same as in tutorial, only difference is in UserAdminListConfigurator where i had to extend
Kunstmaan\UserManagementBundle\AdminList\UserAdminListConfigurator

Thanks in advance for any help.

Symfony 2 > CMS Generation

Hi All,
I am new to symfony, while generating is backend, and CMS , some Questions came into my mind. For many of you these can be silly for that i am sorry.

I am looking for a content management system. i did work on sonata admin bundle and got my entity and its CRUD functionality, but when it came to ACL and full permission i couldn't set up that.
My Question is, is there any difference between this (Kunstman)Bundle) CMS and Sonata admin bundle ? If yes then what ?
In symfony, we just define entity and define an admin class (using sonata , as much i know) we get our CRUD functionality on backend. Does this (Kunstman)bundle provide the same facility ?
Does it freely work with other bundles ? i mean if i use this admin panel can i integrate sonata's E-commerce bundle ??

These were some Questions clicked in my mind. If any one can help me. Which one is the best CMS. And the tutorial link please.
Thanks in advance.

MenuBuilder, Help

Hello,

I would like to add items topmenu and each of the routes opened MenuItem treeview with database specific.

The Pages does something similar, but with only one topmenu, pointing to the same route, KunstmaanNodeBundle_nodes_edit.

Is there any example or indication that I can point to a route for each item and leave it turned on the father, as this part of the code?

           if (in_array ($ child ['id'], $ activeNodeIds)) {
               $ MenuItem-> setactive (true);
           }

I do not know if I was clear, but now Thank you and look forward.

Installation error

This is what i get directly after copy pasting your command and adjusting the path to my desired folder

Command:

composer create-project kunstmaan/bundles-standard-edition testinstall -s dev

Output:

Problem 1
    - kunstmaan/form-bundle v2.3.9 requires sensio/framework-extra-bundle 2.3.* -> no matching package found.
    - kunstmaan/form-bundle v2.3.8 requires symfony/symfony 2.3.* -> no matching package found.
    - kunstmaan/form-bundle v2.3.7 requires symfony/symfony 2.3.* -> no matching package found.
    - kunstmaan/form-bundle v2.3.6 requires symfony/symfony 2.3.* -> no matching package found.
    - kunstmaan/form-bundle v2.3.5 requires symfony/symfony >=2.3.0,<2.4.0 -> no matching package found.
    - kunstmaan/form-bundle v2.3.4 requires symfony/symfony >=2.3.0,<2.4.0 -> no matching package found.
    - kunstmaan/form-bundle v2.3.3 requires symfony/symfony >=2.3.0,<2.4.0 -> no matching package found.
    - kunstmaan/form-bundle v2.3.2 requires symfony/symfony >=2.3.0,<2.4.0 -> no matching package found.
    - kunstmaan/form-bundle v2.3.1 requires symfony/symfony >=2.3.0,<2.4.0 -> no matching package found.
    - kunstmaan/form-bundle v2.3 requires symfony/symfony >=2.3.0,<2.4.0 -> no matching package found.
    - Installation request for kunstmaan/bundles-standard-edition 2.4.x-dev -> satisfiable by kunstmaan/bundles-standard-edition[2.4.x-dev].
    - kunstmaan/bundles-standard-edition 2.4.x-dev requires kunstmaan/form-bundle 2.3.* -> satisfiable by kunstmaan/form-bundle[v2.3, v2.3.1, v2.3.10, v2.3.11, v2.3.2, v2.3.3, v2.3.4, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9].
    - kunstmaan/form-bundle v2.3.10 requires gregwar/form-bundle ~2.4 -> satisfiable by gregwar/form-bundle[2.4].
    - kunstmaan/form-bundle v2.3.11 requires gregwar/form-bundle ~2.4 -> satisfiable by gregwar/form-bundle[2.4].
    - Conclusion: don't install gregwar/form-bundle 2.4

Composer is a symlink to composer.phar so it's not that the problem since composer is working without any error with other projects.

Error doctrine:fixtures:load

When executing the command 'app/console doctrine:fixtures:load' I suddenly get the error:
[Doctrine\ORM\Query\QueryException]
[Syntax Error] line 0, col -1: Error: Expected Literal, got end of string.

[Doctrine\ORM\Query\QueryException]
UPDATE Kunstmaan\NodeBundle\Entity\Node node SET node.lvl = 0, node.lft = 1, node.rgt = 2 WHERE node.id =

Installation by the command
composer create-project kunstmaan/bundles-standard-edition /Applications/MAMP/htdocs/site

Cannot load initial fixtures

When I try to load initial fixtures app/console doctrine:fixtures:load after I generate a default site, the follow error occurs:

  > purging database
  > loading [1] Kunstmaan\TranslatorBundle\DataFixtures\ORM\TranslationFixtures
  > loading [1] Kunstmaan\MediaBundle\DataFixtures\ORM\FolderFixtures
  > loading [1] Kunstmaan\AdminBundle\DataFixtures\ORM\RoleFixtures
  > loading [2] Kunstmaan\AdminBundle\DataFixtures\ORM\GroupFixtures
  > loading [3] Kunstmaan\AdminBundle\DataFixtures\ORM\UserFixtures
  > loading [51] Test\MyBundle\DataFixtures\ORM\DefaultSiteGenerator\DefaultSiteFixtures


  [Doctrine\ORM\Query\QueryException]
  [Syntax Error] line 0, col -1: Error: Expected Literal, got end of string.


  [Doctrine\ORM\Query\QueryException]
  UPDATE Kunstmaan\NodeBundle\Entity\Node node SET node.lvl = 0, node.lft = 1, node.rgt = 2 WHERE node.id =

Looks like something is broken in your NodeBundle?

Travis fails

https://travis-ci.org/Kunstmaan/KunstmaanBundlesStandardEdition/builds/11749337

Unable to find a suitable version for jquery, please choose one:

1) jquery#~1.9.1 which resolved to 1.9.1 and has jquery-backstretch#2.0.4 as dependants

2) jquery#~1.10.2 which resolved to 1.10.2 and has kunstmaan-bundles-standard-edition as dependants

3) jquery#<2.0.0 which resolved to 1.10.2 and has cupcake#1.2.2 as dependants

4) jquery#>= 1.7.0 which resolved to 2.0.3 and has fitvids#1.0.3 as dependants

5) jquery#>= 1.9.0 which resolved to 2.0.3 and has sass-bootstrap#3.0.0 as dependants

Prefix the choice with ! to persist it to bower.json

Gruntfile sass destination folder

In Gruntfile the sass configuration should include the .temp folder
,otherwise other tasks will not find the compiled css files and grunt build will throw an error.

sass: {
            IwsAppBundle: {
                options: {
                    style: 'compressed'
                },
                files: {
                    'web/frontend/.temp/css/style.css': resourcesPath+'public/scss/style.scss',
                    'web/frontend/.temp/css/ie8.css': resourcesPath+'public/scss/legacy/ie/ie8.scss',
                    'web/frontend/.temp/css/ie7.css': resourcesPath+'public/scss/legacy/ie/ie7.scss'
                }
            }
        },

No route found for another language

After installing cms, and adding pages in another language, (/de for example), everything seems fine in admin view, but, front end throws No route found for "GET /de" error.
Also: [1/2] ResourceNotFoundException: None of the routers in the chain matched this request.

It might be bug or it is that I'm adding pages in another language in a wrong way, or missing something as there's no documentation for that.
What I'm doing:
Copying page from already existing language:
2
Publishing:
3
It says that it was published:
7
Preview seems ok:
5
Client view throws error:
6

Bug with grunt on installation process.

On 4 step from installation guide (http://bundles.kunstmaan.be/getting-started)
after
grunt build
i get an error:

path.js:313
        throw new TypeError('Arguments to path.resolve must be strings');
              ^
TypeError: Arguments to path.resolve must be strings
    at Object.exports.resolve (path.js:313:15)
    at Object.<anonymous> (/usr/local/lib/node_modules/grunt/bin/grunt:13:16)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3

Before that all work fine.

Package versions:

root@isa:/var/www/dev/tbs# uname -i
x86_64
root@isa:/var/www/dev/tbs# cat /etc/issue.net
Ubuntu 12.04.3 LTS
root@isa:/var/www/dev/tbs# nodejs --version
v0.10.22
root@isa:/var/www/dev/tbs# npm --version
1.3.14

Could you please advise me.

Importing demo site ,SQL error : Integrity Constraint Violation [TEMPORARY FIX-YOU ARE ON WINDOWS DUDE!]

When importing fixtures for demo site I get

  An exception occurred while executing 'INSERT INTO kuma_media (uuid, name,   
  location, content_type, metadata, created_at, updated_at, filesize, url, de  
  leted, folder_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["5  
  2fb40910af96", "logo.png", "local", null, "a:0:{}", "2014-02-12 10:36:17",   
  "2014-02-12 10:36:17", 4421, "\/uploads\/media\/52fb40910af96.", 0, "2"]:    
   SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'content_type'  
   cannot be null 

TEMPORARY FIX
The problem is:
Symfony\Component\HttpFoundation\File\MimeType\FileBinaryMimeTypeGuesser;
FileBinaryMimeTypeGuesser does not work on Windows!
and so content_type cannot be guessed and set!
Temporary workaround:
In
Kunstmaan\MediaBundle\Helper\File\FileHandler ,in constructor,
use

$this->mimeTypeGuesser = new FileinfoMimeTypeGuesser();

instead of

$this->mimeTypeGuesser = new FileBinaryMimeTypeGuesser();`

And switch back to FileBinaryMimeTypeGuesser when you move to Linux in production.

v2.2.3 Demosite data failing to load

Hi there, I am getting the error :
[Doctrine\ORM\Query\QueryException]
[Syntax Error] line 0, col -1: Error: Expected Literal, got end of string.
[Doctrine\ORM\Query\QueryException]
UPDATE Kunstmaan\NodeBundle\Entity\Node node SET node.lvl = 0, node.lft = 1, node.rgt = 2 WHERE node.id =

When trying to load the Demo fixtures DefaultSiteGenerator\DefaultSiteFixtures

Can anyone help out?

FileBinaryMimeTypeGuesser isn't supported on Windows OS

Hello everybody.

Special thanks to Joeri for the tip.

I just want to explain that uploading file on the demo-site generated from the Kunstmaan Bundles Standard Edition isn't possible on Windows OS.
As it's noticed in the documentation, you should install a virtualization platform and running a Linux VM on it.

Symptoms? You've the following error : the server returned a "500 Internal Server Error" when attempting to upload a file from the media bundle.
You can also check the log file (in the app/logs folder, either prod or dev depending on your environment). You should see SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'content_type' cannot be null".

Why? Because the FileBinaryMimeTypeGuesser isn't supported on Windows OS. So the 'content_type' can't be set. The Symfony2 log noticed that the guesser was disabled :
dbb1866: [HttpFoundation] disabled FileBinaryMimeTypeGuesser for Windows OS

How? You can check if it's supported on your OS by instancing FileBinaryMimeTypeGuesser and call the method isSupported() from a controller. It returns a boolean. Here is the function static isSupported() from the Symfony Foundation.
return !defined('PHP_WINDOWS_VERSION_BUILD') && function_exists('passthru') && function_exists('escapeshellarg');
And the controller to test the system compatibility

 
namespace Your\AwesomeBundle\Controller;
 
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\HttpFoundation\File\MimeType\FileBinaryMimeTypeGuesser;
 
class DefaultController extends Controller
{
    /**
     * @Route("/test")
    */
    public function indexAction(){
 
      $file = new FileBinaryMimeTypeGuesser;
      $file = $file::isSupported();
      return $file;
       
    }
}

Obviously, if it returns false, you're not able to use it from your system.

Solution? A virtualization platform allowing to run the server on a Linux system. For example, you can use Vagrant platform

I hope that the post can be useful for the community.

All the best.

failing test

  @javascript
  Scenario: Login and edit group                                                              # src/MyProject/WebsiteBundle/Features/AdminSettingsGroup.feature:33
    Given I edit group "test_group"                                                           # MyProject\WebsiteBundle\Features\Context\GroupContext::iEditGroup()
    Then I should see "Edit group"                                                            # MyProject\WebsiteBundle\Features\Context\FeatureContext::assertPageContainsText()
      The text "Edit group" was not found anywhere in the text of the current page.

      +--[ http://localhost:8000/app_test.php/en/admin/settings/groups/ | Selenium2Driver ]
      |
      |  MyProject Pages Media Modules Settings en Logged in as admin Logout   Users   Groups   Roles   Bundle versions   Translations Settings Groups Groups Add New group Show all Filter Name Roles Actions Administrators ROLE_PERMISSIONMANAGER, ROLE_ADMIN Edit Delete Guests IS_AUTHENTICATED_ANONYMOUSLY Edit Delete test_group ROLE_PERMISSIONMANAGER, ROLE_ADMIN Edit Delete
      |
    When I additionally select "IS_AUTHENTICATED_ANONYMOUSLY" from "group[rolesCollection][]" # MyProject\WebsiteBundle\Features\Context\FeatureContext::additionallySelectOption()
    And I press "Edit group"                                                                  # MyProject\WebsiteBundle\Features\Context\FeatureContext::pressButton()
    Then I should see "has been edited"                                                       # MyProject\WebsiteBundle\Features\Context\FeatureContext::assertPageContainsText()

Image validator not working

When I use @Assert\Image() for an image field, it gives me a default notFoundMessage: The file could not be found.

Here's my field annotation:

   /**
     * @var \Kunstmaan\MediaBundle\Entity\Media
     *
     * @ORM\ManyToOne(targetEntity="Kunstmaan\MediaBundle\Entity\Media")
     * @ORM\JoinColumn(name="logo_id", referencedColumnName="id")
     * @Assert\Image()
     */
    private $logo;

But the image indeed gets uploaded and the record in kuma_media table is correct. Don't know where went wrong.

Notifications

Hello there,
since you are using bootstrap, are notifications supported by the admin?
Me as a developer want the ability to call a javascript to show a notification.

Is this case already included or will I have to include it myself?

Problems creating project with composer

Hi guys,

This worked for me two days ago, but now when I try to install a new composer build I get the following:

$ composer create-project kunstmaan/bundles-standard-edition new -s dev
Installing kunstmaan/bundles-standard-edition (dev-master 83c00433a37aca85876071f37e7478220364dd4d)
  - Installing kunstmaan/bundles-standard-edition (dev-master master)
    Cloning master

Created project in new
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for kunstmaan/adminlist-bundle dev-master -> satisfiable by kunstmaan/adminlist-bundle[dev-master].
    - kunstmaan/adminlist-bundle dev-master requires phpoffice/phpexcel 1.8.* -> no matching package found.
  Problem 2
    - kunstmaan/adminlist-bundle dev-master requires phpoffice/phpexcel 1.8.* -> no matching package found.
    - kunstmaan/translator-bundle dev-master requires kunstmaan/adminlist-bundle dev-master -> satisfiable by kunstmaan/adminlist-bundle[dev-master].
    - Installation request for kunstmaan/translator-bundle dev-master -> satisfiable by kunstmaan/translator-bundle[dev-master].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Fatal Error on generating an Entity

When generating an Entity through the 'app/console kuma:generate:entity' -command.
I get following error when typing in a new field name:

PHP Fatal error: Call to protected method Sensio\Bundle\GeneratorBundle\Command\GeneratorCommand::getGenerator() from context '' in /Applications/MAMP/htdocs/davidkino/vendor/kunstmaan/generator-bundle/Kunstmaan/GeneratorBundle/Command/GenerateEntityCommand.php on line 299

Cache

I just tested my instance on a production environment and had to find when updating the homepage and refreshing the frontend, the content stays cached. I have not implemented anything but KunstmaanBundlesStandardEdition. How can I configure the app to invalidate the cache when a page has been updated?

Multiple images

Is it possible to add multiple images to one Entity?
So instead of one image field, you have one field where you can select one or more images...

For example:
I want to create a blogpost and that blogpost should contain 5 images.
Another blogpost can contain 10 or even more images.

Thanks!

Pages edition enter -> error showing: "Error: The form has not been saved because there are validation errors"

I have problem after installing KunstmaanBundlesStandardEdition

I have installed everything following your guide.
Everything works perfect but I am getting an error each time I enter the page edition (every single one).
Here’s the screen shoot:
screen shot 2014-07-02 at 15 00 08

I haven’t send any form, I’ve just entered the page edition.
What is the problem?
I have tested the stable and dev edition (in standard there is a bug related to doctrine/orm, but I have updated the package and cms started and fixtures load without warnings). I got the same error if I run kuma:generate:default-site with or without –demosite parameter.

if I edit the page and click save, the page is saved, changes are visible and error is still presented...
screen shot 2014-07-02 at 15 18 11

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.