I am using the compare plugin and would like to move the "add to the comparison table" button from the listing details next to the listing title where it should be (along the "add to favorites" and RSS icons).

This means I had to move {rlHook name='listingDetailsPreFields'} from listing_details.tpl to content.tpl. However now I need to prevent it from displaying unless the listing detail is being displayed. I guess something like this should do the trick:

{if $pageInfo.Key == 'view_details'}
{rlHook name='listingDetailsPreFields'}
{/if}

...but this is not the right page key I need to use. Any hints or tips? Thanks!