sohini2689 / gaewiki

Automatically exported from code.google.com/p/gaewiki
0 stars 0 forks source link

List children of a certain parent #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Need to add a way to list children of a certain page.  E.g.:

  [[ListChildren:Welcome]]

Would list Welcome/En, Welcome/Ru and so on.  Shorter version [[ListChildren:]] 
would list children of the current page.

Need to clarify what to list: the full page name (Welcome/En) or the last part 
only?

Also, GAE offers no way of filtering by parts of text fields.  This can be done 
by adding a page property which would store full parent's name, which would 
require a database update and break compatibility.  Or a label can be 
automatically added to pages with slashes, in which case the existing 
[[List:LabelName]] syntax would work.

Original issue reported on code.google.com by justin.forest on 16 Mar 2011 at 9:38

GoogleCodeExporter commented 8 years ago
Basically what we are trying to achieve here is a similar function to the 
existing in MoinMoin [[FullSearch()]] with one difference: We do not want to 
recursively show all children in the hierarchy.

Given:
/usa/orlando
/usa/orlando/php developer
/usa/miami
usa/miami/java developer

If declared in the home page (/) [[FullSearch()]] would output the above links 
(very important to be links) while the proposed [[ListChildren:]] would just 
list
/usa

Inside usa it will list
miami
orlando

and so on.

It is just a way to present page content. Pagination should be supported as the 
number of items inside a city for example can be really big. More recent 
created items should appear first.

In regards to implementing something like [[ListChildren:Welcome]] we really do 
not need it for our current project. What should be really needed is a search 
functionality. MoinMoin for example allows to search in titles and in content 
(text) which is really handy but a Full Text Search including title and content 
should be enough IMO.

Thanks!
-Nestor 

Original comment by nestor.u...@gmail.com on 18 Mar 2011 at 1:01

GoogleCodeExporter commented 8 years ago
This issue was updated by revision 66e2f62a59bc.

Detailed description is in the wiki:
http://code.google.com/p/gaewiki/wiki/Features#Listing_children

Pagination is not supported right now.  It would require extending request
syntax to allow PageName?page=2 or something, which would break the current
implementation of page caching.  Maybe a JavaScript solution would work better,
if it's about ugly long lists.

Page sorting is also alphabetical because page creation time is not stored.  If
sorting by the last updated time is OK, I could add that.

Original comment by justin.forest on 8 Apr 2011 at 8:49

GoogleCodeExporter commented 8 years ago
Thanks for taking care of this. A setting to order pages by date (as default) 
would be great.

For pagination probably for my plans I can live without it provided I can 
delete pages older than let us say 30 days. Is that something that can be done?

Thanks,
-Nestor

Original comment by nestor.u...@gmail.com on 9 Apr 2011 at 12:57