Posts: 5
Threads: 2
Joined: Jun 2012
2013-03-01, 04:15:43
(This post was last modified: 2013-03-02, 01:28:54 by yck.art.)
Is there already an implemenation to get user uploads with template tag or an equivalent function?
Maybe something like this:
PHP Code:
<?php get_uploads("foo.png") ?>
Perhaps a tag for the uploads is enough?!
I think that would be a great help!
Posts: 2,928
Threads: 195
Joined: Feb 2011
no: see here: http://get-simple.info/wiki/themes:template_tags
you should check the EXTEND and search for a plugin...
Posts: 6,267
Threads: 182
Joined: Sep 2011
It isn't really necessary, just use the global for the gsuploads path
Posts: 5
Threads: 2
Joined: Jun 2012
2013-03-02, 00:49:10
(This post was last modified: 2013-03-02, 01:48:59 by yck.art.)
(2013-03-01, 23:40:54)shawn_a Wrote: It isn't really necessary, just use the global for the gsuploads path
Yeh, nice that's what I looked for. Thanks!
`GSUPLOADPATH` and `GSUPLOADSPATH` is undefined, however `GSTHUMBNAILPATH` works.
Is the gsuploads path documented somewhere?
Update
Ok, got it: `GSDATAUPLOADPATH`: https://github.com/GetSimpleCMS/GetSimpleCMS/blob/master/admin/inc/common.php#L83