Problem in creating panels.

Discussion in 'Drupal' started by m94, Nov 9, 2010.

  1. #1
    hello i am using drupal 6 "ultimate community site guide book" for making a community site. Now i am creating panels but i cant understand properly what it say to do the following are the steps:

    "1. Create a panel page (/admin/panels/panel-page) (Panels module).
    2. Choose a layout, let’s take the “Two Column Stacked” layout.
    3. Name the panel “profile”.
    4. Here is the tricky part: set the path to “node/%”, by doing this all of
    the node/3, node/4, node/5, . . . pages will be replaced by this panel,
    and the argument % will be passed to the panel.
    5. Leave the advanced settings as they are.
    6. Define a context: add the argument3 “node ID” (fig 4.6), select the
    content type Profile (for content type and own display).

    We have successfully created a panel page that will take over all the profile
    pages and treat the argument (that is the % in the URL) as a node ID. By
    adding the argument node ID and restricting it to “profile”, we only take

    3An argument is a part of the URL that contains information about the page that is
    being displayed. In this case, it is the % in node/%"

    can anyone explain this in detail and also tell me how to add "argument" i cant understand what is this. please help me
     
    m94, Nov 9, 2010 IP
  2. cjscully

    cjscully Active Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #2
    Unfortunately I'm not too familiar with Panels so I can't give you specific advice on that module. In general though an 'argument' is a piece of information (variable) passed to a PHP function. In the case of contrib modules they usually come with certain default values set for various settings. You can change these things to customize the way the module behaves. If you don't change the settings (arguments) that are passed to the module's functions it may not do what you want it to.

    The quoted text says to "set the path". I'd reckon that there's someplace on the settings page for the panel you created where you enter dupal path information. That's where you put the 'node/%'.
     
    cjscully, Nov 9, 2010 IP