This is a general question that i would appreciate your help with.

What's the best practice you would recommend, to display the domain theme settings form in a custom link.
For example "Personalize your domain" is a menu callback or a link that displays the theme settings for the current domain.. and of course i need to control the redirect page after submit, i don't want the user to get back to the admin pages.

Another thing, is there a similar function to theme_get_setting
that retrieves a setting for a specific domain.

Thanks.

Comments

kharbat’s picture

I'd appreciate any hints or ideas..

agentrickard’s picture

Two questions here.

1) At the moment, I think you would need a custom menu item that duplicates 'admin/structure/domain/view/%domain/theme/%/theme-settings', because that page really just calls and alters the default theme settings page. You would also need to add a submit handler to change the redirect path, I suspect.

2) There is not, and there are two use-cases that we need to address.

a) The ability to get / set a specific theme variable for a domain -- right now, the module depends on the global domain context for this.

b) The ability to batch update theme settings, which is actually pretty tricky, but definitely desirable.

Both of those should be separate feature requests.

kharbat’s picture

Yeah thanks! i've already done it this way i thought there might a better practice. But yeah i think ill write down the feature requests for you so you won't forget :)

Thanks again.

agentrickard’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)