How are theme elements included?

Discussion in 'Developers' Forum' started by jazzle, Feb 27, 2012.

  1. jazzle

    jazzle New Member

    Hey there,

    I want to create a theme for ISPconfig according to Twitter's Bootstrap. This should not be too much work, but I can't get around how the ISPconfig themes are composed. I understand how the main.tpl.htm is the main page and how the other .tpl.htm files are the specific elements like navigation, but I would expect some kind of includes in that main.tpl.htm page that calls for the other interface elements but there aren't any.

    Where is it defined where the, for example, topnav.tpl.htm should go?

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    All theme elements are loaded with ajax, so what matter are the id names of the div elements. E.g.:

    <div id="topNav">&nbsp;</div>
    <div id="sideNav">&nbsp;</div>
    div id="pageContent"><!-- AJAX CONTENT --></div>
  3. jazzle

    jazzle New Member

    Thanks!, yes I understand that jquery selects the divs by ID, but I'd like to edit the names of the IDs it calls, I just cannot find where they are defined. Or is this defined somewhere in a dir that might get overwritten in an update?
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    They are defined in the sourcecode, so you can not change them without loosing the ability to install updates on your server.
  5. jazzle

    jazzle New Member

    Okay thanks, I will need to work around that limitation then :)

Share This Page