Page 1 of 1
Uploads Module Template Help
Posted: Sun Oct 26, 2008 9:24 pm
by JaymeNYC
I'm creating a restricted page for file downloads and I'm trying to change the way the files are displayed. Right now I have
Code: Select all
{ if $ccuser->loggedin() }
{cms_module module="Uploads" category="downloads" mode="summary" sortorder="date_desc" detailtemplate="default"}
{else}
<p>This is a private area.</p>
{cms_module module=FrontEndUsers form="login" nocaptcha="1" returnto="$page_alias"}
{/if}
Does any1 know why its not working?
Re: Uploads Module Template Help
Posted: Mon Oct 27, 2008 7:34 pm
by JaymeNYC
can any1 help?
Re: Uploads Module Template Help
Posted: Mon Oct 27, 2008 8:07 pm
by alby
JaymeNYC wrote:
I'm creating a restricted page for file downloads and I'm trying to change the way the files are displayed. Right now I have
Code: Select all
{ if $ccuser->loggedin() }
{cms_module module="Uploads" category="downloads" mode="summary" sortorder="date_desc" detailtemplate="default"}
{else}
<p>This is a private area.</p>
{cms_module module=FrontEndUsers form="login" nocaptcha="1" returnto="$page_alias"}
{/if}
Does any1 know why its not working?
You must put out {cms_module module=FrontEndUsers form="login" nocaptcha="1" returnto="$page_alias"}
how do you make a logout?
Alby
Re: Uploads Module Template Help
Posted: Mon Oct 27, 2008 8:20 pm
by JaymeNYC
alby wrote:
JaymeNYC wrote:
I'm creating a restricted page for file downloads and I'm trying to change the way the files are displayed. Right now I have
Code: Select all
{ if $ccuser->loggedin() }
{cms_module module="Uploads" category="downloads" mode="summary" sortorder="date_desc" detailtemplate="default"}
{else}
<p>This is a private area.</p>
{cms_module module=FrontEndUsers form="login" nocaptcha="1" returnto="$page_alias"}
{/if}
Does any1 know why its not working?
You must put out {cms_module module=FrontEndUsers form="login" nocaptcha="1" returnto="$page_alias"}
how do you make a logout?
Alby
What do you mean by put out? and I don't currently have a logout link.. I made another thread about it here
http://forum.cmsmadesimple.org/index.php/topic,27012.0.html
Re: Uploads Module Template Help
Posted: Mon Oct 27, 2008 8:52 pm
by alby
JaymeNYC wrote:
What do you mean by put out? and I don't currently have a logout link.. I made another thread about it here
For example:
Code: Select all
{cms_module module=FrontEndUsers form="login" nocaptcha="1" returnto="$page_alias"}
{ if $ccuser->loggedin() }
{cms_module module="Uploads" category="downloads" mode="summary" sortorder="date_desc" detailtemplate="default"}
{else}
<p>This is a private area.</p>
{/if}
Alby
Re: Uploads Module Template Help
Posted: Mon Oct 27, 2008 10:30 pm
by JaymeNYC
alby wrote:
JaymeNYC wrote:
What do you mean by put out? and I don't currently have a logout link.. I made another thread about it here
For example:
Code: Select all
{cms_module module=FrontEndUsers form="login" nocaptcha="1" returnto="$page_alias"}
{ if $ccuser->loggedin() }
{cms_module module="Uploads" category="downloads" mode="summary" sortorder="date_desc" detailtemplate="default"}
{else}
<p>This is a private area.</p>
{/if}
Alby
I copy and pastetd this in and it works fine, but the template is still different. I just want to be able to customize the fields when a file is uploaded. at the moment this is the template
{if isset($input_filter) }
{$startform}
{$prompt_filter}{$input_filter}{$hidden_params}{$input_submit}
{$endform}
{$matches} {$matchestext}
{/if}
{foreach from=$items item=entry}
{if isset($entry->thumbnail_url)}
{$thumbnail}
thumbnail_url}" border=0/>
{else}
{$icon}
iconurl}" border=0/>
{/if}
{$category}
{$entry->category}
{$id}
{$entry->id}
{$name}
{$entry->name}{$entry->download_url}
{$date}
{$entry->date}
{$author}
{$entry->author}
{$size}
{$entry->size}
{$summary}
{$entry->summary}
{$summary}
{$entry->summarylink}
{$description}
{$entry->description}
{/foreach}
The Detal template is what I'm trying to change but it never changes on the page when I remove something from the Detailed Template, so I figure I'm not directing the page to the template the right way
Re: Uploads Module Template Help
Posted: Tue Oct 28, 2008 7:43 am
by alby
alby wrote:
JaymeNYC wrote:
What do you mean by put out? and I don't currently have a logout link.. I made another thread about it here
For example:
Code: Select all
{cms_module module=FrontEndUsers form="login" nocaptcha="1" returnto="$page_alias"}
{ if $ccuser->loggedin() }
{cms_module module="Uploads" category="downloads" mode="summary" sortorder="date_desc" detailtemplate="default"}
{else}
<p>This is a private area.</p>
{/if}
This code is for Page template and not Uploads template (look that there is Uploads calling; bad idea put Module calling in OWN template)
Alby
Re: Uploads Module Template Help
Posted: Thu Oct 30, 2008 10:13 pm
by JaymeNYC
alby wrote:
alby wrote:
JaymeNYC wrote:
What do you mean by put out? and I don't currently have a logout link.. I made another thread about it here
For example:
Code: Select all
{cms_module module=FrontEndUsers form="login" nocaptcha="1" returnto="$page_alias"}
{ if $ccuser->loggedin() }
{cms_module module="Uploads" category="downloads" mode="summary" sortorder="date_desc" detailtemplate="default"}
{else}
<p>This is a private area.</p>
{/if}
This code is for Page template and not Uploads template (look that there is Uploads calling; bad idea put Module calling in OWN template)
Alby
I don't understand..how do I fix this?? I just want to change the way the files that I upload are displayed..this is the Details Template from what I saw..but I don't know how to display the new details template on my downloas page.
Re: Uploads Module Template Help
Posted: Fri Oct 31, 2008 4:20 pm
by jmcgin51
make sure you're changing the ACTIVE display template, and not the DEFAULT. There is a difference, and it confused me for a while. Scroll to the bottom of your template screen to see the active template, then click to edit.