Re: Have Recent Items portlet only show Member's files

Espen Moe-Nilssen <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
I think you will have to filter on the logged in memeber.
•  Get current user. In newer plone, you might want to use plone.api (add plone.api to buildout)
    http://docs.plone.org/external/plone.api/docs/api/user.html	
    http://docs.plone.org/external/plone.api/docs/index.html
•  add this user to the query part:
    here? https://github.com/collective/collective.portlet.relateditems/blob/master/collective/portlet/relateditems/relateditems.py
•  you could consider installing collective.jbot, at least to see if you get it to work (then you can just duplicate that code into a file called 
   collective.portlet.reateditems.releateditems.py , I assume

Espen

26. juli 2014 kl. 01:13 skrev Norman Fournier <norman-1jZL4mT5wAAE/[email protected]>:

> Hello,
> 
> I am trying to find out how to edit the Recent Items portlet to only return the logged-in Member's files, and not all published changes. Any pointers would be appreciated.
> 
> Norman
> 
> ---
> http://www.normanfournier.com
> 
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds_______________________________________________
> Plone-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plone-users

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.