Personalize 2.0
Personalize 2.0 3.0
# Aug 06, 07 -- renamed to LoggedOrNot as its more fitting, it also matches the example
# Aug 06, 07 -- replaced 2.0 code with modified version found here: http://modxcms.com/forums/index.php?topic=6221
Checks to see if webusers are logged in and displays a chunk if the user is logged or another chunk if user is not logged.
Ca be used multiple times on a page.
Params:
&yesChunk : name of the chunk visible to LOGGED users [REQUIRED]
&noChunk : name of the chunk visible to UNLOGGED users [REQUIRED]
&ph : set a placeholder to display the username in the yesChunk [optional]
Description
Checks to see if webusers are logged in and displays yesChunk if the user is logged or noChunk if user is not logged. Can use Snippets in chunks, and can set a placeholder to output the username in the yesChunk.Ca be used multiple times on a page.
Instructions
Copy the contents of the attached file to a new snippet named "Personalize".Params:
&yesChunk : name of the chunk visible to LOGGED users [REQUIRED]
&noChunk : name of the chunk visible to UNLOGGED users [REQUIRED]
&ph : set a placeholder to display the username in the yesChunk [optional]
Previous Releases
Extras
No results found.