Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Can XTE insert divs around module content like AT does?
  • Posted: 09.10.2005, 16:14
     
    MFoolsRun
    rank:
    Softmore Softmore
    registered:
     September 2004
    Status:
    offline
    last visit:
    02.11.07
    Posts:
    63
    Hi,
    I'm trying to convert from AutoTheme to XTE and I'm running into one major feature that makes AT alot easier to use in my case: the fact that AT automatically wraps my modules in
    tags.

    I've tried messing around with the Content Wrappers in XTE, but the Content Wrappers and Templates controls in XTE seem to affect the entire page, header, footer and all, rather than just the "content" area (I'm not sure if I'm explaining this well).

    I don't want to have to duplicate all of my header and footer code in each module's template just to get a customized
    tag around it. Is there a way to make XTE insert
    without making custom templates for each and every module?

    --
    M
  • Posted: 09.10.2005, 16:38
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    Yes... Add a div of id around the main content in each of themes page templates. i.e.

    Code

    <div id="<!--[$module]-->">
    <!--[$maincontent]-->
    </div>


    -Mark
  • Posted: 09.10.2005, 17:19
     
    MFoolsRun
    rank:
    Softmore Softmore
    registered:
     September 2004
    Status:
    offline
    last visit:
    02.11.07
    Posts:
    63
    Thanks! This seems like something that should be a default setting to me. It makes sense to be able to target modules for styling.

    Either way, thanks alot! I'm now 90% of the way to finally ditching AutoTheme :)

    --
    M

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula