We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Products
Revo Discussions & Support
Search
[Solved] Public article previews of member only pages
<
1
2
>
24,544 Posts
BobRay
Reply #11,
12 years, 7 months ago
That looks fine, although you can make it a little more generic with this:
$modx->sendUnauthorizedPage();
That will send users to the page defined in the unauthorized_page System Setting (though your way is actually faster).
Did I help you?
Buy me a beer
Get my Book:
MODX:The Official Guide
MODX info for everyone:
http://bobsguides.com/modx.html
My MODX Extras
Bob's Guides is now hosted at
A2 MODX Hosting
<
1
2
>