Organic Groups Support

Events happening in the community are now at Drupal community events on www.drupal.org.
mixedfeelings's picture

Hey All,
I am having some trouble with my organic groups setup, and since I won't be able to make it to the meeting this coming monday, i thought I would just post it here. and see if any of you have any experience with this. I also posted it to the Organic Groups issue tracker.

Simply put, my problem is that when my group content type, "group" is set to a organic groups node neither the main title or the browser head title appear. I have tried altering my node-og-group.tple.php in so many ways - even starting fresh with the default. Every attempt produced the same frustrating behavior. However, just as an experiment i changed the organic groups setting to "May not be posted into a group," and it the $title passed as expected.

This is the code passed from page.tpl.php:

        <?php if ($title): ?>
          <h1 class="title"><?php print $title; ?></h1>
        <?php endif; ?>

And this is how that same code appears when I view the page source:
<h1 class="title"></h1>

The head title defaults to the main site title.

This is one of the hanging bugs in a site that is slated to go into production this weekend, so any help would be most appreciated. This is the project that I brought to the group a couple of meetings back, http://www.sundaysoup.org

Thanks in advance,
George

Comments

Future topic?

jonbob's picture

I don't have an answer to the posted question, as I haven't used OG personally, but that got me thinking: OG would be an interesting topic for a future session, if someone with experience would like to give an overview.

If $title is unset in both

pfahlr's picture

If $title is unset in both the page and node templates, my guess is that it is being unset in a module or a preprocess theme function (template.php). I'm not getting this behavior in my install of organic groups, so it must be something specific to your setup.

Try these in your template file (substitute dpm() for print_r() if you have devel - it will be ugly).

//print all variables in scope
print_r(get_defined_vars());

//print the call stack
print_r(debug_backtrace());

I would love to hear a

Ross-Hunter's picture

I would love to hear a presentation on Organic Groups.

i fixed it!

mixedfeelings's picture

I think it came from an improperly cloned OG view. I wasn't actually using the view anyhow, so once i disabled it as the default view for organic groups and it was all set. Weird.

I would love to hear a presentation on organic groups, but if need be i could talk about my experiences.

Grand Rapids, MI

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week