Fork me on GitHub

[solved] Template overriding  Bottom

  • Has anything changed with 1.2 regarding the overriding of individual templates?

    The Wiki here states no differences but the HTML does not get overridden.

    I even tried

    Code

    /themes/<theme name>/templates/modules/<template path>/<language>


    without success...

    --
    Cheers, Sascha

    Philivision, Inc. - User of Zikula since 2002...
  • could be a caching issue. what theme are you working with - there was also a case-sensitive theme name problem that was corrected in 121...
  • The path you presented is definitely not the right one. override templates go in:

    Code

    /themes/<themename>/templates/modules/<modulename>/


    as they have since the feature was introduced. Try putting them in /config/templates/ and see if that works. If it does, it's somewhere in the theme, what is your theme? What module?



    edited by: HalbrookTech, datetimebrief

    --
    Home Page | Find on Facebook | Follow on Twitter
  • Thanks for the heads up, guys.

    It was indeed a caching problem since I forgot to tick the box "Compile Check" working on this new site... icon_mad

    BTW: Is there any chance to override the style.css from the javascript folder (where would the edited file go)?

    --
    Cheers, Sascha

    Philivision, Inc. - User of Zikula since 2002...
  • Quote

    Is there any chance to override the style.css from the javascript folder
    No, you can override the CSS there putting your theme styles at the final using

    Code

    <!-- pagevars -->


    And /themes//templates/modules// only works for modules that has custom templates for a language. ATM there are very few ones like that, like the Legal module templates.

    Greetings

    --
    - Mateo T. -
    Mis principios... son mis fines
  • There is.. I'm having trouble getting the forum to let me post the code, but if you look at this file, you'll see how i did the head tags for my base theme. This loads your styles last.



    edited by: HalbrookTech, datetimebrief

    --
    Home Page | Find on Facebook | Follow on Twitter
  • Quote

    And /themes//templates/modules// only works for modules that has custom templates for a language. ATM there are very few ones like that, like the Legal module templates.

    I presume that should read

    Code

    /themes/<themename>/templates/modules/<modulename>/<lang>


    --
    Home Page | Find on Facebook | Follow on Twitter
  • Thanks a lot for your help.

    This solves my problem.

    --
    Cheers, Sascha

    Philivision, Inc. - User of Zikula since 2002...

This list is based on users active over the last 60 minutes.