By dazz on
On a normal overview page most off the time you have an action link (from $action_links), like 'add content'.
How can i add a link like this on a custom view i created?
On a normal overview page most off the time you have an action link (from $action_links), like 'add content'.
How can i add a link like this on a custom view i created?
Comments
Thank you jessicwill for your
Thank you jessicwill for your contribution, i found it really helpful.
My solution: a custom module with the following hook:
Make sure $action_links are printed in your theme's page.tpl.php
Thx, that works for me
Thx, that works for me
But it doesnt work with
But it doesnt work with views?
Maybe this link can help
Maybe article http://drupal.org/node/1517916 can help ?
Adding the bit about $action
Adding the bit about $action_links being printed in the theme was really helpful - that ended up being the problem!
--
-john
Add actions to a view
This worked for adding actions to a view:
what if there is contextual filter present
I have a view for user/%/article-posted and trying to add a button for 'Add a Blog'.I used the below code.
I also tried
But none of these seem to work
I just wanted to reuse an
I just wanted to reuse an existing action link for Add file, so this worked for me:
I added a Header to my view using Global: unfiltered text.