Uploads Module Template Help

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
JaymeNYC
Forum Members
Forum Members
Posts: 53
Joined: Sat Aug 30, 2008 8:30 pm

Uploads Module Template Help

Post 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?
JaymeNYC
Forum Members
Forum Members
Posts: 53
Joined: Sat Aug 30, 2008 8:30 pm

Re: Uploads Module Template Help

Post by JaymeNYC »

can any1 help?
alby

Re: Uploads Module Template Help

Post 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
JaymeNYC
Forum Members
Forum Members
Posts: 53
Joined: Sat Aug 30, 2008 8:30 pm

Re: Uploads Module Template Help

Post 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 
alby

Re: Uploads Module Template Help

Post 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
JaymeNYC
Forum Members
Forum Members
Posts: 53
Joined: Sat Aug 30, 2008 8:30 pm

Re: Uploads Module Template Help

Post 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
alby

Re: Uploads Module Template Help

Post 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
JaymeNYC
Forum Members
Forum Members
Posts: 53
Joined: Sat Aug 30, 2008 8:30 pm

Re: Uploads Module Template Help

Post 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.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Uploads Module Template Help

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

Return to “Modules/Add-Ons”