Search code examples
phpdrupal-7

Add parameter to drupal content page


I have drupal content page url for specific view

?q=content/74055

i want my url as

?q=content/74055&type=nip

how can i add type=nip parameter


Solution

  • You can do it through following steps

    login to your drupal admin panel and go to edit view option

    1. add new field content: path
    2. uncheck "Create a label" option for it
    3. check "Exclude from display" option for it
    4. Now edit field name on which you want to add link
    5. choose "LINK IMAGE TO" option as "Nothing" for it
    6. Now in section of "Rewrite results" check "Output this field as a link" option
    7. paste "[path]&type=nip" in Link Path input field.