Thoughts n Musings

Utlizing the JSON APi
By Brian Fescoe
June 22, 2016

Here are two different example of how to use the JSON api in MURA. One pulls back a page based off of a content ID Number the other will display multiple results via a content collection.

Read More
Comments (0)
User Activation Script Mura
By Brian Fescoe
July 24, 2015

Using the follow technique and code will allow you to utilize the user activation script in MURA under the site config > Edit Site > Email tab. The work flow would be a user signs up but is not active and once an a administrator makes the user active an email is generated letting the user know they are active.

Read More
Comments (0)
MURA On After User Create
By Brian "DudeHammer" Fescoe
June 16, 2015

Continuing on my MURA theme I wanted to share a cool user function that will set multiple options after a user is created in MURA. The benifits are if you want have a need to automaticlly make a user active or assigned to a group for example you can do this. In order for it work I needed to place his code in the Site eventhandler.cfc

Read More
Comments (0)
Dynamically create content in MURA
By Brian Fescoe
June 15, 2015

Sometimes in MURA there's a need to create new pages dynamically. In my case I am creating tests via a plugin and wanted them to also be page in the site manager for tracking purposes. Steve Withington has a great script up on Gist which address this based on an RSS feed. https://gist.github.com/stevewithington/4742829
 
In order to get this to work you would include this in one of your functions in the plugins CFC. For example I included this script after I added new content to a custom database Table. What is does is it takes the current siteID and my custom argument UpdateID which I then set to the remoteID on the advanced tab of my newly created content. Now when a create a new entry into my custom database table MURA will create a page that I can use for tracking purposes or anything else I might need a page for. 
Read More
Comments (0)
Calling Display Objects Dynamically in MURA
By Brian Fescoe
June 13, 2015

One of the nifty things about MURA is creating custom pages, folders etc using the Class extension manager. There are many benefits to creating your own custom page but what I'm going to focus on with this post is taking a display object that has be customized for your particular needs then calling it dynamically through the Theme event handler.cfc
 
Obviously there are multiple ways to skin a cat in MURA this is just my preferred method allowing me to take a display object such as dsp_content_list.cfm naming to whatever I wish then putting in my theme display objects folder make the theme truly portable. 
Read More
Comments (0)