ChrisHammond / DNNTemplates

Christoc's DotNetNuke Extension Development templates for Visual Studio
http://www.christoc.com/Products/DNN-Development-Templates
Other
97 stars 38 forks source link

Specific css for a container fails installation #66

Closed poul-erik closed 3 years ago

poul-erik commented 3 years ago

I have created a container with a specific css. I have include the css in the dnn file:

billede

But when I attempt to install, I get an error. Seams the installer cannot find the css in the package (apparently it should be in the root?) billede

I modified the SkinPackage.targets build script:

billede

I don't know if that is a correct solution, but it fixed the installation problem.

Regards

Poul Erik Sørensen

poul-erik commented 3 years ago

I also had problems with thumbnails for the containers. To solve this I had to also add the corresponding jpg file as a container file to the dnn file.

billede

I'm pretty sure that this is not the correct solution. When I look at the skin part. The packaging manage to include both the ascx, the corresponding css file as well as the corresponding jpg file.

When it comes to the container I have to manually handle these and I also noticed that the Container.css file is not included. For the skin package the Skin.css is included without any manual intervention.

Regards

Poul Erik Sørensen

ChrisHammond commented 3 years ago

Adding to the .DNN file is necessary due to the way the templates package the containers and skins together. Without the definition in the manifest, DNN doesn't know to treat those files as Containers instead of skins.