Team:Groningen/Layout Ideas
From 2009.igem.org
(Difference between revisions)
(Example of dynamic hierarchy of categories using javascript.) |
m (Made query support continue.) |
||
Line 47: | Line 47: | ||
list: "categorymembers", | list: "categorymembers", | ||
cmtitle: pageTitle | cmtitle: pageTitle | ||
- | }).addCallback( | + | }).addCallback(function(results){ createPageList(pageTitle,list,results); }); |
} | } | ||
- | function createPageList(list, results) { | + | function createPageList(pageTitle, list, results) { |
var members = results.query.categorymembers; | var members = results.query.categorymembers; | ||
for(var i=0; i<members.length; i++) { | for(var i=0; i<members.length; i++) { | ||
Line 69: | Line 69: | ||
list.appendChild(li); | list.appendChild(li); | ||
} | } | ||
+ | } | ||
+ | if (results['query-continue']) { | ||
+ | svc.query({ | ||
+ | action: "query", | ||
+ | list: "categorymembers", | ||
+ | cmtitle: pageTitle, | ||
+ | cmcontinue: results['query-continue'].categorymembers.cmcontinue | ||
+ | }).addCallback(function(r){ createPageList(pageTitle,list,r); }); | ||
} | } | ||
} | } | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 13:06, 18 May 2009
Banner maken met foto's Die faden en zo alle facetten van ons team laten zien. voorbeeld: http://www.professorfrancken.nl/
"Paden" door de Wiki die de lezer op een logische manier door onze documenten leiden. Eventueel zouden we zijpaden kunnen maken voor meer detail. Denk bijv. ook aan de rode/gele paden in bossen en op eilanden. (Zo van, volg de gele paaltjes.) Kun je gelijk een mooie "sitemap" maken.
We could use JavaScript and the Wiki's API to create a menu and/or sitemap based on categories (this hierarchy is created dynamically using JavaScript):