Hi,

First of all I should mention that we have been using tablemanager consistenly for over a year on our website and it has been working great!

I maintain a website for a non-profit that does fundraising through marathon running. So the users are runners who maintain their blog and a running log on the website. Each user maintains their own running log using a separate table in table manager. Because of the increase in users, it is very painful/difficult for them to get to their own table to update etc. I was thinking that if there's a way I can just display to each user only the tables created by them, it'll make the site very user-friendly. Also, there are a few admins who should be able to see all the tables.

Is there a simple way to do this? I haven't written any php code before, but I can try..

Thanks in advance for your attention

Comments

pobster’s picture

Hiya!

Glad to hear Tablemanager is useful for you, this is the kind of project that it was meant for so I'm very happy to help you with what you're trying to achieve...

There are a few ways to go about getting the result you're after, here's a few;

1. Tablemanager is a filter, so you could restrict access to the node the table/ filter is displayed on using either a simple piece of php which would redirect to an 'access denied' message if the uid didn't match the user logged in else there are several 'access' type modules (which I know nothing about) but I assume could be used for this purpose?

2. You could embed the filter into a users profile page? This is a good-ish solution as then Drupal takes care of whether a user can see the profile or not and you wouldn't have to worry about access controls. The only downside would be that it would look a bit cluttered perhaps? ...And also if profiles are public then anyone can see the tables?

3. You could add a new 'view table xxxx' access control which does exactly what it sounds like? The downside here is that there's yet another access control to deal with... This may be an easier solution but it's probably not the best way to do it seeing as the tables are embedded rather than simple pages on their own (well... they are in tablemanager lists, but that's not really supposed to be used in that 'context').

Obviously all the above assume admins will access *all* the tables via the admin/tablemanager link and that the 'view tables' access control is turned off.

Let me know which (if any) of these solutions is best for you and I'll talk you through.

Thanks,

Pobster

pobster’s picture

Status: Active » Closed (fixed)