Fork me on GitHub

Autotheme template for all modules  Bottom

  • I am using AT-Lite .8. I would like to make all my modules display much like blocks, with templated title and content. I have looked on the AutoTheme user forums to no avail. Anyone know how to do this?

    Thanks,
    Nick
  • Did you also post at the AT forums? icon_wink
  • I attempted to register to post to their forum, but never received an e-mail with my password.

    -Nick
  • Hi, if you mean multiple modules per page like blocks I can tell you that this is not possible.

    -Lobos

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • All I want to do is make a template that would apply to ALL modules, and would automatically put the name of the module on the page. I do not want custom module templates, this is for my entire site. Nor do I want multiple modules on the smae page.
    -Nick
  • Well that depends on what modules you have installed... the theme engine will try to overide any hardcoded themes... but some modules are not softcode insofar as themes... pnPHPbb2 is an example of this. It can often require a second theme style sheet, depending on your theme and style sheet.

    --
    David Pahl
    Zikula Support Team
  • OK, I am not sure if you are understanding what I am saying. I want to use the same theme template for my entire site (theme.html). Nothing custom for any modules. I want to be able to define a template (like area1.html) for *modules*, just like I do with blocks. So, when I put my module tag in the main theme template, it will use my module template such as "module.html" and insert the module name and module content.

    -Nick
  • Well you could always use pnModGetName(); - just add this to your template:



    This will get the name of the module.

    YOu will not be able to use modules like blocks, you can only have ONE module per page load (well you can use pnModLoad() ), but it would take quite a bit of work to acheive what you want.

    So basically use pnModGetName(); just before your tag and it will work on each page. Since you will only ever have one module per page load you don't need an external template - you add the HTML directly to the main theme template.

    -Lobos

    -Lobos

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • Thanks a lot. That should work exactly how I want it.

    -Nick

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