Page 1 of 1
Error in file list display
Posted: Thu Sep 28, 2006 12:14 am
by rattler
I'm trying to get the uploads module to work.
I have a single tag(?) in my downloads page that says:
{cms_module module="Uploads" category="lessons" mode="summary"}
But when I go to the downloads page, I get the following:
http://teachforchange.org/index.php?mac ... id=52 dr. d 2006-09-27 16:39:10 34 Details Template for Learning Style lesson plan Template for Learning Style lesson plan
I get the same results when I set the mode to detailed. Also, I get error messages when I set the mode to single or singesummary.
I'm using v.1.0.2
Here's the link to my downloads page:
http://teachforchange.org/index.php?page=downloads
any ideas?
tia,
r.
Re: Error in file list display
Posted: Thu Sep 28, 2006 1:20 am
by rattler
Update:
I commented out the following tag from the Uploads Module's "Detailed" template:
{$entry->download_url}
I can't really tell if that tag is working properly or not. If so, why would anyone want to display that information?
At any rate, I don't that weird display now.
Re: Error in file list display
Posted: Thu Sep 28, 2006 2:04 am
by calguy1000
I checked out the link and couldn't see any error messages. Can you try putting back the detail url, and seeing what happens, and maybe (if you can't leave it live), post a couple of screenshots so that I can see the problems you're having.
The default summary template for the uploads module uses a table (I know, it's bad, no comments from the peanut gallery please). So it would show up strangely, and overflow some things. But the template is changeable.
Hope I can be of more help.
Re: Error in file list display
Posted: Thu Sep 28, 2006 4:07 am
by rattler
The error no longer shows because I removed the $entry->download_url tag in the template.
I made some sceenshots so you can see how it looks. Unfortunately, alt-printscreen wasn't very faithful in reproducing what was on the screen so it took two screenshots to get most of the error message.
http://www.teachforchange.org/bad/ulmodulebad1.gif
http://www.teachforchange.org/bad/ulmodulebad2.gif
Be aware that the files are 800x600 and 1200x768.
Thanks...
r.
Re: Error in file list display
Posted: Thu Sep 28, 2006 2:57 pm
by calguy1000
a) when you use single, or singlesummary mode you need to specify an upload id as well on the tag.
b) there's no error here. The download_url is there for completeness, you can take it out at your leisure. I actually added it for somebody at one point in time, but can't remember what the reason was anymore.
Just take out the download_url thing and you're laughing. I'd also recommend that you change the summary template to not use a table

or to do some styling of that table.