Breadcrumbs for MLE

Breadcrumbs for the MleCMS module.
Sun. 13. May 2012 MLE UDTs Snippets General Jonathan Schmid Comments 1

Prev/Next links in CGBlog

Adding Prev/Next links to the CGBlog detail pages without using UDT's.
Wed. 9. May 2012 Smarty Manuel Comments 1

Adding Uploads Module categories dynamically

Just recently i was faced with a task of creating a per Registered User based Download area. My first thought was, oh thats easy simply connect FrontEndUsers Module with Uploads Module and done.

But as we all know, there are always small issues that come along in each Project. So the issue with my thought was, that Uploads module does communicate with FrontEndUsers Module but not in a way i needed it.
If you need to allow Upload/Download area access by Group it is simple, each Category has a option to specify which group is allowed to view it, but unfortunatelly there is no way to have a per User control, one of the downsides of FronteEndUsers module. 

Sun. 1. April 2012 CMSMS UDTs Modules Goran Ilic Comments 0

Breadcrumbs for MLE

Breadcrumbs for the MleCMS module.
Sun. 13. May 2012 MLE UDTs Snippets General Jonathan Schmid Comments 1

Sorting items in foreach

Just recently a user in #cms IRC chanel was aksing if there is a way to sort MenuManager items (Navigation) by name.
The answer is yes, with a simple UDT you can sort your MenuManager by anything.

Sun. 1. April 2012 Snippets Goran Ilic Comments 0

The simplest and shortest method to check a variable

If you are working with variables in smarty you know this procedure:

if (isset($helloworld) && $helloworld != '') { {$helloworld} } else { helloworld does not exist }

But do you already know the default plugin? It works like a modifier.

The same stuff from above but much shorter:

{$helloworld|default:"helloworld does not exist"}

Or if you do not want to output an else statement:

{$helloworld|default:""}

This is also good to avoid internal Smarty warnings.

Tue. 20. March 2012 Snippets Nic Comments 1

Designed and developed by idea arts. I do this! © Copyright 2010-2012

Go back to Top