Novactive / NovaeZSEOBundle

Novactive eZ Publish and Platform SEO Bundle
MIT License
25 stars 58 forks source link

[Config Fixed it]Error when working with ezplatform v2.2.2 #82

Closed crevillo closed 5 years ago

crevillo commented 6 years ago

Hello, i've just upgraded to ezplatform v2.2.2 which adds the eZ EzPlatformStandardDesignBundle to the game. I try to render de field from a custom template i have like this:

{% if content is defined and content.fields[nova_ezseo.fieldtype_metas_identifier] is defined %}    {{ ez_render_field( content, nova_ezseo.fieldtype_metas_identifier ) }}{% endif %}

but i get this error

An exception has been thrown during the rendering of a template ("Cannot find 'novaseometas_field' template block.").

If i comment out the bundle and the realted config in ezplatform.yml, then it works again. Any idea?

crevillo commented 6 years ago

It worked after i added the field templates definition to my siteaccess group like

    system:
        public:
                field_templates:
                -
                    template: "NovaeZSEOBundle:fields:novaseometas.html.twig"

let me know if this is the way to go or it can be fixed in any other way. thanks.

Plopix commented 6 years ago

on vacation right now, Will check this out soon. That's weird I am using 2.2.2 as well and I didn't see anything. But I will check! thx for reporting!

Sent with GitHawk

Plopix commented 6 years ago

I don't know actually, that is weird. I don't think that is a bug from the bundle. :/

Plopix commented 5 years ago

I'm closing for inactivity, feel free to reopen.