After seeing so many blogs about Wordpress i have decided to start a blog where you will find some
tips and tricks, helpful snippets and anything else related to CMS system of my choice called
CMS Made Simple™.
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.
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.
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.