Using as much of the DNN framework as possible, we need a simple way to
- Find all the links to a file in a site
- Be able to update those links in bulk, e.g. point them all to a different file.
We can't simply overwrite the file that the links point to with a new version - the name of the file is important as it's a standardized naming convention that embeds metadata about the type of update. So I believe this will need to be some sort of extension or tool.
In our case, a 'link' is any URL reference to a file on the current portal, but for now I'm most concerned with links that occur within nomal content (e.g. in Text/HTML modules). These links are used in-line with content, and so aren't just those in a typical link-type module (documents, links module, repository, etc.).
My first thoughts are to use the features of the LinkClick.aspx functionality (which I believe is shared by Documents, Repositories, Links module, etc.). We need some type of indirection, e.g. files should be linked to via an ID that is a constant part of the link. LinkClick lets us do that - i.e. we can create links to documunts that are accessed via their id rather than name.
The second feauture is that we need some way to see all of the current links to an existing file - this is important so they can make appropriate content changes in addition to changing the file the link references. As far as I can tell, this will have to be a custom report - but in truth I'm curious if this can even be done. I can't tell from the database, after comparing how secured folders, document module, repository etc. all work, if it is possible to use how these feautures create their 'managed links' to find all of the links to a specific file.
I'd appreciate any and all thoughts! (I know a lot about DNN, but mostly older versions so also hoping to get some insight into any features versions after >4 that might help).
-Micah