Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eran Meir 401 posts 543 karma points
    Nov 22, 2010 @ 09:04
    Eran Meir
    0

    source code

    hey, any chance to upload the source code ? i would like to learn some things from this package :)

  • Lachlann 344 posts 626 karma points
    Nov 23, 2010 @ 09:18
    Lachlann
    0

    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

  • Eran Meir 401 posts 543 karma points
    Nov 23, 2010 @ 12:48
    Eran Meir
    0

    thank you.

    i will update you :)

  • Lachlann 344 posts 626 karma points
    Nov 24, 2010 @ 13:14
    Lachlann
    0

    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

     

  • Eran Meir 401 posts 543 karma points
    Nov 25, 2010 @ 17:02
    Eran Meir
    0

    hey can i have your email so i can talk with you about the package ?

  • Lachlann 344 posts 626 karma points
    Nov 25, 2010 @ 17:53
    Lachlann
    0

    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

  • Eran Meir 401 posts 543 karma points
    Nov 25, 2010 @ 18:07
    Eran Meir
    1

    ok then

     

    1. the number of the node names should start at 1 and not 0
    2. "name your nodes" should be change to "ok" or something like that, the current text is misleading.
    3. 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.
    4. why limit the number of nodes to 9?
    technical stuff
    1. 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. 
    2. read about c# conventions, instead of naming the function "initTree" name it InitTree.
    what do you think?

     

     

  • Lachlann 344 posts 626 karma points
    Nov 25, 2010 @ 18:22
    Lachlann
    0

    Hi Eran,

     

    Thanks very much for your comments

    • 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 :)

     

    L

     

  • Eran Meir 401 posts 543 karma points
    Nov 25, 2010 @ 18:34
    Eran Meir
    0

    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.

    1. "Next step"" would be understandable.
    2. you have RegualerExpressionValidator that check for a number between 1 to 9.
    3. a quick fix could be: after the user click "Create" just clear the viewstate. try it.
    4. what do you think about the idea of the naming template?

  • Lachlann 344 posts 626 karma points
    Nov 26, 2010 @ 10:05
    Lachlann
    0

    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

  • Eran Meir 401 posts 543 karma points
    Nov 26, 2010 @ 10:24
    Eran Meir
    0

    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

  • Lachlann 344 posts 626 karma points
    Nov 27, 2010 @ 11:35
    Lachlann
    0

    Hi Eran,

    Ahh i see what you mean this is a good idea I will build it into the next release!

     

    L

  • Mohammad Azeem 31 posts 74 karma points
    Jun 25, 2012 @ 13:44
    Mohammad Azeem
    0

    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...

  • Mohammad Azeem 31 posts 74 karma points
    Jun 25, 2012 @ 13:45
    Mohammad Azeem
    0

    looking forward your reply

    .

Please Sign in or register to post replies

Write your reply to:

Draft