Copied to clipboard

Flag this post as spam?

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


  • John Philip 21 posts 41 karma points
    Jul 05, 2011 @ 18:11
    John Philip
    0

    Editing Source Code

    Hi There

    Your form looks good. I read your documentation and you say its easy to edit the source code which sounds good. Is there a place where you show how to do that and once one has edited the source code then what? I can edit the xslt.

    I'm sorry if the question is a basic Umbraco question. I'm new to this as you can tell.

    John.

  • Eran 292 posts 436 karma points
    Jul 05, 2011 @ 18:28
    Eran
    0

    Hi Jhon,

    first of all, in the near future i want to add to the documentation detaild explanation how to add/remove fileds.

    i didnt do that until now because i want to keep the documentation as simple as possible. because i supply the source as visual studio solution and its pretty straight forward, i explain little about this on the current documentation.

    anyway, the important thing to understand if you want to add or remove fileds from the form, is to understand that you have to do this on the client side (the xslt) and on the server side (the web service - asmx). this is because each form filed is validated both on the client side and the server side. so for example, if you remove field only from the xslt and not from the asmx, you will get exception because the server validation will be failed.

    the most easiest way to figure how things work, is to take a field for example and see where it is referenced in the code (both in the xslt and the asmx).

    it is not hard like it seems.. try to do that. if you will need help please feel free to write again and i will be more specific.

  • John Philip 21 posts 41 karma points
    Jul 05, 2011 @ 18:36
    John Philip
    0

    Hi Eran. Thanks for the response.

    I don't own Visual Studio. Can the asmx file be edited in notepad? Once I've figure out where to change stuff and do a save how does it get implemented into Umbraco then? Must I copy that file to a certain location?

  • Eran 292 posts 436 karma points
    Jul 05, 2011 @ 18:46
    Eran
    0

    you can use only notepad because you have to compile the web service (asmx). in order to do that you have to use some sort of compiler, like visual studio.

    you can also use the visual studio express, which is the free version of visual studio.

    after you make the changes and compile it it creates file with dll extension. you take this dll and overwrite the one that installed in the bin directory (which is exist in the directory where you installed umbraco).

  • John Philip 21 posts 41 karma points
    Jul 06, 2011 @ 11:52
    John Philip
    0

    Hi Eran

    The prospect of the massive Visual Studio Express download and having never compiled something before was not all that encouraging. Managed to find a workaround for now by adding some extra options to the select box in the xslt file which seemed to work.

    I might try the other process at some later stage. I really appreciate your feedback and effort you put in to create this plugin.

    Thanks so much.

    John.

  • Eran 292 posts 436 karma points
    Jul 06, 2011 @ 11:58
    Eran
    0

    i advice you to learn little bit dot net and visual studio if you want to customize umbraco. you dont really have to be high skilled dot net developer to make nice things with umbraco, you just need to know the basic stuff.

    goof luck,

    Eran.

  • John Philip 21 posts 41 karma points
    Jul 06, 2011 @ 13:45
    John Philip
    0

    Yup, thanks, I probably should.

    To be honest, all the websites I design are normally in Wordpress. This was a once of solution to accomodate a client who refused to have mySQL run on their server. Its been an interesting learning curve.

Please Sign in or register to post replies

Write your reply to:

Draft