eZ Community » Forums » eZ Publish 5 Platform » Overriding kernel templates
expandshrink

Overriding kernel templates

Overriding kernel templates

Thursday 04 April 2013 5:52:42 pm

Hello everybody!

 

This is probably a newbie question but I can't figure this out!

I am currently trying to override some of the kernel templates such as content/search and user/forgotpassword. I know how to do this with eZ 4.x but I don't know with eZ 5.

For example, when I use the search form (linking to the ez_legacy content/search function), eZ keep displaying the ezdemo template. I would like to use the Symfony view I created for displaying the results. I tried using the ezpublish.yml file as discribed here.

Here is an example of my ezpublish.yml file :

ezdemo:
            location_view:
                full:
                    search_view:
                        template: MyBundle: Default:searchResult.html.twig
                        match:
                            UrlAlias: /content/search

So am I missing something?

I know I can do it the "old" way with an extension but I would like to know how to do it the new way happy.gif Emoticon

Thank you very much.

Modified on Thursday 04 April 2013 5:53:36 pm by Julien Montavit

No reply yet!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from