Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It's really hard to understand what this module is about, how it should be used and what is it's connection to OG. Please, add README.txt and/or some text or examples to the module page.
Comments
Comment #1
geerlingguy CreditAttribution: geerlingguy commentedYes, please - a screenshot would be nice. Sounds like an interesting module...
Comment #2
guysaban CreditAttribution: guysaban commentedYes. Please explain what this modules is used for and when it is used.
Comment #3
anouI've been searching for "how to use it"... and can't seem to find anything useful. Has someone found something to share ?
Comment #4
discipolo CreditAttribution: discipolo commentedIts actually pretty simple: once you read part of the module.
1. it extends the Views-field: Organic groups: Groups
2. which you get by adding the RELATIONSHIP Organic groups: Group node (post) to
3 a VIEW listing content from different organic groups
by adding two checkboxes to that fields configuration.
so:
1. create a view listing groupnodes
2. add relationship
3. add field: Organic groups: Groups
4. see the checkboxes!
hope this clarifies a little
Comment #5
tostinni CreditAttribution: tostinni commentedAnd if you use the unofficial litecal plugin from openatrium it gives you nice popups.
Comment #6
videographics CreditAttribution: videographics commentedI really like this small useful module but I agree that without looking at the code itself, it's not at all clear what it does...
WHAT IT DOES:
For each group post displayed in views, this module adds a CSS class that corresponds to the group the post is posted in. You manage all of the "Crayon Colors" using CSS.
Some users may also be interested to know that (if I read the code correctly) the module provides only 16 classes and then starts using the same ones over again.
HOW TO SET IT UP:
0. Install & activate the Crayon module.
1. Setup Views to display nodes posted into various groups.
2. Add a Relationship for "Organic groups: Group node (post)" (you do not need to require this relationship)
3. Add a the field "Organic groups: Groups" (do NOT setup the field to use the relationship)
4. At the bottom of the field configuration, you will see the option to "Display as color swatch" and "Display acronym for swatch text"
(Note: Currently, the checkboxes appear unchecked every time you open the field configuration. Don't worry, they will have taken effect if you checked them the last time but be sure to check them every time just to make sure.)
HOW TO STYLE IT:
The CSS for the module is in crayon.CSS in the crayon Module folder. Copy the CSS into your theme and do what you want with it.
Comment #7
btopro CreditAttribution: btopro commentedHere's some code to use crayon however you want (outside of OG / Spaces context).
This should throw up a swatch that's specific to the name of a node as well as generate the popup / text for it. I'm actually using it with menu token so that I can contextually throw up a consistent yet changing based on page viewed color swatch.