portsoc / linbeta

7 stars 3 forks source link

Allow DB entries to be parents of other entries. #33

Closed ear1grey closed 10 years ago

ear1grey commented 10 years ago

If DB entries can be parents or children of other entries, then the system can hold a hierarchy of links, so links can themselves 'be' categories and the initial categories can be better renamed as tags.

tpunt commented 10 years ago

I've attempted to implement this (see my fork), though I'm not entirely sure how you wanted it to work. The way I've done it enables you to add the URI of a parent link to a new child link. (Internally, this is done by searching the entries relation for the specified parent URI, and either returning the entry_id for that URI upon success, or null upon failure. This return value is then used when inserting the new child link for the parent_entry_id attribute value.) Displaying the links on the index page shows no sort of hierarchical structure yet though.

Is this something similar to what you were referring to?

ear1grey commented 10 years ago

Thanks Tom - very useful - I'll take a look (probably Tuesday) to see your ideas.

ear1grey commented 10 years ago

Implemented in ede92d7e002ce669cd986004fbcf1765277f514f