After I enter new theme names via the theme batch-update page (admin > build > domain >batch > site_theme), the status field in my domain_theme table stays on zero, even though the theme field shows different theme names. The batch-update page shows the values that are active, not the inactive ones that are in the database. After I go into the database and change the status from 0 to 1, then the domain displays a new theme and the batch-update page also shows that new theme.
EX: Before update:
Batch page: Theme = garland
Database: domain_id = 2, theme = garland, status = 0
AFTER UPDATE on Batch page
Batch page: Theme = garland
Database: domain_id = 2, theme = newsflash, status = 0
AFTER manual update of database
Batch page: Theme = newsflash
Database: domain_id = 2, theme = newsflash, status = 1
When I do a Reset to Default values for the themes, all the status fields are set to 0 and the theme_field entries go back to garland. The name of the domain changes regardless of the status field, so it seems the sitename field in the Domain Table is working fine no matter what.
While I can enable themes by setting their status fields to 1 via the database, I suspect that's not how it's supposed to work. What should I have set up to make the theme_status field update via the batch-update page?
History: While setting up the site, I have enabled Theme_domain, then disabled it to make things simpler, and then recently re_enabled it because I thought I was ready to customize the domains. Then I realized they weren't responding properly. I'm not sure if they ever had active Status flags, since they were all on the same theme and they looked alike.
Site Info:
- Drupal 6.13
- Database: MySQL 5.0.81
- PHP version: 5.2.9
- Domain 6.x-2.0-rc8 (Domain Access, Domain Configuration, Domain Content, Domain Navigation, Domain Source, Domain Views)
Theme settings: Domain Theme execution order: 0 (default)
Node access settings: Use the default Drupal behavior (OR)
- Domain Access Advanced 6.x-1.0-rc1
- Domain Blocks 6.x-1.1
- Organic groups 6.x-1.3
- Panels 6.x-3.0
Comments
Comment #1
agentrickardSo we need a batch action for Theme status? Makes sense, hard to do the UI, though, because of the table layout. This is currently by design, but could use improvement.
Comment #2
uufsm commentedOther people might like this level of control. I was thinking that the theme-status would be automatically set to 1 if the theme is different than the default. Once I've changed the theme, I would want it to be active.
Just to be clear: if the theme is the default, then the theme-status should be 0?
Comment #3
agentrickardIf the theme is the default for that domain, it should be 1.
Comment #4
uufsm commentedOk, that makes sense. I had a bad install (base_url was set in settings.php to enable clean URLs), and it messed up a variety of things. All better now.
Thank you and thanks for the great module. It's exactly what I needed for my site.
Comment #5
agentrickardWe still probably need to set the default status on this action.
Comment #6
uufsm commentedAs you think best, of course.
Comment #7
agentrickardThe fix for this is wrapped up in #597654: I select themes, but remain always only the default theme.
Comment #8
agentrickardFixed in the other issue.