Listpages For Logged In User Only

Posted by Helmut_pdorfHelmut_pdorf on 20 Aug 2018 15:31, last edited by Helmut_pdorfHelmut_pdorf on 22 Aug 2018 09:20

This is a page related to the community question

using the ListUsers module to get the logged-ion user
and than calling over a link another page with the ListPages module wanted using the parameter "created_by"={$variable_name} ( from the ListUser module

[[module ListUsers users="."]]
[* See your own pages]
<<--  this  is the important trick where you can built in an extra page  "listpages-for-logged-in-user-only1" with a standard  text of your ListPages module  the used include with the variable Name ,
and the called ( by link)  page could  use  the ListPages using the found logged in user as a variable in the url:
[[module ListPages  order="created_at desc"  category="*" created_by="@URL" separate="false" prependLine="||~ Title ||~ User ||~ at ||" appendline="||||||||~ ||" ]]
||%%title_linked%% || %%created_by%% || %%created_at%% ||

++In Action

Only for following user:

Thanks to user SimonHDickinson, who have posted this trick on our forum!
( )

Number of Comments: 1)

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License