问题
This might be a general question, but I can't seem to figure it out. What are containers in DNN? Skins are essentially a layout plus a colour scheme for the whole portal. So are containers the skin for desktopmodules?
Sorry if this question is novice. I am not confident in DNN yet, and am reading the doco. However i need this answer quite quickly.
Cheers.
回答1:
Containers allow you to add style and markup to any module independently of the page skin or the particular module.
The layout goes like this:
- Default.aspx
- Skin (.ascx control, either the Portal default or selected on the given tab) - this has panels on it
- Container (.ascx control, this can allow you position some edit buttons and have a configurable wrapper around any module)
- Module (.ascx control, usually coming from /DesktopModules)
I hope this helps, -Eric
回答2:
Yes, container is like a skin for single module. Using one skin for entire page, and several skins (container skins) for modules you can quicker create expected appearance.
In general this is a simple html snippet with several placeholders.
来源:https://stackoverflow.com/questions/1042187/dnn-containers