Show Member Chunk - MODX
ShowMemberChunk is a super-lightweight MODX snippet that allows you to customize content based upon whether or not someone is a member of a website group. It is designed to be easy to use and implement and can be up and running in minutes. It works in MODX Revolution versions 2.2.7 and above. It has not been tested for earlier versions.
Download and install the package through the Package Manager. DOWNLOAD HERE »
Where you would like to show alternate content for members logged into the site create two chunks: one for members and one for non-members. You can leave the “out” chunk blank if you would prefer to not show anything for non-members.
Example usage: Non-members see an advertisement asking them to join the organization; members see a menu with member-only content.
In your snippet call you must tell the snippet which member groups to look for. For instance, if you have a site where there are Premium members and Basic members and want to show the chunk to all members of each group use a comma separated list for the member groups as in the example below:
[[!showChunk? &group=`Administrator,Activist Members,Premium Members`
&group is showing this member groups for the site - there are Administrators, Members, Activist and Premium Members listed in the example above.
&in_chunk shows the “privateSiteNav” chunk if they are logged in as one of the members above.
&out_chunk shows the “membershipPromote” chunk if they are not logged into the site or if they are not a member of one of the groups listed.
ShowMemberCheck can be used multiple times on any page of a website with various chunks. For instance, as a logged-in member you can access content for members only and you can view menus and promotions not available to others.
In order to work properly within the chunks you will need to use a separate browser to view the front-end of the site and the manager. (When logged into the manager you are effectively always logged into the site.)
Download the Package
If you choose to download from here you must manually upload to to your server in the core .. packages folder. Note: if you are on a Mac / Safari go into preferences and disable "Open "safe" files after downloading" in the general tab. Download »
Share this post:
Recent Blog / Articles
- LATHER. RINSE. REPEAT.
- Are You A Commodity?
- Find Your Voice
- Group Love
- Make Friends With Benefits
- FREE eBook: AVOIDING EXTINCTION
- Impress Design Receives 2013 Best of Parker Award
- There Are Known Knowns, You Know
- Show Member Chunk - MODX
- Three Ways To Make Google Work For You
- Adapt and Succeed
- 2012 Best of Parker Award
- Tortoise Or Hare
- Steve Jobs
- Creating Erin Says Blog
- Take Your Place - Google Places
- Impress Design Listed As A "Best Design Blog"
- Death To Stock Photography Business Teams
- How Sociable Are You?
- Be The Expert
- Series: How To Dominate Your Local or Niche Market
- Profile On Moleskinerie
- Learning From Charlotte's Web
- Web Design Process - What I Do
- The Golden Ratio and Design
- Colonel Mustard With A Candlestick
- It's Cheap, Easy & And You Da Man!
- Extinction Happens!
- Over the Rainbow: Email List Gold
- First Impressions Matter
- Why Build Your Site to Web Standards
- My Interview at Thumbtack
- The Importance of Creating A Brand
- Performance That Pays: SEO and Content Managed Sites
Learn what it takes to succeed and thrive as a small business online.
Email Marketing Manifesto
Change how you market to your customers with email.
Join the Newsletter
Keep up-to-date with new articles and marketing ideas