Error in file list display

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
rattler

Error in file list display

Post 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.
rattler

Re: Error in file list display

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Error in file list display

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
rattler

Re: Error in file list display

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Error in file list display

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “CMSMS Core”