Results 1 to 6 of 6

Thread: Custom template folder in theme

  1. #1
    New user
    Join Date
    11-16-10.
    Posts
    10

    Default Custom template folder in theme

    I'd like to link a template folder in my theme for the ones I customise.
    I understand this is in the theme settings, however it doesn't allow me into the file system browser.
    When I click to change the setting it doesn't pull up the file browser, just the "reset selection".
    Works fine for "Folders" and "Screenshot" though.

    Here is why I want to do this:
    I need to set the footer outside of the div wrapper for this theme only. If I change it in the Templates section it will apply it to all of the themes.

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default Re: Custom template folder in theme

    Hi ashia,

    Quote Originally Posted by ashia
    I'd like to link a template folder in my theme for the ones I customise.
    I understand this is in the theme settings, however it doesn't allow me into the file system browser.
    When I click to change the setting it doesn't pull up the file browser, just the "reset selection".
    Works fine for "Folders" and "Screenshot" though.
    That's correct. You have to do this in the back end module "Templates". There you can create a new template folder.
    After that, this folder can then be assigned to the corresponding theme.
    Contao Community Moderator
    → Support options

  3. #3
    New user
    Join Date
    11-16-10.
    Posts
    10

    Default Re: Custom template folder in theme

    Ah, I see. Missed that New folder button in the Templates.
    Do these custom templates apply to all themes and content? How do you limit it to a specific theme?
    Let's say I have a site with some content. There are two themes. They get changed sporadically.
    One theme needs a custom page template (needs some divs moved around) and the other one doesn't.

  4. #4
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default Re: Custom template folder in theme

    Quote Originally Posted by ashia
    How do you limit it to a specific theme?
    In the back end module "Themes" you can assign for each theme a corresponding template folder.
    Contao Community Moderator
    → Support options

  5. #5
    New user
    Join Date
    06-18-12.
    Posts
    6

    Default Re: Custom template folder in theme

    Is it possible to use different template for one theme?

  6. #6
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default Re: Custom template folder in theme

    Yes, of course. See the themes settings and the page layout settings, respectively.
    Contao Community Moderator
    → Support options

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •