Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 20 matches
Smarty Forum Index
Author Message
  Topic: Multi-page forms
muppie

Replies: 2
Views: 11152

PostForum: Smarty Development   Posted: Sat Dec 06, 2003 2:34 am   Subject: Multi-page forms
There's FormSess which is based on smarty (it's announced somewhere on this forum).
  Topic: out for test: multiform and base template framework plugins
muppie

Replies: 19
Views: 47653

PostForum: Tips and Tricks   Posted: Sat Dec 06, 2003 2:00 am   Subject: out for test: multiform and base template framework plugins
Hi,

I'd love to see your form programming interface
  Topic: Trying to figure out a good architecture of the cms/smarty?
muppie

Replies: 5
Views: 8379

PostForum: General   Posted: Sat Dec 06, 2003 1:48 am   Subject: Trying to figure out a good architecture of the cms/smarty?
Maybe what you are looking for is like this

inside your main template where you lay out your "blocks" simply have:

{include file="blocks/news.tpl"}
<br>
{include file="blocks/poll.tpl"} ...
  Topic: echo html-header
muppie

Replies: 3
Views: 7243

PostForum: General   Posted: Sat Dec 06, 2003 1:40 am   Subject: echo html-header
Normally php sends Content-Type: text/html
You need to add header("Content-Type: xxxxxxxx"); maybe text/plain or whatever XML should be
  Topic: $smarty->assign and variable scope.
muppie

Replies: 1
Views: 4568

PostForum: General   Posted: Sat Dec 06, 2003 1:34 am   Subject: $smarty->assign and variable scope.
Hi,

I normally create a derived class, extending smarty like this

class Template extends Smarty {
function Template() {
parent::Smarty();
$this->assign('myglobalvar', 'whate ...
  Topic: <tr> help
muppie

Replies: 6
Views: 7945

PostForum: General   Posted: Fri Oct 03, 2003 10:23 pm   Subject: <tr> help
Hmmm messju's code doesn't seem to add the empty <td>....</td> if the number of elements in the array is not exactly multiples of the number of columns.. I would love to see a much simpler ...
  Topic: <tr> help
muppie

Replies: 6
Views: 7945

PostForum: General   Posted: Fri Oct 03, 2003 8:32 am   Subject: <tr> help
{section name=i loop=$list}
{if $smarty.section.i.index is even}
<tr>
{/if}
<td>{$list[i].name}</td>
<td>{$list[i& ...
  Topic: <tr> help
muppie

Replies: 6
Views: 7945

PostForum: General   Posted: Fri Oct 03, 2003 7:51 am   Subject: <tr> help
Hmmm sorry not to be very helpful here but you need to read the smarty intro / doc / readme... it shows you how to do this.
  Topic: PDF Output Filter
muppie

Replies: 4
Views: 21837

PostForum: General   Posted: Fri Oct 03, 2003 7:45 am   Subject: PDF Output Filter
Write to a temp file and run the converter.... much easier than using pdflib. Besides pdflib needs license to be used commercially
  Topic: Search Engine-friendly pages?
muppie

Replies: 12
Views: 17243

PostForum: General   Posted: Sat Sep 13, 2003 9:18 pm   Subject: Search Engine-friendly pages?
I was referring only to google yes as that's what I use 99.9% of the time. And yes google will crawl ?id=xxx just fine.

You can use mod_rewrite to make it look like html if you wish too
  Topic: Different ways of embedding template "code"?
muppie

Replies: 2
Views: 4697

PostForum: General   Posted: Sat Sep 13, 2003 8:49 pm   Subject: Different ways of embedding template "code"?
This seems like a good idea... perhaps you only need to make your code so that it is easy to add more tag type, perhaps with a simple definition of tag / replacement using regex? So when you encounter ...
  Topic: call a field manual from the array
muppie

Replies: 1
Views: 4322

PostForum: General   Posted: Sat Sep 13, 2003 2:57 pm   Subject: call a field manual from the array
I don't know about the 0 at the front but you can try

$id.PROJECT[0].thg_id
  Topic: Using Smarty with ADODB
muppie

Replies: 1
Views: 4509

PostForum: General   Posted: Sat Sep 13, 2003 2:54 pm   Subject: Using Smarty with ADODB
Smarty doesn't CARE whether you use adodb or whatever.

Just read Smarty's manual and see how it displays arrays etc and you should use ANY database class adodb, pear etc with smarty

There is jus ...
  Topic: Search Engine-friendly pages?
muppie

Replies: 12
Views: 17243

PostForum: General   Posted: Sat Sep 13, 2003 2:52 pm   Subject: Search Engine-friendly pages?
If you display each product / item like this:

/showitem.php?id=xxx

then link to each item in a listing e.g.

item 1 -> link to showitem.php?id=1
item 2 -> link to showitem.php?id=2

t ...
  Topic: can templates know their own lastmod timestamp?
muppie

Replies: 1
Views: 5334

PostForum: General   Posted: Sat Sep 13, 2003 2:49 pm   Subject: can templates know their own lastmod timestamp?
You can easily assign a variable to smarty before loading the template. You can derive a class that does it everytime you call fetch for example.
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP