I'll admit I probably broke this while trying to build my site around the ELMS distro. I created a view and made it my site's front page. I also enabled the primary links menu and put it in a superfish menu at the top of the page. The menu is set to discard rewrites from spaces so there will always be links to other parts of the site at the top of the page. However, in messing around with this, I somehow broke the frontpage for the course versions. Now when I select a version it displays the site's frontpage, not the version frontpage. What configuration settings do I need to look at to get this functionality back? Is the frontpage view breaking this?
Thanks. And I'm sure I'm going to have tons more questions.
Comments
Comment #1
btopro commentedInteresting question / use-case. So, when you make a new space, it's supposed to snag the site-fronpage variable from the variables table and replicate it as needed, by changing the value of front this may have altered other stuff (havent done it so not positive). Try making a sandbox, then going into the id toolkit / features for it and seeing what the frontpage is set to. After you set it to what YOU want the frontpage to now be (it can be anything) save the settings for this sandbox / og. Then click the save as default for all {whatever the space type is} and it should be fixed going forward.
If this doesn't help you may need to shoot a little screen-cast demonstrating the issue for me to diagnose it further.
Comment #2
jcicolani commentedI went into id tool kit and changed the frontpage to default and got an "access denied" error. Then I changed it to "spaces-frontpage" and got the same. I am assuming this is the default frontpage which spaces will rewrite for the version frontpage. I am essentially just trying to get back to default behavior for the courses while allowing users to navigate as they would expect to with the primary nav.
Comment #3
btopro commentedHmm... Do you have pages in the outline / elms_content enabled? spaces-frontpage will default to elms_content's first piece of content given the fact that it is enabled and that there is at least 1 page in the course outline. If those are enabled and with content, we'll have to dig deeper.
Comment #4
jcicolani commentedAhh... I see. I have four courses created. The first one, the one I made before I made changes to the navigation and everything, takes me to the first page of the course, in this case "Lesson 1". The other three, created after I screwed around with everything, displays the site home page from within the space when I go to an active offer. The master, sandbox version will not let em in. It displays "access denied." I am using the admin user (user 1).
Comment #5
btopro commentedDo these other sections have elms_content as well as some content in them? To see how spaces-frontpage is used, look in the profiles/elms/modules/elms_core_installers/elms_icms/elms_icms.pages.inc is the function that is apparently returning access denied in this case.
_elms_icms_root should be coming back with the root piece of content for the sandbox / version though if it's not there it can throw access denied.
Comment #6
jcicolani commentedOK. So I make sure there is content in the outline and now it's working. However, now I'm unable to create content. I'll create a new issue for tracking.
Comment #7
btopro commentedComment #8
btopro commentedrule of thumb with ICMS installation (it would appear), be careful when tweaking the Spaces configurations that elms_content doesn't get turned off or things can get goofy