Portlet creation

I need to create a custom portlet and I couldn't follow the documentation. Can anyone help me with a source . Thank you

Please ask a specific question and explain which documentation lacks which information.


I want to create a recent items portlet with slight modifications . I need someone to help me find the correct resource for the query.