Ability to specify node type
djorn - March 3, 2007 - 18:41
| Project: | freelinking |
| Version: | 6.x-3.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
I'm developing a community-driven website, and one feature I would love to see is the ability to specify node type. For example, some of the members of the community will have biographies in the wiki, as well as having their own user profile (and perhaps blogs) on the website. In an effort to integrate everything seamlessly, I am hoping to be able to do features such as [[john doe]] to link to their biography, [[user:jdoe]] to link to their profile, [[blog:jdoe]] to link to their blog, [[event:winter workshop]] to link to an event. Would it be possible to do this via freetagging?

#1
I have a similar problem.
Actually I use freelinking and I have three different nodes types working with freelinking. It could be interesting to specify the node type in the freelink and add a option without default node type, because when I click in a link without content I only can add a node with the default type node.
#2
based on which criteria should the freelink determine the desired nodetype?
if a freelink only has the title of a non-existent node, how would be determinable which kind of node is desired to create when clicking on it?
#3
Hi -
There is a closed issue regarding a middle site...so a freelink leads to a site where the user can choose which content type they want to create their node as, and then of course the link brings them to that type. I believe the search function does this - if content isn't found, the user is prompted to choose which to use (although I can not seem to get this working, either).
Can anyone address this? I am running drupal 6 and wonder if I just don't have the right options enabled.
Thank you.
#4
Marking this postponed (needs info) for feedback.
In 6.x-3.x-dev, this would be handled by the plugins system or an argument to the nodetitle plugin. Based on the current plan, here is the direction Freelinking is taking:
Passing an Argument to the Nodetitle Plugin
[[pagetitle|Link Text|Tooltip|type=wiki]]This functionality will most likely be added in Alpha4, rather than the upcoming Alpha3.
Create a Plugin "subtype" of Another
Using the recently introduced failover system, you can create a plugin that provides syntax such as:
[[event:pagetitle]]And have it automatically load the equivalent of
[[pagetitle|Link Text|Tooltip|type=event]]This approach will be covered in developer documentation rather than packaged with Freelinking, as Freelinking does not assume any given content type exists.
Tackling User:Username
This is welcome as a shipping plugin for Freelinking. The uid needs to be queried from the database based on the supplied username.