Author |
Message |
Topic: backticks problem |
TofuWarrior
Replies: 5
Views: 5922
|
Forum: General Posted: Wed Aug 27, 2008 3:04 pm Subject: backticks problem |
OK. thanks for the pointer. |
Topic: backticks problem |
TofuWarrior
Replies: 5
Views: 5922
|
Forum: General Posted: Wed Aug 27, 2008 1:03 pm Subject: backticks problem |
Is it possible to do something like this to refer dynamically to objects individual_1 individual_2 etc
{assign var="object" value="individual_`$suffix`"}
{$object->getName() ... |
Topic: backticks problem |
TofuWarrior
Replies: 5
Views: 5922
|
Forum: General Posted: Wed Aug 27, 2008 11:14 am Subject: Awesome |
Thanks for replying. that's just what I need. |
Topic: backticks problem |
TofuWarrior
Replies: 5
Views: 5922
|
Forum: General Posted: Tue Aug 26, 2008 3:43 pm Subject: backticks problem |
Hi
Everyone,
I hope some smarty head can help me. I'm sure this is very simple and I am being dumb. I would be really grateful.
I am trying to reference dynamically named fields in request lik ... |
Topic: referencing associative array using index from section |
TofuWarrior
Replies: 8
Views: 8067
|
Forum: General Posted: Wed Mar 28, 2007 9:29 am Subject: referencing associative array using index from section |
Hi Boots,
Think I tried that and it didn't work either but if that should work then I guess I need to check out what else might be going wrong at least I know what should work.
Thanks,
Paul |
Topic: referencing associative array using index from section |
TofuWarrior
Replies: 8
Views: 8067
|
Forum: General Posted: Tue Mar 27, 2007 10:28 am Subject: referencing associative array using index from section |
Hi All,
I have an array of objects.
I need to iterate through in reverse.
This doesn't work.
The test to display the index works fine but my referencing of the document doesn't show up anythin ... |
Topic: Loving smarty |
TofuWarrior
Replies: 0
Views: 20507
|
Forum: Testimonials Posted: Wed Sep 13, 2006 3:11 pm Subject: Loving smarty |
First project I have used it on.
Wasn't sure about the extra time to get my head round it.
Best thing I have done in a while.
Simple, flexible, effective.
Makes the whole thing so much easie ... |
Topic: referencing array with variable |
TofuWarrior
Replies: 2
Views: 4344
|
Forum: General Posted: Tue Sep 12, 2006 12:52 pm Subject: referencing array with variable |
Thanks messju,did the job a treat.
SOLUTION:
{assign var=key value=$currentDocument->language}
<h2>{$languagesArray.template.chooselanguage.$key}</h2>
TW |
Topic: referencing array with variable |
TofuWarrior
Replies: 2
Views: 4344
|
Forum: General Posted: Tue Sep 12, 2006 12:29 pm Subject: referencing array with variable |
Hi,
I am sure this must have been answered but couldn't find it. so sorry if this is duplication.
I want to do this.
{$languagesArray.template.chooselanguage[$currentDocument->language]}
... |
Topic: include template form within template |
TofuWarrior
Replies: 2
Views: 4277
|
Forum: General Posted: Wed Jul 19, 2006 3:33 pm Subject: include template form within template |
just tried
{include file='public/navigation.tpl'}which worked.
Sigh, I am dumb.
Thanks for reply.
TW |
Topic: include template form within template |
TofuWarrior
Replies: 2
Views: 4277
|
Forum: General Posted: Wed Jul 19, 2006 3:25 pm Subject: include template form within template |
Hi,
I think I am being stupid but I couldn't find any posts addressing this.
I am trying to include a navigation file fromwithin another template.
I tried this
{include file='../clearcmslib/T ... |
Topic: Link Writer Permissions based function in Smarty template |
TofuWarrior
Replies: 7
Views: 8969
|
Forum: General Posted: Wed Jun 07, 2006 3:51 pm Subject: Link Writer Permissions based function in Smarty template |
NO worries boots.
Thanks for looking.
If i get time to work this out I will post back here.
The linkwriter kind of looks back in the process so it does make things tricky really.
never min ... |
Topic: Link Writer Permissions based function in Smarty template |
TofuWarrior
Replies: 7
Views: 8969
|
Forum: General Posted: Wed Jun 07, 2006 11:51 am Subject: Link Writer Permissions based function in Smarty template |
Hi Boots,
so this is my stripped down plugin.
function smarty_function_access_link_write($params, &$smarty)
{
$canDo = PermissionsManager::CanDo($params['perm' ... |
Topic: Link Writer Permissions based function in Smarty template |
TofuWarrior
Replies: 7
Views: 8969
|
Forum: General Posted: Wed Jun 07, 2006 8:59 am Subject: Link Writer Permissions based function in Smarty template |
I did and got in a mess and have moved on to the permissions system admin side. I will get back on it and see how I get on. But am I right that you canonly pass params, and smarty to a function and th ... |
Topic: Link Writer Permissions based function in Smarty template |
TofuWarrior
Replies: 7
Views: 8969
|
Forum: General Posted: Tue Jun 06, 2006 1:25 pm Subject: Link Writer Permissions based function in Smarty template |
Thanks for the compliment boots
I quite like it (obviously), I was going to go for yoghurtweaver but the domain name was taken.
All the permissions info is in the db so I need ot get it and pa ... |
|