I added a dataobjectdecorator to the member object basically copying the ForumRole decorator example in the forum. My decorator is called ClubRole. So to use this decorator I need to include this line in the _config.php:
As I am using the Forum infrastructure there is the ForumRole decorator in the _config.php too:
So in the _config.php I have these two lines in this order:
So the problem I experienced is that $Link in the template returns the Link method defined in the ForumRole decorator instead of the one defined in the ClubRole decorator which is the intended one. How do I fix it? Commenting out the ForumRole decorator does the job but I feel that this is not the only way to do it.
Can't you have more than one decorator per object that you would like to decorate.
EG. I would like another member decorator called EmployeeRole.