Posted on: 08/25/04 08:57pm
By: Euan
I just had a thought.... topics and links. I've added some fields to the glinks plugin database so that in the near future I can try messing around with associating links and categories with topics, so that you can show links in a centerblock or sideblock whenever you show a particular topic. Would anyone fine this useful? I'm not sure myself, but it would be easy to do and someone might want it I guess...
Cheers,
Euan.
links and topics
Posted on: 08/25/04 09:25pm
By: Blaine
Euan,
I agree and think there is a need for a plugin API that could be called to parse any content being posted to look for custom plugin tags. This could then be added to stories, comments, forum posting and other plugins.
The [tag] would be then be a interpeted by the desired plugin and replaced with the formatted HTML.
I recently developed a CMS plugin that integrated with a Document Mgmt Plugin where you could just enter and when the content on that page was being saved, it would scan and replace the [tag] with a link to the file (id#1) with a the name "myfile". So the resulting content for that page would have the resulting link formatted.
It would be possible to then have tags like:
related topic
[glink: 4 mysite]
[story sid# related story]
Format would be [plugin: uniqueID name for link]
The Story SID is a bit long for easy use so there may need to be a new field in that table added. Most other plugins have a ID field.
Components (like plugins or stories) could even show the [tag] that needs to be used to link to it. I think it's a good way of easily integrating components.
As I noted, I have this working now between two plugins and will be talking to Dirk about extending the Plugin API.
Would this address your need as well?
links and topics
Posted on: 08/25/04 10:29pm
By: Euan
Hi Blaine,
Yes, that would be a great idea. A little more than I had in mind, but yes, that sounds very reasonable. This would be a little like the static page hack I posted some time ago that allows you to do a similar thing:
[SP: spid]
which would create a link to that static page. Someone else enhanced it a little more if I remember.
One of the principles I believe in is that all plugins and the central Geeklog should be able to talk to each other and make information available/use each others' information as much as possible. This would be a step in the right direction, so more than welcome.
On that line, if anyone has any hooks etc that they want implemented in the Glinks plugin, so that it can return data to/accept data from other plugins, then let me know.
Cheers,
Euan.
links and topics
Posted on: 06/15/05 10:48am
By: beewee
[QUOTE BY= euan] I just had a thought.... topics and links. I've added some fields to the glinks plugin database so that in the near future I can try messing around with associating links and categories with topics, so that you can show links in a centerblock or sideblock whenever you show a particular topic. Would anyone fine this useful? I'm not sure myself, but it would be easy to do and someone might want it I guess...[/QUOTE]
Euan, did this ever get any further? One my friends wants to set up a link portal, with portal blocks with RSS feeds in the center, so this option would be just what we need. BTW I'm using Glinks since a while on another portal and I love it, great work.