Does anyone know how to list a set of files based on the tags given to it in the filemanager ?
Kindest regards,
Julius
How to list files on category or TAG bases
How to list files on category or TAG bases
A website is a concept not a digital brochure ! Vectrus Internet Solution
Re: How to list files on category or TAG bases
Hi,
I think for this we need an enhanced [dowload=id,id,id/] tag like [dowload=tag,tag,tag/] or
a new one like [filelist=tag,tag,tag/] or [filelist=filecentercatID/]
Knut
I think for this we need an enhanced [dowload=id,id,id/] tag like [dowload=tag,tag,tag/] or
a new one like [filelist=tag,tag,tag/] or [filelist=filecentercatID/]
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Re: How to list files on category or TAG bases
And how, where do we get this.
AT this moment we're building our new website (old one http://www.uvw.nl) in phpwcms since we like this way better than our current CMS wich costs is too much money The website is a pretty big "Potrtfolio"website regarding phpwcms i think. But that aside.
Has anyone done this before, will Oliver fix this soon (i already saw it was a feature request, but pretty old)
Or will this F**K up my planning 'cause i have to do it myself once more as a hack that will probably unable me to to an easy upgrade of the core cms ?
PLEASE PLEASE PLEASE (I'm on the ground begging ))
@Oli, i'd realy realy prefer a decent Oliver one so other people may benefit as well.
GruSS aus Holland
Julius
AT this moment we're building our new website (old one http://www.uvw.nl) in phpwcms since we like this way better than our current CMS wich costs is too much money The website is a pretty big "Potrtfolio"website regarding phpwcms i think. But that aside.
Has anyone done this before, will Oliver fix this soon (i already saw it was a feature request, but pretty old)
Or will this F**K up my planning 'cause i have to do it myself once more as a hack that will probably unable me to to an easy upgrade of the core cms ?
PLEASE PLEASE PLEASE (I'm on the ground begging ))
@Oli, i'd realy realy prefer a decent Oliver one so other people may benefit as well.
GruSS aus Holland
Julius
A website is a concept not a digital brochure ! Vectrus Internet Solution
Re: How to list files on category or TAG bases
Please don´t hack the core. There is no reason to do so.
All you need is an enhanced tag like [xdownload=tag1,tag2,tag3..../] or/and [xdownload=f:folder-id1,f:folder-id2,f:folder-id3 ..../]
The basic function allready exists -> [download=ID, ID ,ID] file-1 file-2 file-3[/download]
Cut out the "function parse_downloads($match)" from \include\inc_front\ext.func.inc.php,
put it into a file /frontend_render/rt_xdownload.php and enhance this function to search tags and/or IDs in phpwcms_file table.
Catch the IDs -> voila you have a clean output by using the basic function from "CP filelist" with a specified template!!!
Or have direct call to OG or make a donation in wiki ......
wiki: phpwcms_file table
Knut
All you need is an enhanced tag like [xdownload=tag1,tag2,tag3..../] or/and [xdownload=f:folder-id1,f:folder-id2,f:folder-id3 ..../]
The basic function allready exists -> [download=ID, ID ,ID] file-1 file-2 file-3[/download]
Cut out the "function parse_downloads($match)" from \include\inc_front\ext.func.inc.php,
put it into a file /frontend_render/rt_xdownload.php and enhance this function to search tags and/or IDs in phpwcms_file table.
Catch the IDs -> voila you have a clean output by using the basic function from "CP filelist" with a specified template!!!
Or have direct call to OG or make a donation in wiki ......
wiki: phpwcms_file table
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Re: How to list files on category or TAG bases
Thanks Knut,
I've asked oliver in an personal mail for one thing as i still beleive all should benefit in the community. I hope the address was correct
Also thanks for the wiki site, i've actualy never seen it before.
and third, always nice to get a direction to take and and some good advise.
PHPWCMS rules and so does it's community, THE reason we've chosen phpwcms as CMS for all our websites.
Julius
I've asked oliver in an personal mail for one thing as i still beleive all should benefit in the community. I hope the address was correct
Also thanks for the wiki site, i've actualy never seen it before.
and third, always nice to get a direction to take and and some good advise.
PHPWCMS rules and so does it's community, THE reason we've chosen phpwcms as CMS for all our websites.
Julius
A website is a concept not a digital brochure ! Vectrus Internet Solution
Re: How to list files on category or TAG bases
@oliver..... did you get my mail by any chance ?
JK
JK
A website is a concept not a digital brochure ! Vectrus Internet Solution
Re: How to list files on category or TAG bases
If Oliver does not show any activity or answer , please have a look:
Ready to go:
But I will not publish it without any recognition.
Knut
Ready to go:
Code: Select all
/**
* *****************************************************************************
* 14.05.2010 K.Heermann http://planmatrix.de
* File download selected by Tags or image ids or filecenter folder id
*
* Tags:
* - [xdownload= t: tag1,tag2,tag3/] // tags
* - [xdownload= f: id1, d2, d3/] // folder ids
* - [xdownload= id1, id2, id3/] // image ids
*
* possible opportunities:
* - Output: template based like filelist
* - tag search is "word sensitive" or "all character strings" [ungreedy|greedy]
*
* - sort order
* - sort_asc / sort_desc
* - tstamp_asc / tstamp_desc
* - name_asc / name_desc
* - ext_asc / ext_desc
* - type_asc / type_desc
* - shortinfo_asc / shortinfo_desc
* - longinfo_asc / longinfo_desc
* - copyright_asc / copyright_desc
*
* - file description line: info from filecenter
* FILE_DESCRIPTION|FILE_NAME|FILE_TITLE|_target|WxHxC|Copyright
* - FILE_DESCRIPTION = long info
* - FILE_NAME = filename
* - FILE_TITLE = short info
* - _target = set up in RT (see in CUSTOM VAR or template)
* - WxHxC = set up in RT (see in CUSTOM VAR or template)
* - Copyright = copyright
*
* *****************************************************************************
*/
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )