Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iqual-ch/styling_profiles
https://github.com/iqual-ch/styling_profiles
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/iqual-ch/styling_profiles
- Owner: iqual-ch
- Created: 2020-03-09T15:50:32.000Z (almost 5 years ago)
- Default Branch: 4.x
- Last Pushed: 2024-08-07T15:37:19.000Z (5 months ago)
- Last Synced: 2024-10-01T00:06:36.077Z (3 months ago)
- Language: PHP
- Size: 76.2 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Styling profiles
Drupal module which allows to define multiple (iq_barrio) theme settings.
## How to use
Go to /admin/config/system/styling-profiles to add a new styling profiles (or
edit an existing one) and assing them to pages, domains etc. See
[Submodules](#submodules) section for available ways to assign profiles.The profile editing form is the same form as the theme settings form, so
exactly the same settings can be configured.## How does it work?
For each profile, all the SCSS files of both the iq_custom and iq_barrio
themes are cloned and the _definition.scss file is render with the given
settings. Based on mapping fo the profiles, the libraries are altered to load
the clone resources instead of the original iq_barrio / iq_custom resources.## Submodules
The styling_profiles modules is shipped with 2 submodules:
### styling_profiles_node_switch
Provies a styling_profile selection field which can be added to a content type.
It enables the selection of styling profile on a per-node base. Instructions:
- Go to /admin/structure/types/manage/[content_type]/fields and add the field.
- Go to /admin/structure/types/manage/[content_type]/form-display and place the
field inside the edit form. Choose the desired field widget
(e.g. select or radios)
- Go to /admin/structure/types/manage/[content_type]/display and hide the
field in the fronted.### styling_profiles_domain_switch
Provies a styling_profile selection field for a domain. This requires the
Drupal domain module with a proper setup. Go to
/admin/config/domain/domain_profile_switch/config and assign the profiles
to the domains.