What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hallo, is it possible to directly extend the zed template Sales/Presentation/Detail/index.twig? Wher

UQ09F7ZFW
UQ09F7ZFW Posts: 13 πŸ§‘πŸ»β€πŸš€ - Cadet

Hallo, is it possible to directly extend the zed template Sales/Presentation/Detail/index.twig? Where is the point to switch to project-level?

Comments

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 πŸ§‘πŸ»β€πŸš€ - Cadet

    src/Pyz/Zed/Sales/Presentation/Detail/index.twig

  • UQ09F7ZFW
    UQ09F7ZFW Posts: 13 πŸ§‘πŸ»β€πŸš€ - Cadet

    exactly what i've done, but it renders the index from vendor.

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 πŸ§‘πŸ»β€πŸš€ - Cadet

    try vendor/bin/console cache:empty-all or restart the vm

  • UQ09F7ZFW
    UQ09F7ZFW Posts: 13 πŸ§‘πŸ»β€πŸš€ - Cadet

    cache is emptied, vm is restarted, doesnt work. I think Sales is special because the controller returns an array and not the result of viewResponse()

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 πŸ§‘πŸ»β€πŸš€ - Cadet

    I took mentioned path from my current project so template override definitely works for us...

  • UQ09F7ZFW
    UQ09F7ZFW Posts: 13 πŸ§‘πŸ»β€πŸš€ - Cadet

    do you extend @Sales/Layout/layout.twig in your template?

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 πŸ§‘πŸ»β€πŸš€ - Cadet

    that's right

  • UQ09F7ZFW
    UQ09F7ZFW Posts: 13 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited November 2019

    hm, I use the b2c demo shop @ docker. is that different from your setup?

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 πŸ§‘πŸ»β€πŸš€ - Cadet

    b2c as well

  • UQ09F7ZFW
    UQ09F7ZFW Posts: 13 πŸ§‘πŸ»β€πŸš€ - Cadet

    hm, i double checked path and cache, everything seems ok, but it doesnt work. did you also overwrite the controller?

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 πŸ§‘πŸ»β€πŸš€ - Cadet

    yes we've added some customizations into indexAction but in general it's the same as parent

  • UQ09F7ZFW
    UQ09F7ZFW Posts: 13 πŸ§‘πŸ»β€πŸš€ - Cadet

    hm, i will restart the vm once more. this is my last idea πŸ™‚

  • UQ09F7ZFW
    UQ09F7ZFW Posts: 13 πŸ§‘πŸ»β€πŸš€ - Cadet

    ok, now it works. first restart did not help, now it did. thank you for your help!

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 πŸ§‘πŸ»β€πŸš€ - Cadet

    np, glad to reassure you!