[geeklog-devel] new auto tags in gl2.1

Tom websitemaster at cogeco.net
Mon May 26 17:48:42 EDT 2014


>> Both auto tags could be very useful for plugins and need some clear
documentation.

True... This only works for items that are assigned topics. With the default
Geeklog install this includes articles and staticpages

[related_items:id type:plugin max:max_items_listed trim:max_length
include:plugin] 

related_items: - Id of item you want to display related items for
type: - the name of the plugin (article, staticpages, etc...) that the id is
for (since ids may not be unique). This is what is stored in the type column
of the topic_assignments table.
max: - max number of items to display
trim: - max character length of item titles
include: - default of this is to include all related types of items found.
You can specify only to return certain related items.

Related_topics works in the same way and returns a  list of all topics that
the item belongs to. You can see this in action on the article display page
by the "Filed Under" caption

When listed the items I believe the autotags use the standard COM_makeList
function found in lib-common.

Tom



-----Original Message-----
From: geeklog-devel [mailto:geeklog-devel-bounces at lists.geeklog.net] On
Behalf Of Wim Niemans
Sent: May-26-14 5:15 PM
To: Geeklog Development
Subject: [geeklog-devel] new auto tags in gl2.1


Two new auto tags are introduced: related_items and related_topics.

The related_topics auto tag is processed by the story/topic, but the
processing of related_items auto tag  gives plugin a change to to add
content.
However it is not clear where this content is inserted, and it is also not
very clear what the interface is. 
It seems that the glTypes, like article, link, etc, are not handed to the
plugins at all. 
The syntax [related_items:id type:plugin max:max_items_listed
trim:max_length include:plugin] is confusing. F.i. what is  'plugin' (2x) ?
And what is 'id' referring to?
Than the auto-tag must be inserted in the story text, but will not display
there?

Both auto tags could be very useful for plugins and need some clear
documentation.
Whenever these auto tags make it into a proper plugin call, it would be wise
to include the (calling) id and title in the interface since these fields
should be enough to generate related_links.

Thoughts?

Wim

_______________________________________________
geeklog-devel mailing list
geeklog-devel at lists.geeklog.net
http://eight.pairlist.net/mailman/listinfo/geeklog-devel




More information about the geeklog-devel mailing list