0

I have a Page View that is being displayed as a table. Underneath that table I want to add a simple hyperlink.

I was looking into hook_views_pre_render but I do not see any way to do add this. I also tried hook_preprocess_node. In order to add an anchor tag underneath the table, I really don't know if I should be looking at view hooks or page hooks, or ?

Question: How do I add a hyperlink underneath the table of a Page View?

3

There's a few ways to do that.

  1. Edit View
  2. Click "Footer > Add"
  3. Add your footer HTML as "Global: Text Area"

Another way is to add a block on that page under the view.

  1. admin/structure/block/add
  2. Set page visibility to only your View page path
  3. Set region to "Content" below "Main page content"

If you want more control or placement, you can theme the View page

  1. Edit the View
  2. Click "Advanced > Theme > Information"
  3. You would override the page level "views-view.tpl.php" template renamed to match your View (e.g views-view--my-view.tpl.php ) in your theme dir.
1
  • The block approach fit my situation. Thanks for taking the time David. – user1706487 Jan 30 '13 at 15:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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