This content has been marked as final. Show 3 replies
Hi, I am stuck with this.
Content presenter is showing 'New', 'Edit' and 'Refresh' icon when page is in edit mode.
I want to hide 'New' icon and also want to show my 'delete' icon after framework provided 'Edit' icon. I would like to call my ridc api on delete icon. Is there any way to achieve it?
I tried putting 'delete' icon in template but it appears below refresh icon. I want to make it in same line as other icons.
I am also fine if there is a way to hide all framework provided icons. I would create my own.
You could probably achive this by customizing the Content Presenter task flow. Have a read here:
in presenterSingleView.jsff you'll find the af:toolbar these buttons are a part of. By customizing this task flow you can remove existing buttons or add your own (combined with your own managed beans etc) to achieve the desired functionality.
Thank you for your suggestion. Seems like customization is most recommended approach here.
I am thinking of a workaround here. Can you please suggest if its ok?
I would make my template list templates, even if it needs to show single content. Inside list template, I would use iterator as usual to show that single content. I am sure with list template, content-presenter does not show 'New/Edit/Refresh' links.
Inside iterator I can put my own links.
Do you see any problem with this approach?