Linking between asset listings with page anchors


#1

Matrix Version: 5.3.4.0

I have 2 asset listings with the same source folder which i want to use to displays some short notices.

One asset listing displays the linked title, and sits in the homepage sidebar, the other displays the full content of all the notices on a separate page.

What I’m trying to do is link from the sidebar to the notice on the main notices page, with an anchor (which uses the asset ID to ensure each one is unique) not to the notice web path (as each asset has its own URL).

I’m struggling to figure out how to link directly to an anchor on the main notices page though. Something like http://example.com/notices#123456

Is it a parent ID I’m looking for?


#2

Doh, I figured it out after realising what it was I was trying to do. I guess it helps to write it out.

a href=./?a=123456#%asset_assetid%">%asset_name%

That will take a user from a linked title on one page to the main notice on another which is using its asset ID as its page anchor.

Hope that’s useful for someone else.