I want to do a soft relaunch of the public site in Joomla!, which should be really easy as the public section is just a single static html page. The theory is it'll let me upload the site and quietly replace the current holding page with Joomla while finishing off any other preparation tasks, but with all the rest of the new Joomla! content hidden until I'm ready to go live. It also gives me a chance to have a play with changing colour schemes.
For the several years bostoncube.com has appeared to be nothing more than a simple 1-page website and some email addresses. All of the previous content, which spanned approx 4 years, was lost when a previous hosting provider messed up a server move and I never bothered to put it back so I really don't have much to migrate.
With the legacy holding page in Joomla I can also make any interim updates to it much more easily. Probably overkill, but it's a good way to learn and be prepared if I ever have to do something similar on a larger scale in future.
Create Article
The first step was to create a new article BostonCube.com is paused assigned to the Layout category and then do a simple copy/paste from a browser straight into the article text editor.
There was a little bit of fiddling with table attributes used to create the pause icon to make it appear the same height as the original but otherwise it was very easy.
Unfortunately one of the downsides of using a CMS like Joomla! is you lose fine control over pages as the CMS takes over presentation to ensure consistency, save a lot of repeated fiddle and stop maniacs from going off and doing entirely their own thing which might well be dangerous. And that means you can't simply change the background colour and remove all menus and layouts from your page from within an article. For that we need to delve into child templates, but first we need a menu.
Create Legacy Site Menu
The legacy page doesn't have a menu on it so I can't use the default Joomla menus to make it visible either. This isn't a problem though, as Joomla supports multiple sets of menus so we just need to create a dedicated Legacy Menu for this page.
From an administrative login go to Menus > Manage and with the type set to Site click on New.

We can now define the new site menu

As with all items it needs a Title which will appear in the Menu list on the admin screen along with the description. It also needs a unique name too, which I'm assuming is used to differentiate between any other menus.
We can ignore the permissions for now so just click Save & Close when you're done.
Under the Menus item on the admin menu, you should now see we have Legacy Menu and Main Menu under the site sub-heading.
Create Home Menu
Now we can create our Menu item for our legacy home page. This is going to a Single Article type, and we're also going to make several customisations on the Options tab to turn off a lot of Joomla content.
The first step is to create the Menu item, but we need to make sure we get the right site. Go to Menus and then click on Legacy Menu and you should see that not only do we have an option to to select Site, we now have a new option to choose the Menu to work with, which should now say Legacy Menu.

Click on New to start defining our new Home menu item

So this should be familiar by now. We can give it a title of Home, but the Alias must be unique among all the menu items, so I chose lhome. We also need to check that the Menu is set to Legacy Menu and of course it has no Parent as it's a top-level menu.
As mentioned above we want to set the Menu Item Type to Single Article and select the "BostonCube is paused" article as the one we want it to display.
Now I presume that you're doing this on a development site, as the next setting is going impact users. If you're doing this on a live site, then I have to ask one simple question: "Why?". We want this to become our new default home page, so we set Status to Published and Access to Public so that anyone can see it. We're also going to set Default Page to Yes which will have the following effects:
- Anyone visiting the site on its default URL, e.g. http://joomladev.example.com will now see the recreated legacy home page instead
- On the Admin menu, the Menus : Site list will now show a small house icon next to Legacy Menu instead of Main Menu
- On the Menus > Legacy Menu page, Home menu will now have a yellow house icon under home
If you want to access the Main Menu home page, you will need to call the home page explicitly, e.g http://joomladev.example.com/index.php/home, or make that the default page again.
Hiding the Joomla / Cassiopeia components
If we now open our legacy home page in a browser we can see the article title and details, the default cassiopeia banner and the Main Menu and Login Form modules on the right, and all in the default colour scheme, which is not what we want.

There's two stages to fixing this, and the majority can be fixed by simply turning them off in the options tab of the Legacy Home menu item. So if we return to that and click on the options tab we've got a whole list of things to play with.

To get some idea of the effect of each setting I found it helps open the legacy home page in a separate browser window without logging in (you may need to use a private window) , and then after changing each option to save the menu configuration and then refresh the legacy home page in the the separate browser and note the differences.
The list of options I changed is:
| Option | New setting |
| Title | Hide |
| Article Info Title | Hide |
| Category | Hide |
| Author | Hide |
| Publish Date | Hide |
| Navigation | Hide |
| Hits | Hide |
| Tags | Hide |
I had also set the following to hide as well, but it turns out these are not necessary given the options above: Linked Titles, Intro Text, Link Category, Tags. I suspect Tags might need to be explicitly disabled if I enable them before the go-live, and you won't see the effect of Navigation unless you have other articles in the same category.
Hiding Modules
All of the above options disable things that are added to the display of article itself, but that still leaves the breadcrumb, Main Menu and Login Form. These are provided by modules and can be seen if you click onto the Module Assignment tab of the menu item.

It would be nice if we could disable any of the modules here, but instead we have to change settings on each module. At least there's a link to them, so click on the first one and it will bring up the Edit module settings page for it.

Click on the Menu Assignment tab and change the Module Assignment setting from "On all pages" to "On all pages except those selected" which will bring up a menu selection setting. Either clear the tick boxes in all menus apart from Legacy Menu > Home, or click on Assign to Menu Items None to clear all the tick boxes and then tick Legacy Menu > Home. Both approaches work.
Click the Save & Close button and this will take effect immediately, no need to save the the Legacy Home menu. The blue All on the display column will become a red No and simply repeat this for the remaining Modules listed.
By setting an exclusion like this, if we add other menu's later they will still get the module.
I can imagine managing module assignments becoming a bit messy later as the site grows, so maybe some sort of plan / summary doc might be useful.
If you refresh the home page open in a browser window you should see the last remaining feature of Joomla on the page is the Cassiopeia branding, and of course it's still a white background. To fix that we need to take a quick dive into Child Templates.
Update: I later disabled the Breadcrumb and Main Menu modules completely, other modules were also added which were configured not to display on the Legacy Home page.
Create Legacy Child Template
The colour scheme is controlled by the Site Template, and the branding is controlled by the Site Style, both of which you need to be logged in as a member of the Super Users group to change.
At this point in my Joomla journey I have to admit I don't fully understand how Templates and Styles work. It seems quite powerful and to be based on inheritance, but I also get the impression it's not fully complete yet. For instance I can't find a delete button or way to rename, so care needs to be taken to get this right first time.
As a Super User, go to System > Templates : Site Templates and click on the Cassiopeia Details and Files Template.

Then click the Create Child Template button to open the Child Template screen.

Unlike other items which have both a name and alias, this just has a name, but the rules for aliases apply. Also make sure to select the Cassiopeia - Default style to copy into the child template too. Click the Create Child Template button when you're ready.
Now we can start to customise them. Go to System > Templates : Site Template Styles and you should see our new style is now called cassiopeia_cube_legacy - Default, is not assigned to anything yet and associated with the Cassiopeia_cube_legacy template. It's helpfully concocted the style name for you, but at least it's possible to change if you like. The template name has been prefixed by Cassiopeia_ and converted to lower case and this cannot be changed, at least not in this release.

Click onto the new style to edit it and select the Advanced tab. And yes, I did rename it too.

Click onto Brand to set it to No and this will remove the Cassiopeia branding from the top of the page. The next step is to assign this style to our Legacy Home page, which we can either do via the menu item itself, or clicking on the Menu Assignment tab here.

All we need to do here is select which Menu we want this style to be applied to, which in this case is just Legacy Menu : Legacy Home and then click the Save and Close button.
On the Templates: Styles (Site) list our new style is shown as LegacyCube and it's been assigned to a page, and if we refresh the browser with the legacy home page the branding has now disappeared as well.
The last step is to fix the colour scheme, and this is where we have to leave the the friendly environment of Joomla and step outside into the world of Cascading Style Sheets, CSS. But at least we can do this from within a Joomla text editing screen.
Edit Child Template CSS
To be honest I'm a little surprised there isn't a basic theme editor in Joomla but then CSS has a long and complex history and can be an incredibly complicated beast to work with. Thankfully in this case it's about as simple as it gets, we just need to know what tag to change.
The simplest way to get to the template editor is to click on the Cassiopeia_cube_legacy link on our list of styles, or you can reach it from System > Templates : Site Templates > Cassiopeia_cube_legacy.
When we created the Child Template a set of folders was created under [Joomla root]/media/templates/site and also under [Joomla root]/templates along with a templateDetails.xml

We want to add a user.css file to the [Joomla root]/media/templates/site/cassiopeia_cube_legacy/css folder, so click on the New File button.

Make sure the right folder is selected, set the File Name to user and select .css for the File Type and click the Create button. If you had a file prepared it can also be uploaded if you prefer.
You'll get a File Created message and the editor screen will open and then simply copy in the required snippet of CSS code
:root {
--body-bg: black;
--body-color: white;
}
so it looks like the the example below.

and click the Save & Close button.
Hint: If copy/pasting the above code snipped directly into the Joomla! editor then it appears to add an invisible  character at the start of the --body lines that you can see in the actual .css file, but doesn't appear in the editor. I'm not sure if this is a Firefox thing, or I need to change the markup here. If the colour scheme doesn't change then either delete and add the spaces, or "wash" it by copying into a simple text editor like xed or notepad first then copy from there into Joomla.
If you now refresh the browser window with the legacy home page, it should now look very similar to the original.

If you look really closely there is a difference in fonts and text size. If you were really keen then I guess you could adapt the user.css to change that as well. And if it's still black text on a white background then go back and check the user.css hasn't got the additional characters added that don't show up in the editor - check at filesystem level, or view source and then open the link to user.css to see what's actually getting sent to your browser.