Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Motivation:
In a long task log it is sometimes a 'little' pain to find the warnings/errors.
The top right corner could have two links "First warning" and "First error" like the "First unread comment" in the issue queue.
This could either be done in JavaScript or as an html anchor
Additional thoughts:
* a summary of the number of warnings/errors...
* hovering 'skip to next' link
Comments
Comment #1
ergonlogicI've taken a first pass at this. It could be cleaned up in Eldir, and extended with the other suggestions...
Comment #2
helmo CreditAttribution: helmo at Initfour websolutions commentedThanks, it works nice when viewing the task log as a whole page. However it's not working for me via the overlay.
The query part e.g. '?render=overlay' is then lost.
Comment #3
ergonlogicThis works for me with the overlay... I don't see a
?render=overlay
query, though presumably we could build it back into the url.Comment #4
helmo CreditAttribution: helmo at Initfour websolutions commentedIn the address bar I see
#overlay=hosting/task/282
, but the iframe used in the overlay has the?render=overlay
query.Comment #5
ergonlogicPerhaps we need to add
target="_parent"
to the link, since that's the behaviour I'm seeing.Though, linking within the iframe would probably be better. Perhaps we need
request_path()
instead ofcurrent_path()
.Comment #6
ergonlogicI switched to
request_path()
, and addedtarget="_self"
. Could you pull in this latest commit, and try again?Comment #7
helmo CreditAttribution: helmo at Initfour websolutions commentedNo improvement here :(
Adding
'query'=> array('render' => 'overlay')
to the options array does help.I would expect drupal_get_query_parameters() to give us the current query, however I guess that the overlay module removes the render=overlay part.
Comment #8
ergonlogicOk, so now we set the query, depending on whether we're in an overlay child window or not.
Comment #9
helmo CreditAttribution: helmo at Initfour websolutions commentedGreat :)