Multiple users - only allow them to see their own posts when logged in?

If I create multiple users I would like to show each user only his own posts. By default it seems that contentbox shows all posts by all users.

How should I set a rule to show only user’s posts?

You eill have to override the prc variable for the posts

Luis, could you be more specific?

How should I override the prc variable? with an interceptor?

I have seen that blog entries handler calls asynchronously the /cbadmin/entries/entriesTable handler that is called with ajax:

`

$(document).ready(function() {

// Setup content view

setupContentView( {

tableContainer : $("#entriesTableContainer"),

tableURL : ‘http://www.content.test/cbadmin/entries/entriesTable’,

searchField : $("#entrySearch"),

searchName : ‘searchEntries’,

contentForm : $("#entryForm"),

bulkStatusURL : ‘http://www.content.test/cbadmin/entries/bulkstatus’,

importDialog : $("#importDialog"),

cloneDialog : $("#cloneDialog")

});

// load content on startup, using default parents if passed.

contentLoad( {} );

});

`

However it’s not clear to me how I can override the prc variable.

Contentbox seems a great tool, but miss documentation. If I can give suggest, probably a good idea is to write an ebook with some tutorials. I think many people will not have problem to pay some bucks to support the project buying a guide.

Luis has books, although a bit out of date.

Sorry the books are for ColdBox, yeah it would be nice to have some more information on ContentBox.

Hi Francesco–

Documentation of ContentBox is going to be a major focus for us as we move toward ContentBox 2.

Franceso,

I think that as of now you can’t override that content. You can though is remove those tabs and add your own tabs via the events announced:

cbadmin_preDashboardContent
cbadmin_onDashboardTabNav
cbadmin_postDashboardTabContent
cbadmin_postDashboardContent

Does that make sense

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Thanks for the reply Luis. I think this could be an enhancement that you should consider in the next version of contentbox. This will let us use contentbox to create many different type of app, like for example a directory listing…

I think maybe the only way would be to be able to deactivate the dashboard content. Then it would be up to the module developer to create some.

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano