Doing some theming here...
I've noticed that the color module functionality is...
- You can select your pre-configured scheme(s) in the drop-down, as laid out in the theme's color.inc file.
- Once there in the UI, any changes to any of the individual colors instantiates a "Custom" scheme, and the dropdown selector reflects that fact. so far, so good.
The problem is this: Once you change one of your custom colors, you can never go back to the custom scheme you had once set up, even though that scheme continues to persist, as long as you don't click 'Save' in the UI. I've tried clearing all caches, to no avail. Someone please let me know if I'm wrong on that.
This could be solved in one of two ways that I can anticipate, either
- Provide a 'Current Scheme' (or maybe, 'Revert') button in the dropdown, which would cancel your pending unsaved custom colors by reverting to what the theme is currently using.
- Provide a means for the user to save his current custom scheme as a named scheme which would then show up in the dropdown list.
So I am soliciting tips on how I might most easily implement either of the above functionalities. I'd rather not have to build a "Save Your Colors" module. (Does that already exist?)
Thanks...
Recent comments
Thanks Alejandro. That was the clues I needed.
Ubercart - Programmatically add product to cart and straight to Checkout
Have you tried uc_cart_add_item()? You need to provide the nid of the product. Then you can use backdrop_goto('cart/checkout'); to send the user to the checkout screen. uc_cart_add_item...
Ubercart - Programmatically add product to cart and straight to Checkout
No problem, let's see how it evolves. I'd be happy to provide a suggested version if i could. I will keep that in mind and try learn this hook chain hopefully very soon. I will...
File hashing uploads made through TinyMCE
I could request hashing support, but that's the lazy way 🤣 I would appreciate it if you as an active maintainer would 'officially' add a hashing support...
File hashing uploads made through TinyMCE
Hi, i understand the updating obstacle - not worth mentioning - hence it is a wacky (but working) patch until i know what to do. :-) One of my biggest wishes is to understand the hook...
File hashing uploads made through TinyMCE