I would like to override a Views-generated block's "Content: Title" field's href
path (linked to nodes with "Link this field to the original piece of content") to append a query string ($_GET['page']
).
An example:
this is the generated link:
<a href="/my_drupal_subdir/hu/my_test_alias/blabla" class="views ...">Blabla</a>
I would like this one:
<a href="/my_drupal_subdir/hu/my_test_alias/blabla?page=0,0,2" class="views ...">Blabla</a>
I would like to override the path and append a query string before it gets rendered as an HTML-link (<a>
).
How should I do this? I think Views uses views_handler_field_node::render_link() and views_handler_field::render_as_link() which calls function l() or sg. like that which should be overridden. Of course, overriding theme_link() for modifying ALL the links is not a good way.
Here's an export of the simplest possible block view for Articles with pager id 3; the titles are linked:
http://pastebin.com/tmq0kZwT
I want to override the title links of this list to append a query string (to remember the actual pager when clicking on a node).