For one of my OG groups I created an OG panel page as demonstrated in the Dojo video. When I set this panel page as home page, it didn't replace the original group page and it disappeared as tab as well. When I set a different panel page to home page, the same happens. However, the tab of the panel page first intended as home page re-appears again.

Drupal 5.7, Pathauto 5.x-2.1, OG 5.x-6.0, Panels 5.x-2.0-beta3

Comments

moshe weitzman’s picture

Status: Active » Postponed (maintainer needs more info)

I cannot reproduce this.

jippie1948’s picture

I installed your devel module to find more information. Couldn't find it. Reinstalling the OG_Panels module didn't work either. What useful info can I provide you with?

Thanks,

JP

moshe weitzman’s picture

Your custom page is published?

jippie1948’s picture

Version: 5.x-6.0 » 5.x-6.1

Hi,

very dissatisfied with my above explorations around this issue, I wandered around in the issue queue and found the following issue:

I noticed when I was creating pages for organic groups, that the path aliases weren't coming through correctly? When creating a organic group page, you enter the Path for that page, which does seem to work. But the path alias for the organic group is lost. So you should see this: group/foo/foo_page, but instead it is: node/25/foo_page. Where would I look for the path alias to be used for the page?
http://drupal.org/node/242841

This made me think and I did the following experiments:

=1=====================================
'Home' panel page set NOT to 'home page' AND NOT to 'published'
Its URL set in Edit page: ?q=project/foo/kwark

Results:
Home, View and other tabs are visible
Home tab > ?q=node/3/kwark and 'Home' panel page
View tab > ?q=project/foo and original View
?q=project/foo/kwark > 'page not found'

=2=====================================
The same results as above when 'Home' panel page set to 'published'

=3=====================================
Home panel page set to 'home page' AND NOT to 'published'
Results: the same as in 1 and 2.

=4=====================================
The same as 3 but set to 'published'
Results:
View tab > ?q=project/foo > Original View plus all tabs without Home tab
?q=project/foo/kwark > page not found
?q=node/3/kwark > this time it produces the Original View without ANY tabs
and not the 'Home' panel page with tabs as in 1,2 and 3.

It looks like the same problem as quoted above. So the suspect is now the path alias, isn't it?

Looking forward to your response.

JP

PS. When I was previewing my comment, I saw your response. I think this is also an answer to your question. By the way, thank you for responding so fast. I appreciate that much.

moshe weitzman’s picture

Status: Postponed (maintainer needs more info) » Fixed

the prefix for the path field on the edit form was misleading. i have fixed it. will be in next release.

jippie1948’s picture

thanks, Moshe :-)

JP

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

jippie1948’s picture

Version: 5.x-6.1 » 5.x-7.1
Status: Closed (fixed) » Active

Hi Moshe,

I still have the same problem. With version 7.1 I did the above experiments again: the problem has slightly changed its face ;-)

=1=====================================
'Home' panel page set NOT to 'home page' AND NOT to 'published'
Last time its URL set in Edit page: /?q=project/foo/kwark
This time its URL appears like a clean URL /node/3/kwark
/node/3/kwark gives server error (too clean URL)
but /?q=node/3/kwark actually works. See below

Results:
Home, View and other tabs are visible for me as admin.
Home tab > /?q=node/3/kwark and 'Home' panel page
View tab > /?q=project/foo and original View

=2=====================================
The same results as above when 'Home' panel page set to 'published'

=3=====================================
Home panel page set to 'home page' AND NOT to 'published'
Results: the same as in 1 and 2.

=4=====================================
The same as 3 but set to 'published'
Results:
View tab > ?q=project/foo > Original View plus all tabs without Home tab

Last time ?q=project/foo/kwark > page not found
This time this URL is not generated

/?q=node/3/kwark > last time and this time it produces the Original View without ANY tabs
and not the 'Home' panel page with tabs as in 1,2 and 3.

Somehow the original ?q=project/foo keep referring to the original group view instead of to the 'new' home panel page. It would be great for me as admin still to have access to the original group view page though.

Thanks,

JP

PS. I enjoyed very much the 'disagreement' article you referred to. Very enlightening. Thanks.

thomasmuirhead’s picture

Has anyone managed to work out why this is...it doesn't work on our organic groups either. As soon as you select one of the page to be your homepage, that page no longer has a tab...(which means you have no 'home' tab once you go into other group pages) and when you come to the homepage you still get the stream of news frontpage rather than the selected page.

thanks

thomas

thomasmuirhead’s picture

sorry, I should have said that I am currently using 7.3 and it is still happening.

thanks

thomas

moshe weitzman’s picture

Status: Active » Postponed (maintainer needs more info)
uw07’s picture

Category: bug » support

I would like to set one of my OG panels pages as the home page for the group (not for all groups, but a specific panel page for a single group). But when I selected the "Home" radio button after creating the panel page, the home page view is still the default "River of News" view rather than the panel page.

When I set a panel page as a "home" page (using radio button) and published for the group, the page disappears from the groups tabs, and when I visit the URL I have designated for that home page (mysite.com/node/XXX/homepanelpage) I am taken to a view for the group that looks like the default except without the tabs. However, if I do not set the panel page as the "home" page for the group, it does appear in the tabs and I can visit the page using the URL and clicking on the tab. This is very strange, and entirely maddening.

Any suggestions?

(I should add that when creating the panel page, when asked to enter a URL path, I see path "http://mysite.com/node/XXX/" rather than "http://mysite.com/mygroupurl/")

Using 5.x.7.3

uw07’s picture

Status: Postponed (maintainer needs more info) » Needs review
uw07’s picture

Status: Needs review » Active
jkandiko’s picture

I am having the same issue. When the user is setting a home page, the tab is disappearing. I don't think that users know that the View tab becomes the tab that you specify as the home page. So, the 'disappearing tab' is really just a misunderstanding. What is more perplexing is that we set a page as a group home page, but the River of news is still showing instead of the group's custom page. We have the OG: Group home page selected as the default home page in the configuration for Organic Groups configuration, but no matter what we do inside the group panels, the custom page is never viewed.

We tried the upgrade to 5.x - 8.0 and it still didn't work.

Any ideas?

kansaj’s picture

I think it is working
just check to be published in the panel page setting.

uw07’s picture

Hi Kansaj. I have taken all of the necessary steps for this to work, but unfortunately it is still not working.

When you check it to be published and the home page for a group, the group retains the "River of News" default view. In fact, the panel page designated as the home page & published is not even accessible at its URL (see above). Instead, you see the default view.

Is there something overriding this maybe?

jkandiko’s picture

Here's a fix for the page that gets set and then disappears. Maybe this wouldn't be such a problem if this was documented outside of the code.

In the function og_panels_menu($may_cache), there is a two line comment that says: Optional. Horrible hack since the tab title is not changeable in D5. Add the following code to your theme's template.php in the _phptemplate_variables('page') section.
if (isset($GLOBALS['og_panels_view_tab_fix'])) {
$variables['tabs'] = str_replace('>View<', '>' . $GLOBALS['og_panels_view_tab_fix'] . '<', $variables['tabs']);
}

Since we are using zen classic, I opened up the template.php file in the zen classic folder and found the function zen_classic_preprocess_page(&$vars). I pasted the code in and nothing worked. Obviously because the code in the comments that we are supposed to paste uses the full word 'variables' instead of 'var'. After changing the code to use 'var' the 'View' tab is correctly changing to the title of the selected default home page.

The River of News is still coming through instead of the content that is prescribed for that page.

jkandiko’s picture

Does it matter what view you assign in Organic Groups Home Page presenatation? I found the following code in og.module:

$view = views_get_view(variable_get('og_home_page_view', 'og_ghp_ron'));
$views_available = variable_get('views_defaults', array());
if ($views_available[$view->name] == "disabled") {
// Do nothing. Assume the group node type handles homepage, or theme layer - i.e. node-.tpl.php
}

I didn't think the view mattered because the og_panels should be taking over. But it doesn't seem to be doing that. Has anyone gotten this to successfully work? What special views if any did you use?

  • moshe weitzman committed 5f4a5bf on 8.x-1.x
    #244880 by moshe weitzman. accurate field prefix on path field on edit...