Member:
Markus ⋅
Date: March 7, 2010, 02:57 PM
⋅ Subject: "Re: Feature Request: export and import 'boxes' - just like 'layout'."
Grand! Congratulations for the occasion. Your site is looking great, and you have the additional honors of being the first iWiccle user who has put the system into heavy use — and apparently with grand success!
If you want to make sure your footer content has the same margin above and below, remember that paragraphs get a 12px bottom margin (and 5px left margin) by default; you can eliminate that by adding in an inline style <p style="margin: 0px;"> to your footer HTML, or otherwise change the <p> tags to <div> tags, which get no default styles. (You can edit the paragraph default values in html.css, which contains all HTML tag definitions.)
Actually I have the unit import/export in my notes here already, it's coming in sooner or later, and will naturally be available for all units you have created to date. I really only need to do a slimming down of the layout import/export setup, in the range of 30 minutes of hack and slash. (But I have a gazillion features like that lined up! In case you were wondering why it isn't in already.)
In the meantime, don't copy and paste — include units within units. As follows (just look up the "mother" unit's ID in the builder unit dropdown):
<#UNIT_ID:1234#>
Create a custom unit and stick the above into the custom text field anywhere you want that unit to be mirrored. This will include your unit content inside another unit. Remember that the source unit is included with its base, so either 1) have your mirror unit without a base, or 2) have your source unit without a base in which case you can customize the box style individually for your mirrored units. This works both with static ("custom content") and with dynamic module content.
When you boot up the builder, you will also notice that you can click to edit both the mirrored unit "container" or the source unit, while only the mirrored unit is displayed in your Builder dropdowns. I recommend to edit the source unit at its original location, but it seems to be working fine both ways. Also, I have not tested this thoroughly in cross-module use, but again it seems to be working fine there too. My earlier warning on module configuration enveloping not being fully tested in cross-module contexts applies here as well.
(So many possibilities... I can't possibly test all those options exhaustively and in different contexts, because the possible combinations and usages are literally infinite! I just do basic testing on features like this and have faith in the framework symmetry until someone manages to break something. And if/when that happens, we simply adjust the CMS core accordingly to handle the situation more gracefully.)
The widths are only tagged for columns, so your source unit can appear in different widths in different contexts without a problem, as long as it looks decent to you.
Another tip for unit creation without showing half-done content to your members is simply tagging the unit's permission level for Root Administrators only. It will then be invisible for others, and you can tinker away all you want, or leave half-finished units in place without worrying about it.
Give it a shot and remember check in and let me know if you succeed in breaking something with this! =)
I have tagged this as an accepted feature request as a matter of formality. 