Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
JaymeNYC
Forum Members
Posts: 53 Joined: Sat Aug 30, 2008 8:30 pm
Post
by JaymeNYC » Sun Oct 26, 2008 9:24 pm
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
Posts: 53 Joined: Sat Aug 30, 2008 8:30 pm
Post
by JaymeNYC » Mon Oct 27, 2008 7:34 pm
can any1 help?
alby
Post
by alby » Mon Oct 27, 2008 8:07 pm
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
Posts: 53 Joined: Sat Aug 30, 2008 8:30 pm
Post
by JaymeNYC » Mon Oct 27, 2008 8:20 pm
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
Post
by alby » Mon Oct 27, 2008 8:52 pm
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
Posts: 53 Joined: Sat Aug 30, 2008 8:30 pm
Post
by JaymeNYC » Mon Oct 27, 2008 10:30 pm
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
Post
by alby » Tue Oct 28, 2008 7:43 am
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
Posts: 53 Joined: Sat Aug 30, 2008 8:30 pm
Post
by JaymeNYC » Thu Oct 30, 2008 10:13 pm
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
Posts: 1899 Joined: Mon Jun 12, 2006 9:02 pm
Post
by jmcgin51 » Fri Oct 31, 2008 4:20 pm
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.