17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1797 Views |
-
Remove add method in ComplexTableField

20 May 2008 at 11:10pm
Hi,
can anyone guide me on how to remove the add method in ComplexTableField?Cheers!
-
Re: Remove add method in ComplexTableField

21 May 2008 at 12:03am
$yourTable->setPermissions(array('delete', 'edit'));
although I'm not 100% sure this works on a complextablefield as well, but it's inherited so it should.
-
Re: Remove add method in ComplexTableField

21 May 2008 at 12:17am
Thanks very much dio5!
It worked like a charm.
I got one more question, is there a way to have a search functionality
in ComplexTableFiled?
Again, thanks a lot and appreciate for your quick reply.Thanks!
Mohan -
Re: Remove add method in ComplexTableField

21 May 2008 at 12:20am
Well, yes you can, but you'll need to subclass ComplexTableField and add it to it.
Not the easiest, but not undoable either.Have a look at cms/code/MemberTableField.php for an example of this.
| 1797 Views | ||
|
Page:
1
|
Go to Top |


