Steven Heynderickx wrote on 30 Dec 2009 13:55
I want to give users the opportunity to extend their profile with childpages. These childpages will be listed in their profile page. In order to do this I need to make some "newPage"-button/link on the profilepage setting the parent of the childpage to be the current profile…
I did some experiments and found that ListUsers does strange things inside the profile:page.
If you look at the profile:page of the current user…
%%number%% renders %%%12345%%% the correct number but between %%%
%%title%% renders 12345 the correct number not the title
%%name%% renders 12345 the correct number not the name
If you look at the profile of a member you get
%%number%% renders %%%12345%%% the current user number between %%% not the member number
%%title%% renders the correct membertitle
%%name%% renders the correct membername (unix)
So the number is of the member is correct since I ask the number of the current user "."… but the member-title and the member-name are wrong… they should also be from the current user.
I know this is not finished yet… but I assume it's something that needs to be looked at.
Obviously, there is a mistake with the ListUsers module here.
However, I'm not sure what your problem is? In the meantime, using variables such as %%title%% and %%name%% work perfectly fine through the Live Template. Is there some information you are trying to get, that isn't working as you had hoped?
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
a mistake…
Leiger, I have much respect for what you do on wikidot… but "Obviously" is not such a nice word to use. I report that if I use ListUsers INSIDE the profile:_template… It comes out unexpected if you click for example on a username (let's say in the watcherslist). Maybe this is a strange place to use the ListUser module but as I wrote I have my reasons to try this and that is to create children pages of this Profilepage.
Now tell me what THE mistake is you are talking about.
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
Sorry, not sure what I was thinking there. Have to keep reminding myself that I may have misunderstood what I'm replying to, instead of just assuming I know what people are talking about.
A recent bug with using the ListUsers module in a live template was fixed… does this also fix the problems you were having? :S
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
Maybe the profile-category is a bit of a special case. I know what I am trying to do was not logical but it gave a not-logical result. I'll set the profiles up on a site that is open to you so you can see what I mean.
Thanks for understanding my point of view. Like I said, I have much respect for you, wish to keep on working with your help in the future.
I'll come back to this if I have it up and running on some site that is open
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
It should work perfectly now. We fixed a small bug in case-sensitivity of modules inside of _template.
Piotr Gabryjeluk
visit my blog