Re: Limiting ListViews via roles
To customize the list view to behaver like you want, a possible way is the follow.
1. Inside the modules/accounts/ folder create a new folder named view, and then a file named list.view.php
2. This file has to contains some code like:
PHP Code:
<?php
require_once('include/MVC/View/views/view.list.php');
class AccountsViewList extends ViewList {
//overwrite the display function
public function display() {
require_once(<your_custom_list_view.php>);
}
}
?>
This way you can develop a custom way to display the accounts. But you have to program this listing and search functionality. I already did it for some very specific modules, and the result was very good.
Rafael Queiroz Gonçalves
Advanced OMG UML Certified Professional
Sun Certified Enterprise Architect for the Java Platform
Sun Certified Programmer for the Java 2 Platform
IBM Certified Advanced Application Developer - Lotus Notes and Domino
IBM Certified Application Developer - IBM WebSphere Portlet Factory
Computer Science Mastering / UFSC - PPGCC
Bookmarks