Copied to clipboard

Flag this post as spam?

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


  • Ferdy Hoefakker 214 posts 248 karma points
    Mar 17, 2010 @ 15:19
    Ferdy Hoefakker
    0

    image uploading with package

    Hello everyone. I have just recently started to work with Umbraco for my schools graduation internship project and I must say that so far I am loving it. In order to better understand everything however, I made a new section for the back-end which I finished yesterday and tried to make it into a package for easy install in future Umbraco installations. So far so good, but I am currently having a slight problem. How do I get Umbraco to place the image I want to use for my section in the umbraco/images/tray folder?

    I have been browsing/searching through these forums, but found nothing so far. Any help would be appreciated :)

    Kind regards,

    -Ferdy

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Mar 17, 2010 @ 16:00
    Nik Wahlberg
    0

    H Ferdy, when creating the package you should be able to select that path. So, in the package files tab, you should select the image from your install and that should include it in the package installation archive. 

    Let me know if I am not understanding your issue correctly. 

    Thanks,
    Nik

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Mar 17, 2010 @ 16:03
    Dirk De Grave
    0

    Hi Ferdy,

    I think it's just a matter of selecting the file (third tab 'Package Files'). I'm not sure if umbraco will put it in the same folder as the original file, but you check the output xml afterwards and maybe do a tweak to make sure it gets in the right folder.

     

    Cheers,

    /Dirk

  • Ferdy Hoefakker 214 posts 248 karma points
    Mar 17, 2010 @ 16:16
    Ferdy Hoefakker
    0

    Hi Nik, that sounds exactly what I need to do and I feel like a bleeding idiot for forgetting about that. After all, that's how I got the dll and aspx files where I need them. Stupid, stupid, stupid *facepalms*

    If it all possible, could you help with something else? I would like to add a language key so that my new section won't take the alias name. Now, I found a dll by Richard Soeteman that should give a package action that allows that. However when installing the package, the language keys do not get added.

    Thanks for helping me!

    -Ferdy

  • Ferdy Hoefakker 214 posts 248 karma points
    Mar 17, 2010 @ 16:19
    Ferdy Hoefakker
    0

    Since I cannot edit the other post, I guess I'll have to make a double post. Just wanted to thank you as well Dirk. I didn't see your post untill after the reply.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Mar 17, 2010 @ 16:25
    Dirk De Grave
    0

    Can you check the umbracoLog table for any entry that may give some more info whether your action did not execute as expected?

    Also, how's the custom action setup?

     

    Cheers,

    /Dirk

  • Ferdy Hoefakker 214 posts 248 karma points
    Mar 17, 2010 @ 16:31
    Ferdy Hoefakker
    0

    143    0    -1    2010-03-17 16:13:09.143    Error    Error at execute AddLanguageFileKey package action: Access to the path 'C:\Inetpub\wwwroot\umbraco\config\lang\en.xml' is denied.

    Ok, I did not know about the log table yet. From what I can see, I am assuming I have not set the acces rights correctly for that folder which is why it is failing. Also, I am not entirely certain what you mean with "how's the custom action setup?". Do you mean the package action xml code? If yes, it is:

    <Action runat="install" undo="true" alias="AddLanguageFileKey" language="en" position="end" area="sections" key="profile" value="Profile" />

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Mar 17, 2010 @ 17:14
    Dirk De Grave
    0

    Ok, but it seems that action is firing as it should, but that you don't have the required permissions to save the file with the new key in it. Check permissions indeed.

    And you're right about the custom action setup, that's what I was asking for, sorry for the confusion...

     

    Cheers,

    /Dirk

  • Ferdy Hoefakker 214 posts 248 karma points
    Mar 18, 2010 @ 09:45
    Ferdy Hoefakker
    0

    I checked and added the permissions and tried again. Everything seems to work perfectly now! Thanks a lot for your help Dirk. I'll really need to keep that log table in mind when something goes wrong, thanks for pointing it out!

    -Ferdy

Please Sign in or register to post replies

Write your reply to:

Draft