1

I have a blog with URL http:/node/add/blog and I am using a view discussion board to display the content of blog using VIEWS.

I want to add this URL http:/node/add/blog to Header view. Any idea? How to do it?

2
  • you just want to print this string 'http:/node/add/blog' at top of view? If that is your requirement just add one text area in views header and add that text in that text area. Otherwise please be more specific on your issue. That url is dynamic?
    – Cool
    Commented Feb 18, 2014 at 14:01
  • If you want to print the URL arguments in headers VIEWS then use PHP code (Global: PHP field)
    – Inizio
    Commented Feb 18, 2014 at 14:04

1 Answer 1

0

You can use arg() function to access the url parameters.

Returns a component of the current Drupal path.

When viewing a page at the path "admin/structure/types", for example, arg(0) returns "admin", arg(1) returns "structure", and arg(2) returns "types".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.