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

Dizkus

Bottom
page dependant content (if / else)
  • Posted: 02.02.2006, 06:45
     
    X³
    rank:
    Freshman Freshman
    registered:
     January 2003
    Status:
    offline
    last visit:
    02.02.06
    Posts:
    5
    hi,
    hopefully this is simple, (sorry if it's too simple!)
    i would like to show some content dependant on the page / pages being viewed,

    a bit like:

    Code

    if (!pnUserLoggedIn()) {
    include("thiscontent");
        } else {
    include("thatcontent");
        }


    but more:

    Code

    if (!pnPageIndex()) {
    include("thiscontent");
        } else {
    include("thatcontent");
        }

    performed some searches here and in google but to be honest
    it's been a long time since i last used PostNuke, and I'm unsure of where to look anymore... .. .

    can anyone help fill the blanks in my brain?
    any help appreciated :D (born again n00b)

    10 goto 20
    20 print "omg help!"
    30 goto 10
    ... .. . run
  • Posted: 02.02.2006, 07:24
     
    cannibus
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    20.09.08
    Posts:
    401
    as far as users, i would use permissions,

    and there are two options, if you are doing a pnrendered module, it can be done in the templates.

    or you can determine which template to call from the function. the Example module shows both ways i think.

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula