Anybody out there an expert in converting existing drupal phptemplate driven themes to use the Smarty template engine, from what I can see it's a case of converting the phptemplate tags to Smarty tags within the theme so:

print $picture

would become:

{if $picture}{$picture}{/if}

Is that correct? And can anyone suggest an "idiots guide to Smarty convertion"

Comments

Nda’s picture

Well you didn't have an if statement in the phptemplate code but that would work yes.
I've learned to work with smarty while making themes for PostNuke and during that time I learned most from the online documentation over at smarty.net

Good luck!

dam’s picture

I'm trying to port some phptemplate based templates on smarty, but I can't call theme links function to show primary and secondary links
Right now I output them looping the array, but it's not the right way
I opened a thread here http://drupal.org/node/265807

do you have any suggestion for me?
cheers
Dam

ludo1960’s picture

Hi, I won't have time untill the weekend to have a look at this, but I will try to help.

Cheers

dam’s picture

I'll wait. In the meantime I'll go deeper as much as I can. I'm reading "Learning_Drupal_6_Module_Development". Hopefully it will be helpful