CG Blog with FEU - View Blogs by Group
Posted: Mon Feb 25, 2013 4:35 am
Going round and round in circles on this one...
I created a simple non-commercial website for kids to create blogs, see the site here http://www.kidsblogs.com.au. I made it for my daughter and decided to share it with other parents. The idea being that parents can rest easy as the blogs are kept private and can only be viewed by the blog author. This was easy to do thanks to Calguys CGBlog, FrontEndUsers, SelfRegistration and Custom Content modules.
Now it seems that kids and parents like it so much that some have requested a 'group blog' where a family for instance (or maybe a classroom) can see all the blogs posted within their family group. Each member would have a different username but belong to the 'families' group. So when they view their 'family' group blog, they can see all the family's blog posts or filter the family's blogs by username. I guess I'm being daft but I just can't seem to work this out
This is how my templates are set up, any help would be very much appreciated.
Registration page:
(Currently I have 4 diferent age groups)
Login page:
View blog - only the logged in user's posts are displayed:
I am assuming that I have to make a new group called 'families' or similar and have code something like
But I can't get this to work! any ideas?
System Information:
CMSMS 1.10.3
CGBlog 1.8.3
CGExtensions 1.28.1
CGFeedback 1.5.4
CGSimpleSmarty 1.5
CustomContent 1.8.2
FrontEndUsers 1.17.1
SelfRegistration 1.6.15
I created a simple non-commercial website for kids to create blogs, see the site here http://www.kidsblogs.com.au. I made it for my daughter and decided to share it with other parents. The idea being that parents can rest easy as the blogs are kept private and can only be viewed by the blog author. This was easy to do thanks to Calguys CGBlog, FrontEndUsers, SelfRegistration and Custom Content modules.
Now it seems that kids and parents like it so much that some have requested a 'group blog' where a family for instance (or maybe a classroom) can see all the blogs posted within their family group. Each member would have a different username but belong to the 'families' group. So when they view their 'family' group blog, they can see all the family's blog posts or filter the family's blogs by username. I guess I'm being daft but I just can't seem to work this out

This is how my templates are set up, any help would be very much appreciated.
Registration page:
Code: Select all
{cms_module module=SelfRegistration group=3to5}
Login page:
Code: Select all
{if $ccuser->loggedin()}
You are already logged in.
Take me to my blog.
{else}
{cms_module module=FrontEndUsers form=login}
{/if}
Code: Select all
{capture assign='author'}{eval var=$ccuser->property('username')}
{/capture}
{CGBlog author="$author"}
Code: Select all
{if ($ccuser->memberof('families'))}
show all posts relating to this families group only
{/if}
System Information:
CMSMS 1.10.3
CGBlog 1.8.3
CGExtensions 1.28.1
CGFeedback 1.5.4
CGSimpleSmarty 1.5
CustomContent 1.8.2
FrontEndUsers 1.17.1
SelfRegistration 1.6.15