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
Tags:

This is a page related to the community question http://community.wikidot.com/forum/t-7065091/list-pages-for-current-logged-in-users#post-3919051

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="."]]
[*http://community-playground.wikidot.com/listpages-for-logged-in-user-only1/created_by/%%name%% See your own pages]
[[/module]] 
<<--  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%% ||
[[/module]]

++In Action

Only for following user:

Thanks to user SimonHDickinson, who have posted this trick on our forum!
( http://community.wikidot.com/forum/t-7065091/list-pages-for-current-logged-in-users#post-3919051 )

Number of Comments: 1)

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