My apologies if this has been covered previously.

Using the current cvs version... Freelink stores link requests during preview submissions, so even if the referencing node is never created, the reference still exists. This means that links to non-existent content will show up in the "create this content" block, even if the "request" for the content creation was never actually submitted.

I fully realize this issue falls into the category of "depends on how you look at it." :-) However my feeling is that if the reference itself was never submitted, i.e. it never happened, then there should be no active request for the content creation. The record should not be recorded in the DB.

This is definitely not a showstopper. Just thought I mention it.

Great module. Thanks.

Comments

moggy’s picture

just brainstorming here.

could this be solved by using nodeapi hook?

when a node is saved(inserted or updated) it could be scanned for links created by freelinking and add them to the database if they don't already exist.

on a related note. perhaps adding a class="freelink" to links created by feelinking might be usefull?

moggy’s picture

Status: Active » Needs review
StatusFileSize
new5.63 KB

this patch fixes the problem of freelinks being stored in the database during preview by using the hook_nodeapi to find out when the editing has finished and the node data is committed to the database.

moggy’s picture

StatusFileSize
new5.64 KB

fixes a problem with some links not matching.

eafarris’s picture

Assigned: Unassigned » eafarris
Status: Needs review » Fixed

Committed an alternative version of this patch to HEAD. Many thanks, moggy, for all your help on this and other issues.

Anonymous’s picture

Status: Fixed » Closed (fixed)