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

geerlingguy’s picture

Yes, please - a screenshot would be nice. Sounds like an interesting module...

guysaban’s picture

Yes. Please explain what this modules is used for and when it is used.

anou’s picture

I've been searching for "how to use it"... and can't seem to find anything useful. Has someone found something to share ?

discipolo’s picture

Its 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

tostinni’s picture

And if you use the unofficial litecal plugin from openatrium it gives you nice popups.

videographics’s picture

I 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.

btopro’s picture

Here's some code to use crayon however you want (outside of OG / Spaces context).

print theme('crayon_swatch', crayon_generate_acronym($node->title), crayon_generate_index($node->nid), $node->title);

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.