How do I lock the body and extended text of an article down by member group but display summary to all? Sort of like a teaser to promote sign-ups?
Thanks!
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
June 10, 2009 11:45am
Subscribe [3]#1 / Jun 10, 2009 11:45am
How do I lock the body and extended text of an article down by member group but display summary to all? Sort of like a teaser to promote sign-ups?
Thanks!
#2 / Jun 10, 2009 12:45pm
How do I lock the body and extended text of an article down by member group but display summary to all? Sort of like a teaser to promote sign-ups?
Thanks!
If you want to show certain fields to certain member groups and not others then you could just do something like this :
{if member_group == "1"}
{body}
{extended}
{if:else}
{summary}
{/if}That should do what you need. You will just need to ensure that member_group == “1” is set to the ID of the member group that you do want to have access to the {body} and {extended} fields and you should be good to go.
Hope that helps a bit.
Best wishes,
Mark
#3 / Jun 10, 2009 1:21pm
I bet that will work, I thought perhaps there was something within the settings that would do it. Thanks!
#4 / Jun 10, 2009 1:26pm
Actually, this may cause an issue because my client will want to have the option to lock certain articles and allow certain articles. Is there nothing built in to EE to do this?
#5 / Jun 10, 2009 1:31pm
A number of ways. Look into custom statuses; you can show only some statuses to all readers, some only to subscribers etc.