What would be nice is if, at the option of the site admins, there was a "create table" link in the "create content" section. I want my regular users to be able to post tables to the site, but I do *not* want to give them all site admin permission. As it stands now one can only (as far as I can tell) create a table by using the admin menu. It would be nice if one could optionally configure things such that the tables could be created by any authenticated user, appearing in the "create content" section like any other node type.
Steve
Comments
Comment #1
pobster commentedI actually wrote the code with this thought in mind, but I've since changed my mind on implementing it exactly like this... My thoughts are that it would be better for admins to create the tables and allow role permissions to add and edit own entries into those tables. I'm partway through writting another module at the moment but tablemanager is still my main priority, so I'm open to discussion regarding which solution is best? My thought are that it's muuuuuuch easier to implement my idea and can probably get the code finished in an evening, but allowing a non-admin user permissions to manage tables is going to take a whole lot of thought and rearranging (with major changes to most functions and an altered mysql thingymajig) I *can* do either... So... Maybe I could do both? Or is that 'too much'? I don't want the module to get cluttered and look complicated... The whole point of it is that its user friendly for non-technical people to create nice looking tables and being too cluttered will peturb those types of admin/ user.
Pobster
Comment #2
Steve Viscido commentedHow about doing it like this...
Implement it the easy way for now. Then over the long term, perhaps plan for the ability to have tables be creatable as general user content, like a page or a story would be.
I'm all in favor of easier if it can be functional. The main problem is that one wants to avoid having to give global rights to everyone to affect all tables and such... whereas if you have it work like other nodes (e.g. stories), users can create their own, and view each other's, but cannot edit tables owned by other people.
Otherwise I love the way this module works, and I like how it fits in with the theme of the site, etc.
Steve
Comment #3
JohnG-1 commentedPlease excuse my vague musings but I thought they might interest you guys:
What I like most about table manager is the idea of restricting users' abuse of table html (a problem with the WYSIWYG editors) and at the same time give them access to really useful php features like sortable columns, etc.
Cogitating along the lines of Steve's 'table' node-types, it made me think of image module (image nodes) and img_assist (inline images) which is used to incorporate image nodes into normal nodes.
It strikes me that a table could also be regarded as a kind of 'inline' element within a text document.
So I'm thinking from the point of view of a 'user making a document', it could be very useful to have the table as an independant node which is 'inlined' on the fly ...
Also, using img_assist as my paradigm, it could be rather handy to 'import/upload' a table (eg a CSV from a spreadsheet) as well as 'create new table' ...
what do you think? any potential?
Comment #4
pobster commentedNot being a programmer I have to confess to not having a clue about what you mean? Could you explain it a bit more *cough* 'basic' for me? I currently still only have net access from my gprs pocketpc phone and from friends and families computers so there's no chance of me doing anything with tablemanager for a little while yet... But once I'm back on the case I shall be updating for 4.7 with a major code rewrite to help me get around some of the bugs in the 4.6 version.
Thanks
Pobster
Comment #5
pobster commentedSee new version of module.
Pobster
Comment #6
pobster commented