NewCategory annex _template
nav_first.pngFirst: thread:375
Developing a module for Wikidot
Edited: 08 Mar 2011 18:27 by: North
Comments: 0
Tags:
nav_prev.pngPrevious: thread:143
Fix-up broken CSI references
Edited: 03 Mar 2010 16:50 by: pieterh
Comments: 5
Tags:
Last: thread:31
Black belt project
Edited: 06 Sep 2009 11:06 by: pieterh
Comments: 10
Tags:
nav_last.png
Next: thread:214
themes.wikidot.com
Edited: 29 Dec 2009 06:08 by: leiger
Comments: 1
Tags:
nav_next.png

Steven HeynderickxSteven Heynderickx wrote on 11 Jan 2010 17:13

with the module NewPage one can create a new page with for example a given category, parent, tags…

With this in mind is there a possibility for on the fly creating of a new category with a default template?

Why I would use it:
Imagen a user fills out a profile. This profile will ask him/her his/her profession. Imagen there would be this pagepath-thing… so they can choos from existing possibilities or they can create a new option.
Now I would like to show them a extra profile (if they just created a new profession, this will be the default) that is a live template. So lets say "John" is a student and he selects the student… his next page will be student:123 with an according student:_template. But Kathy want to select rocketscientist, an option that is not there yet. So that option is created… but while creating this option I wish that a category named rocketscientist is created with the default template. Why do those profiles need to split up? Well is is possible that Kathy is a rocketscientist, but maybe she is also a student at the same time.

If there are other ways to do this I will gladly read them here but "tags" are no option


Start a new sub-thread

Comments: 15

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