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 :)
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.
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.
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.
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.
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:
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...
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!
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
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
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
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
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.
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
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" />
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
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
is working on a reply...