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?

Comments

oriol_e9g’s picture

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.

arhak’s picture

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?

Tine1025’s picture

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.

Grayside’s picture

Version: 5.x-1.2 » 6.x-3.x-dev
Status: Active » Postponed (maintainer needs more info)

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.

sadist’s picture

Has this already been in the current version already? I'm trying to have this function for my site, but I couldn't get any informations about this.

misc’s picture

@sadist: which version of Freelinking are you using?

sadist’s picture

Hi MiSc, I'd tried using 7.x-3.1

Thanks for asking. I am still trying to find the guide to enable and use that feature.

misc’s picture

To do this you have to write your own plugin. If you check the plugins that comes with the module maybe you could figure out how you should do it?

sadist’s picture

Thanks MiSc. That was what I was trying to do, but I'm not a pure programmer. Just some simple codes-copying here and there. By reading this thread, I thought there's already such function in this module.

gisle’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (works as designed)

The system described in #4 has been implemented as a plugin framework in Freelinking 3.

To take advantage of this, you need to be a developer. The file PLUGIN.txt provides developer documentation.

If you have specific questions about plugin development that are not answered in PLUGIN.txt, please open a support request issue.