Steven Heynderickx wrote on 07 Jan 2010 21:23
The ListValues module would be a listing of unique values inside a bunch of pages. It can only be used in cooperation with forms and live templates, since they are well structured storingplaces for content.
A syntax for a form-case could be the following:
All the books in our database were written by the following authors:
[[module ListValues category="books" order="asc" field="author"]]
%%form_field{author}%%
[[/module]]
A syntax for a live template-case could be the following:
All the books in our database were written by the following authors:
[[module ListValues category="books" order="asc" content="3"]]
%%content{3}%%
[[/module]]
To make the selection of pages of wich to filter from the usual selectors like tags, category… apply
Since only the field or contentblock is of importance, ordering can only be done on this item and so it is restricted to be ascending or decending.
The indication of the field or contentblock that will be used can be done by the selector
field="naming a field from the form" OR
content="number" the number that corresponds with the block
Use-case:
well as you can see in the proposed syntax: a badly designed datacollection with repetitive content, that needs to be shown in a list. For example Books with for each book an author and wich I wish to list in a list of all the authors of the books I have in my datacollection.
ListPages.
Portfolio
If you want to store authors as first class entities, that is, normalize them and add information on them, you would create a page per author and then refer to these in forms using the pagepath field type. You would then list authors and their properties using ListPages.
If you do not want to store authors as first class entities, there is no way to list them uniquely and asking for this will get a blank response. Wikidot is not a database system though sometimes it can show similar patterns. To get "unique" field values you need to process every single page to collect and process all values. You would create a severe problem of performance and you would hit usability issues such as different spellings of the same name.
So the answer is ListPages.
Portfolio
By the way, to save time, I can advise you to not try to design Wikidot functionality but instead ask questions such as "how can I…"
As I've said before, anyone except a skilled product designer with relevant experience is not competent to make Wikidot technical designs and what they produce will be by definition incorrect (with some exceptions). The design process works thus:
Trying to bypass the question-answer step is not optimal, so please refrain from proposing solutions and kindly focus on identifying your actual requirements.
If you like I can post this explanation on a sticky thread.
Portfolio
putting it in a sticky thread.
I forgot that
from the form design explains this all, sorry my fault.
I also wonder how many users lay awake from normalizing their data before they input it in wikidot… some sites that starts as a hobby on the "easy" wikidot platform and grow…
But lesson taken, I will not post again.
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
Steven, sarcasm does not help. Indeed, the form design does not explain this. However, if you wish to contribute, please do so in a useful fashion. That is, ask questions based on functional requirements. "I would like to do X". Providing us with technical solutions "Module that does X" does not help because:
Once again, a simple question that accurately explains what you want to achieve is much more valuable than proposals for technical solutions, or bad humor when I explain the problem.
Let me describe the ideal dialogue so you understand:
Only by answering real requirements can we even measure whether it is worth documenting technical solutions in more detail.
Portfolio
Okay Pieter
Is there more documentation somewhere, because it will be a great asset to wikidot if that would work some day.
thanks for the full - text replies I appreciate your effort and time
Still you know for what cause I am so unpatient and anxious to learn.
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.