Created
February 14, 2014 16:24
-
-
Save stevewithington/9004144 to your computer and use it in GitHub Desktop.
Mura CMS: How to lock down a page/section with a single, shared password. 1) Create a User Group called "Shared User Group" 2) Create a User called "Shared User" and assign that user to the "Shared User Group" ... you could use something like "shareduser" for the username ... just be sure to note the password! 3) Lock down the content node you w…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfcomponent extends="mura.cfobject" output="false"> | |
<!--- drop this method into your theme's eventHandler.cfc ---> | |
<cffunction name="onSiteLoginPromptRender"> | |
<cfargument name="$"> | |
<cfset var str = ""> | |
<!--- change the filename to the page/section's actual filename (instead of 'shared-content-protected') ---> | |
<cfif arguments.$.content('filename') eq 'shared-content-protected'> | |
<cfsavecontent variable="str"> | |
<cfinclude template="display_objects/dsp_sharedLogin.cfm"> | |
</cfsavecontent> | |
</cfif> | |
<cfreturn str> | |
</cffunction> | |
</cfcomponent> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment