Jump to content

Create a page for downloads (custom pages)


Mortfiles

Recommended Posts

I am trying to set up a custom page for downloads and I need a hand understanding the setup for the variables so I can use them in the new page.

 

# To assign variables in Smarty use the following syntax.

# This can then be used as {$variablename} in the template

 

$smartyvalues["variablename"] = $value;

 

Could someone give an example on this?

 

The template is very basic and looks like this:

<p>{$LANG.clientareaheader}</p>


<h2>{$LANG.clientareafiles}</h2>
<table width="100%" border="0" align="center" cellpadding="10" cellspacing="0" class="data">
 <tr>
   <th>{$LANG.clientareafilesdate}</th>
   <th>{$LANG.clientareafilesfilename}</th>
 </tr>
 {foreach key=num item=file from=$files}
 <tr>
   <td>{$file.date}</td>
<td><img src="images/file.png" hspace="5" align="middle" alt="" /> <a href="dl.php?type=f&id={$file.id}"><strong>{$file.title}</strong></a></td>
 </tr>
 {/foreach}
</table>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated