0
Welcome Guest! Login
0 items Join Now

SOLVED modifying error.html.twig

    • Randy Carey's Avatar
    • Randy Carey
    • Rocketeer
    • Posts: 77
    • Thanks: 0
    • web architect, book/magazine author

    SOLVED modifying error.html.twig

    Posted 8 years 1 month ago
    • I copied error.html.twig (from /media/gantry5/engines/nucleus/twig) and pasted it into /templates/g5_hydrogen/custom/particles as specified in the documentation. My changes in the overriding copy are not taking ahold, but a slight change in the original directory does show up. Further, I do not see a yaml file for error.

      The error.html.twig file is set up to be overridden. Right? I cleared cache, reloaded the outline, readded the content particle to the layout ... but I'm not seeming my change come across. Any ideas what I might be missing when trying to override error particle? (What I'm tyring to do edit the content structure of the error page.)
    • Last Edit: 8 years 1 month ago by Henning.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED modifying error.html.twig

    Posted 8 years 1 month ago
    • Randy Carey's Avatar
    • Randy Carey
    • Rocketeer
    • Posts: 77
    • Thanks: 0
    • web architect, book/magazine author

    Re: SOLVED modifying error.html.twig

    Posted 8 years 1 month ago
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED modifying error.html.twig

    Posted 8 years 1 month ago
    • it says:

      /media/gantry5/engines/nucleus
      to
      TEMPLATE_DIR/custom/engine

      the path in that other link
      ROOT/media/gantry5/engines/nucleus/particles/ and paste the copies to TEMPLATE_DIR/custom/particles

      is correct for particles. The file you want to override is not a particle ...

      This maybe also of interest for you:
      gantry.org/blog/gantry-5-developers-perspective
    • Last Edit: 8 years 1 month ago by Henning.
    • Randy Carey's Avatar
    • Randy Carey
    • Rocketeer
    • Posts: 77
    • Thanks: 0
    • web architect, book/magazine author

    Re: SOLVED modifying error.html.twig

    Posted 8 years 1 month ago
    • Thanks. That info (error.html.twig not being a particle) was what I was missing.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED modifying error.html.twig

    Posted 8 years 1 month ago
    • Hi Randy,

      can we mark this as solved?
    • Randy Carey's Avatar
    • Randy Carey
    • Rocketeer
    • Posts: 77
    • Thanks: 0
    • web architect, book/magazine author

    Re: SOLVED modifying error.html.twig

    Posted 8 years 1 month ago
    • Certainly. (I didn't see the option for me to mark this as solved)
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: SOLVED modifying error.html.twig

    Posted 8 years 1 month ago

Time to create page: 0.059 seconds