I have an asset listing which is effectively displaying table of contents (parent page with an asset listing displaying all the children).
I’d like to unlink the page I’m on from the asset listing. A great example is on GOV.UK. The page you are on is displayed but unlinked. This is the functionality I want to replicate.
Any help/advice on how to achieve this in Matrix would be awesome.
I think you’ll need to change the second use of asset_url in that conditional.
%begin_asset_url^eq:{frontend_asset_url}%
That way you’re comparing the URL of the asset currently under consideration by the listing, with the URL of the asset that corresponds with the URL of the request.