Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > App_Themes and Uploading Images through UI View modes: 
User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 9/7/2012 2:28:46 PM
   
App_Themes and Uploading Images through UI
Getting some unexpected results here with some images in the App_Themes directry. I have files set to be stored in the database and file system. I have several dev instances all connecting to the same test database. I have been uploading images to our App_Themes/MyDirectory and using those images in my CSS. When I go to view on a different computer connecting to the same DB, it doesn't display those images. I've looked in the App_Themes/MyDirectory on my local computer and don't see those images in that directory either although when I look in my stylesheet and click the Themes tab, I see they are associated with the stylesheet and I see 3 pages of them on my computer and only 1.5 pages on another computer. So these images must be stored in the file system somewhere, just don't know where.

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 9/7/2012 2:39:42 PM
   
RE:App_Themes and Uploading Images through UI
Those files are not stored in the DB and do not use the file handler or anything. You are basically just uploading the files to the ~/App_Themes/stylesheetname/ folder. You're going to have to copy that folder to the other site even though it's using the same DB.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 9/7/2012 3:29:39 PM
   
RE:App_Themes and Uploading Images through UI
See I thought that same thing. But I couldn't see where any of those images were being written to the file system at all. Then I looked at my IIS settings and I had the a different directory setup to run the website than what I was looking in...geez...you're right, they are all in there. Thanks

User avatar
Member
Member
krisblack - 2/21/2013 4:24:33 PM
   
RE:App_Themes and Uploading Images through UI
Can you elaborate a little more about what you mean by this:

You're going to have to copy that folder to the other site even though it's using the same DB.

I'm not sure what I'm supposed to do, but I'm having the same problem, I think. Any images I upload to CSS Stylesheets I've created, or images in the default stylesheets, are not even displaying in the App_Themes. It shows that they are added, but it's like the images aren't able to be referenced.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 2/27/2013 2:19:36 PM
   
RE:App_Themes and Uploading Images through UI
When you're in the CSS Stylesheets and adding images to the App_Themes/<SiteName>/Images directory, it physically stores them on the disk. I don't believe there is anything that is stored in the database. As far as content staging, physical files like those in the App_Themes directory are not copied. Also they are not exported when you export your site.

You might want to inspect your App_Themes directory a bit more and ensure a few things:

In my case, I was working on my local machine and others were viewing the site from a remote server and we were both connected to the same database. The site cant physically serve up the image if it doesn't exist on the disk (where its expected to be). So say you have 2 computers (Comp1 and Comp2) both have an instance of Kentico on them. You need to manually sync the files in the App_Theme directory from one server to another.