Skip to main content Help Control Panel

Login   A+   A-

Community «   Discussion forum «   Bug tracker «  

YACS code for a collection item?

avatarMorison, Rodney -- on Dec. 23 2005
I'm linking to items in collections in my posts...
Is there a better way than a general the YACS link=fullurlofcollectionitem code, like a collection specific YACS code?
Bernard
avatar
from nearby-an-airport
Associate, 6796 posts

on Dec. 24 2005


Not yet, but this is a very good idea. What code would you suggest?
Rod
avatar
52 posts

inspired from Bernard on Dec. 24 2005


Well, I supposed the problem is that collections are not "managed", in the sense they're indexed in the database. Rather, they are whatever's in the collection folders.

Perhaps making collections managed in this sense would be the way to go. I'm not close enough to the system design to suggest further at this point.
Bernard
avatar
from nearby-an-airport
Associate, 6796 posts

inspired from rod on Dec. 25 2005


Rod: You are right that YACS' collections are only a mean to wrap web access on top of existing directories. Files are not indexed in the back-end mySQl database.

But this does not prevent us to create smart codes to reference well-known items.

For example:

[collection=media, All media files]


would create a link to the collection index page, where

[collection=media/path/file, A very interesting file]


would download one individual file.
Rod
avatar
52 posts

inspired from Bernard on Dec. 26 2005


Bernard: It doesn't seem (to me) that this gets you much additional function over the link code, but if it comes with the appropriate icon for the media (qb_sound.gif for mp3's) that's worth a little something in uncluttering content source.

I'll spend some time thinking about what features would help to develop a multi-media site. The MarkLewisWorks.com site is still under development and we'll probably "re-skin" the site; as we go I'm sure we'll come across other features that might be helpful.
Bernard
avatar
from nearby-an-airport
Associate, 6796 posts

inspired from rod on Dec. 26 2005


Rod: I was thinking about something quite clever, meaning a link with some icon in it, of course.

Rate this page
Posted by Rod on Dec. 23 2005, commented by Bernard on Dec. 23 2005, (popular)