Hey Eran, No problem I will do that tommorow. I am quite new to .Net so if you have any suggestions on how the code could be better that would be awesome.
As promised I have uploaded the source code to the project as a a zip.
Inside the zip is the Speedy Content Creator user control and also the posbuild dashboard add usercontrol. I used the blog post over at nibble (http://www.nibble.be/?p=31) to create this.
Let me know if you have any question. Like I said I am really new to .Net so If you have any comments on how the general code is written I would really appreciate feedback.
the number of the node names should start at 1 and not 0
"name your nodes" should be change to "ok" or something like that, the current text is misleading.
i think there should be a textbox for a name template, instead of "New Node" i can write for example "Article", "Event" or even blank so i can have nodes named "1" "2" "3" and so on.
why limit the number of nodes to 9?
technical stuff
i don't like the "else" section in the page load, after i created some nodes it will create textboxes again and again, it shouldn't behave this way.
read about c# conventions, instead of naming the function "initTree" name it InitTree.
I suppoose from a front end user's perspective the automaticaly generated node names should start from 1 but my intention for this package was as a developer tool and as the loop is indexing from 0 it seemed pointless to start naming the nodes from 1.
I agree with you regarding the "name your nodes" button. I wanted to make sure that users realised that this wasn't the last step which is why i chose a longer title rather than "okay" perhaps coninue or next would be better?
I dont think the number of nodes is limited to 9 could you clarify this? it may be a bug that i hadn't realised.
Im not sure I follow your reasoning behind the else statement in the page load. This is to make sure that the text boxes persist on the page after the page posts back. If I didnt have this here the boxes would be removed when any of the drop down events post back. Can you think of a better way of doing it? This is the only thing that i could think of.
The naming of my methods. Yes you are quite right. I got half way through my code when my friend pointed out I had been naming them wrong, should have gone back and renamed the ones that are wrong but I had other bugs to fix and this fell to the bottom of the pile :S
Thanks again for taking the time to have a look at it :)
Im glad it has helped, making this package has taught me lots about the API as well as .NET!
In the next release I will make the amendments to the button names to make it a bit more useable. Regarding theregular expression, this is just checking that the user enters a number ([1-9]*) means any digit between 1 and 9 multiple times so 99 is permissable but a99 would not be.
Im not sure I understand your suggestion for the viewstate, the problem is that even before the user clicks "create" the page is posting back (after any of the drop down menus are selected) this is clearing the text boxes.
The current release of the package does allow users to choose a template
for each node they create, although the code I uploaded is still
version 1.0, is this what you mean?
Thanks again, and I will let you know when the next version of the package is out, with your suggestions.
never mind about the viewstate, i understand what you did.
about the template, i meant template for the name on the nodes, instead "New Node 1" i can write "Article" in a textbox and i get "Article 1" "Article 2" and so on.
i added an image so you can understand what i mean
hy... am just newbee at umbraco.. i developed a site in asp.net using c# and SQL server.. my all data displaying on web is displaying from database...
How can i use Umbraco to develop a admin panel./ CMS............? first of all what should i do after completing installation..? am loking for some guide.. thanks...
source code
hey, any chance to upload the source code ? i would like to learn some things from this package :)
Hey Eran, No problem I will do that tommorow. I am quite new to .Net so if you have any suggestions on how the code could be better that would be awesome.
L
thank you.
i will update you :)
Hey Eran,
As promised I have uploaded the source code to the project as a a zip.
Inside the zip is the Speedy Content Creator user control and also the posbuild dashboard add usercontrol. I used the blog post over at nibble (http://www.nibble.be/?p=31) to create this.
Let me know if you have any question. Like I said I am really new to .Net so If you have any comments on how the general code is written I would really appreciate feedback.
L
hey can i have your email so i can talk with you about the package ?
Hi Eran,
Yeah no problem but it might be a good idea to post as much as possible on the forum that way if others are interested then they can join in.
L
ok then
Hi Eran,
Thanks very much for your comments
Thanks again for taking the time to have a look at it :)
L
no problem, i'm quite new to the umbraco API and this package teach me so much.
about the numbering: the developer is still a user if you think about it :)
the content that is generated is for the users. it will logically correct to start from the number 1.
Hey Eran,
Im glad it has helped, making this package has taught me lots about the API as well as .NET!
In the next release I will make the amendments to the button names to make it a bit more useable. Regarding theregular expression, this is just checking that the user enters a number ([1-9]*) means any digit between 1 and 9 multiple times so 99 is permissable but a99 would not be.
Im not sure I understand your suggestion for the viewstate, the problem is that even before the user clicks "create" the page is posting back (after any of the drop down menus are selected) this is clearing the text boxes.
The current release of the package does allow users to choose a template for each node they create, although the code I uploaded is still version 1.0, is this what you mean?
Thanks again, and I will let you know when the next version of the package is out, with your suggestions.
L
never mind about the viewstate, i understand what you did.
about the template, i meant template for the name on the nodes, instead "New Node 1" i can write "Article" in a textbox and i get "Article 1" "Article 2" and so on.
i added an image so you can understand what i mean
Hi Eran,
Ahh i see what you mean this is a good idea I will build it into the next release!
L
hy... am just newbee at umbraco.. i developed a site in asp.net using c# and SQL server.. my all data displaying on web is displaying from database...
How can i use Umbraco to develop a admin panel./ CMS............? first of all what should i do after completing installation..? am loking for some guide.. thanks...
looking forward your reply
.
is working on a reply...