Jump to content

MatthewSchenker

PW-Moderators
  • Posts

    677
  • Joined

  • Last visited

  • Days Won

    2

Community Answers

  1. MatthewSchenker's post in Posting date modified for page? was marked as the answer   
    Greetings,
    As always, ProcessWire makes it easy!
    Here you go:
    <?php echo date("F j, Y", $page->modified); ?> Thanks,
    Matthew
  2. MatthewSchenker's post in Accessing page with querystring was marked as the answer   
    Greetings,
    Assuming you have your users logging in before they try to access the page in question, you could use something like this:
    <?php if ($user->isSuperuser() OR $user->hasRole("admin")) // If user has one of these roles, he/she sees the page. { if ($input->get->project == 14) // Test if the query string has this value. { ?> <div class="private"> Do Whatever You Need Here </div> <?php } } ?> Everything that can only be seen by authenticated users goes into the "private" div.
    Thanks,
    Matthew
×
×
  • Create New...