Skip to the content
Documentation

Inlude templates located into override

No ratings yet

Hi,
Is there anyway to include a template located into mydesign/override/templates/... by using this function ?
I do not succeed although I tried several syntax...

Comments (3 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. Re: Inlude templates located into override

    André R. ·

    You could in 3.x but not in 4.0 and higher. Now overrides/ are for overrides.

    1. Re: Re: Inlude templates located into override

      Adrien ·

      And include follow overrides. So you can't include the original template into an override template. Which could have been useful. Now to factorize design (same design, different data_map) I often write a generic template at the root of design and include it into the view and her overrides.

    2. Re: Re: Inlude templates located into override

      pike ·

      I've been able to include a template located in the design/override folder in a template located in the design/templates folder, if that is the question. in ezp 4.0.3,

      {include uri="file:design/yourdesignhere/override/templates/yourstuff.tpl"}

      worked,
      *-pike