branchandroot: oak against sky (Default)
Branch ([personal profile] branchandroot) wrote in [site community profile] dw_styles2010-03-03 07:02 pm

Grouping color and image properties

Okay, this is driving me nuts, and it's time to see whether anyone already knows the answer.

A layout I'm working on requires a few extra image and color properties (eg color_header_border). This is fine, they work out swimmingly.

The problem is that, while they show up nicely on Customize > Style and even under the proper sections (Colors, Images) they do not show up in the right subsections (Header, Module). Instead they show up in Colors > Options and Images > Options, where no one will ever think to look for them!

So, does anyone know how to place extra properties in the right subsection? Or even if it's possible to do so? (I'm starting to have a bad feeling this is a function of how the wizard pages are rendered, and not S2 as such, which would mean a new bug that I have no clue how to even start working on.)

ETA: Ha! Yvi was right, this is done in the layout's .pm file in the cgi-bin.
yvi: Kaylee half-smiling, looking very pretty (Default)

[personal profile] yvi 2010-03-04 08:34 am (UTC)(link)
Okay, I am really bad at Styles, so this might not be what you mean, but on the site, this is done in cgi-bin/LJ/S2Themes.pm, strating from line 677: # props by category heading
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-03-05 03:52 pm (UTC)(link)
Hmm, yeah I think this has to do with stuff that needs to be set in the $layout.pm files.
ninetydegrees: Art: self-portrait (Default)

[personal profile] ninetydegrees 2010-03-05 10:41 am (UTC)(link)
This problem came up with Funky Circles so if you want to see what needed to be done, here's the patch: http://bugs.dwscoalition.org/attachment.cgi?id=2651&action=diff

Making it possible to append new props to an existing propgroup using _child was Afuna's doing. It doesn't work well with the Modules propgroup, though.
Edited (typo) 2010-03-05 10:42 (UTC)