Search found 6 matches

by squarefrog
Wed Mar 06, 2013 8:21 pm
Forum: CMSMS Core
Topic: Creating a submenu conditional
Replies: 1
Views: 810

Re: Creating a submenu conditional

I have just found out you can add {capture assign="var"} before your menu call and then evaluate it. Works perfect!

Found on http://edwardrobirds.com/dealing-with-e ... mple-cmsms.
by squarefrog
Wed Mar 06, 2013 7:49 pm
Forum: CMSMS Core
Topic: Creating a submenu conditional
Replies: 1
Views: 810

Creating a submenu conditional

I have a main menu, and a sub menu. The submenu is called using: {menu start_level="2" template="foresight_submenu"} so i ignore all level one menu items. The template code is as follows: {* Sub level navigation menu *} {if $count > 0} <ul class='sub_menu clearfix'> {foreach from...
by squarefrog
Thu May 13, 2010 10:00 am
Forum: Modules/Add-Ons
Topic: [solved] Problem with && in UDT
Replies: 2
Views: 890

Re: Problem with && in UDT

Literally just figured it out as the reply came in. Good point about the max timediff. Needed one here too case ($timediff > 60):

Thanks for your help Jos!
by squarefrog
Thu May 13, 2010 9:52 am
Forum: Modules/Add-Ons
Topic: Form Builder Pulldown Subject field
Replies: 3
Views: 994

Re: Form Builder Pulldown Subject field

I couldn't figure out how to link my pull down menu to the subject field. So I guess I'll just leave it. Thanks though.
by squarefrog
Thu May 13, 2010 9:35 am
Forum: Modules/Add-Ons
Topic: [solved] Problem with && in UDT
Replies: 2
Views: 890

[solved] Problem with && in UDT

I'm having difficulty with one of my UDT's. I use the tag to compare 2 unix timestamps, and return XX minutes ago, or XX seconds ago. I got it working using simple > rules, but I'd quite like to include && so I can say "1 hour ago" rather than "1 hours ago". if($params['t...
by squarefrog
Sat May 08, 2010 5:19 pm
Forum: Modules/Add-Ons
Topic: Form Builder Pulldown Subject field
Replies: 3
Views: 994

Form Builder Pulldown Subject field

Hi. I'm using the Contact Form template for Form Builder, but I have a pulldown field that I'd like to use for the email Subject field. Is this possible?

Go to advanced search