ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Seperating templates

August 16, 2007 3:32am

Subscribe [2]
  • #1 / Aug 16, 2007 3:32am

    homejsimpson

    3 posts

    Hey all.

    I’m integrating EE into a new project.

    I’ve got a 6 page website that’s fairly straight forward in terms of content that needs to be managed ( text areas, headlines ect..)

    here’s the tricky part, I’m using lightbox on each page so i assume each page/weblog will have to use its own lightbox template/include file ??

    Or can i have a global template/include that, respective of which page/weblog is calling it shows a lightbox slideshow ?

    And on a side note to be able to manage images does one just create a custom weblog field that allows users to upload imagery>?

    That’s all

    -HomeJ

  • #2 / Aug 16, 2007 4:10am

    Ingmar

    29245 posts

    You probably won’t need 6 separate templates, no, but it’ll depend on your setup. Post a few lines of a typical template here, so we can see how you’re making use of it.

  • #3 / Aug 16, 2007 4:25am

    homejsimpson

    3 posts

    still in the planning stage at the moment, thought i’d ask before diving into the code. 😊

  • #4 / Aug 16, 2007 4:29am

    Ingmar

    29245 posts

    Right. The question is, how do you pass the appropriate images to Lightbox? An XML file? Anyway, you should be able to get away with a single template, the rest changing as needed. But, as I’ve said, would need to see some code first.

    I have worked with Lightbox before, I seem to remember it was basically a question of including lightbox.js and giving the correct class name to the <img> tag. Not exactly rocket science, at any rate.

  • #5 / Aug 16, 2007 8:10pm

    homejsimpson

    3 posts

    awesome Ingmar - thanks for the help!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases