Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Can not set settings attr class on blocks #213

@phiamo

Description

@phiamo

I am using bleeding edge of the cmf, but had this problem with 1.0 and 1.1 too:

When tring to create Blocks with attr settings, i cant get it working, to not show a error anywhere:

trying to set the settings like this:

        $block->setSettings(array(
            'attr' => ['class' => 'test']
        ));

and try topersist and flush i get a:

[PHPCR\ValueFormatException]                            
  Can not determine type of property with value "array (  
    'class' => 'test',                                    
  )"  

if i am setting it like this:

        $block->setSettings(array(
            'class' => 'test'
        ));

i can use it in the frontend, but the dev toolbar tells me there was an error, and checking the profiler gives me:

ERROR - [cms::blockContext] block.id=0 - error while resolving options - The option "class" does not exist. Known options are: "attr", "extra_cache_keys", "template", "ttl", "use_cache"

do you have any ideas how to solve this, or is there a hidden feature somewhere?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions