In #613236: Freelinking 3 - Roadmap, I list a few bullet items that were on my mind one day. One appears as so:
5. Plugins may opt-in for distinct links in a page to be added to the node links. (Useful?)
Use Case: Create a block that shows each unique "wanted page" that results from freelinking_nodetitle failing to find a valid node.
In examining this (and implementing part of it in freelinking.module), the node links do not make sense. This is definitely a case for a block.
Assuming this should be part of Freelinking itself, I am looking at caching the array of unique links. This makes sense to me as the links are regenerated as the cache_filter gets reset. Is this a database cheat, or a logical destination for this data?
The idea here is to avoid needing to implement a cron job that checks the markup and then uses further regular expressions to re-extract the links. However, if the real value in a feature like this is to capture all links, then such a scraper would be necessary.
Comments
Comment #1
arhak commentedIMHO this might perfectly go in another module having the required hook being provided by freelinking
I agree eafarris about leaving freelinking without DB, but hooks should be provided instead for other modules be able to provide such functionalities.
Comment #2
Grayside commentedThis is a rolling post covering the kinds of end-goals the FL3 API needs to keep in mind. In some cases, it may make more sense for the functionality to be provided by a specialized link indexer.
<a href="add/node/story">, possibly with further arguments. Those would be ignored by a Freelinking Plus type of system.hook_nodeapi()to check the titles/etc of new content. If it matches the wanted pages in the database, those linking nodes are cache-cleared and index-wiped. Predominantly for Freelinking.Comment #3
arhak commentedexisting pages, wanted, missing/broken, and so on.. might have theming support as well
#621586: Theming support
Comment #4
Grayside commentedOne of the key features desired for #314860: i18n: language (locale) not taken into account for finding title depends on the language settings of the linking/source node. Unfortunately, because text from a node has no idea where it comes from, and can be seen in a number of different pages, the language cannot be definitively found.
It is probably beyond the capacity of the FL3 API to provide (and probably the Input Filter system in general), but a grand database-driven Freelinking enhancement module should consider how it might track canonical origin values for individual links.
Comment #5
gisleThis is beyond the scope of Freelinking.