logic in templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chrispadfield
    Senior Member
    • Aug 2000
    • 5366

    logic in templates

    this came up somewhere else and i am wondering:

    is there any way to do login in templates something like:

    %if logged_in%

    <html> blah

    %else%

    blah

    sort of thing.

    Gossamer-threads.com do this on their templates (it is cgi etc so different i know!)

    but anyway, is it possible or something that could be added somehow, i can think of many uses.
    Christopher Padfield
    Web Based Helpdesk
    DeskPRO v3.0.3 Released - Download Demo Now!
  • Menno
    Senior Member
    • Apr 2000
    • 1224

    #2
    templates aren't parsed as php code
    you can however (almost as) easily add the code in the files.
    - Insert viable disclaimer here -

    ArtBeast!

    Comment

    • chrispadfield
      Senior Member
      • Aug 2000
      • 5366

      #3
      i guess the way to do it will be something like

      if notregistered - load this template
      and
      if registered - load this template

      type thing.
      Christopher Padfield
      Web Based Helpdesk
      DeskPRO v3.0.3 Released - Download Demo Now!

      Comment

      • Menno
        Senior Member
        • Apr 2000
        • 1224

        #4
        Yup, you got the idea
        - Insert viable disclaimer here -

        ArtBeast!

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...