Gate Page / Login using one value

Discussion in 'Drupal' started by pom4ik, Jan 17, 2013.

  1. #1
    Hi,

    I have a small project I am working on and was wondering if I can get some advice.
    The structure is a follows:
    ParentSite (http://drupalsite)
    child1 (http://drupalsite/child1)
    child2 (http://drupalsite/child2)
    child3 (http://drupalsite/child3)

    All the parent site has is one page with a textbox asking the user to enter a value (PIN)
    based on the pin they should be redirects to one of the child sites. no access to child sites unless the pin was entered.

    i am new to Drupal any advice is appreciated.

    thanks!!!
     
    pom4ik, Jan 17, 2013 IP
  2. Sano000

    Sano000 Active Member

    Messages:
    52
    Likes Received:
    4
    Best Answers:
    5
    Trophy Points:
    53
    #2
    Maybe you can use module Rules, but it will be hard to config it for this things.

    Other way, if you have programmer skills - you can create table, which associate PINs with categories (taxonomy). Table can contain common or individual PINs. User submit PIN, take cookies and redirected to category. If he haven't cookie - permission denied. There is no needed registration for this way, and you can control access to your pages.
     
    Sano000, Jan 20, 2013 IP
  3. pom4ik

    pom4ik Greenhorn

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    16
    #3
    Thank you for the advice ... that was my original idea - but thought i'd ask if Drupal has a module for this ..

    cheers
     
    pom4ik, Jan 21, 2013 IP
  4. ryan_uk

    ryan_uk Illustrious Member

    Messages:
    3,983
    Likes Received:
    1,022
    Best Answers:
    33
    Trophy Points:
    465
    #4
    Have you taken a look at the webform module? You might be able to achieve that with it. I've never tried, but I believe it can do redirection based upon user-input.
     
    ryan_uk, Jan 29, 2013 IP
  5. pom4ik

    pom4ik Greenhorn

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    16
    #5
    I ended up creating a custom template file with a form which creates a cookie and redirects the user based on the input ...
     
    pom4ik, Feb 12, 2013 IP
    ryan_uk likes this.