Stuff 06/01/14


I spent today working on all sorts of things.

In the morning I was working on translating structure from some deign mock-ups into a SilverStripe theme. Primarily reusable components, or ‘panels’ that can be expanded upon (with individual styles, etc). Looks a bit like this:

.panel {
    border-radius: 10px;
    padding: 15px;
}

.panel-default {
    background-color: #ccc;
}

.panel-inverted {
    background-color: #222;
    color: #fff;
}

Not exactly earth shattering stuff, but the above is simple examples of what I’ve applied.

The latter part of the day was filled with fiddling with Vagrant boxes, composer and Bitbucket git repositories, as well as some meagre attempts to get the ‘panel’ output into a separate DataObject for displaying modularly across the site – and allowing the content section of said panels to be editable from within the SilverStripe CMS rather than hard-coded.

The separate DataObject helps to keep module/panel-like content editable but entirely separate from the pages in the base Sitetree – as it should be.

Unfortunately, while I was able to build the DataObject without much trouble – so they can be added and edited from the admin interface, I struggled with getting them to output within the template files. Perhaps tomorrow will yield better results.

Now for an evening of working on user profiles for Qubetubers. I’ll hopefully have some updates on that for tomorrow.

Advertisements

One thought on “Stuff 06/01/14

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s