New release up at Dlayer.com
This release adds a styling tab to the three active tools in the Content manager, currently the styling tab only allows a user to define a background colour for the container, additional styling options will be added in the future.
I have also fixed a couple of bugs in the Content manager, check the development log to see all the updates.
I have a very long list of small tasks that I continue to add to as I develop, all smallish things, either issues with the structure or just very minor bugs, I am going to concentrate on reducing the list before I start adding any additional major functionality.
The modules in Dlayer all use the same approach when it comes to the processing code for the tools, there is a tool class behind each tool and two processing modes, auto and standard, although this works for the Template designer and Form builder it is starting to cause issues in the Content manager.
I developed it this way to specifically allow tools to have a two functions, the standard mode where a user defines all the values and quick modes. An example from the Template designer is the background colour tool, in the quick modes the user is choosing a palette colour, in the standard mode the user defines the colour using the colour picker. An example from the Form builder is the name and text input tools, although two different tools they both use the text processing tool, it is just the name tool presets all the values to allow the user to add a name input quickly.
In the Content manager I’m adding styling tabs to the tools, these allow the user to define basic styling for the content container. Because they are part of the text tool the processing tool class is already defined, it will however fail on processing because expected values won’t exist.
There are a few ways to deal with this, I can add support for sub tools, have the tools check the mode they are and process accordingly or on the styling tabs define other tool classes to use for processing.
I’m swaying toward sub tools at the moment, mainly because although the user is defining styling they are defining the styling for a text content item.
Because I have to come up with a workable solution to the above the next release will be a little smaller functionally, I’m only going to add background colour styling support to the text content tool and then extend the system for the next release if everything goes to plan.
New release up at Dlayer.com
This release includes the new colour picker, currently only available in the Template designer.
In the Template designer when a user needs to choose a colour, background and border tools, clicking on the colour inputs loads up the new colour picker.
The colour picker shows all the colours defined in the three site palettes, the last five used colours and also includes an input to allow a new colour to be created.
The data for the last used colours comes from the database, tools however don’t yet update the database, as I add the colour picker to the rest of the modules I will add in the calls to store used values.