Integration with another Drupal Site

jlrobinson2171
Forums
I have a Drupal site that I have been slowly developing and stumbled upon Opigno and think it is something I could use. Is it possible to integrate the two? I know theming could be an issue as my other site uses a theme that isn't in the Opigno package. I would love to take the two sites and merge them into one. Right now I have Opigno installed on a subdomain with a different DB so the two sites have separate logins which would be a huge turn off for potential visitors. Also, have you considered integrating social media logins instead of using the regular Drupal registration and login function?
axel

Hi,

Hi, Concerning your first question, you have 2 possibilities: - only use your current Drupal website, and install separately Opigno module (not the full distribution) to add the elearning functionalities to your website - install Opigno LMS distribution, and link it with your website using Drupal SSO module, that works very nice Concerning your second question, about social media logins, this is a nice idea. It is not possible at the moment, but this may be added inside a next release of Opigno.
jlrobinson2171

I'll take a look at the

I'll take a look at the Drupal SSO module, might be the simplest of the solutions
axel

I think also it's the best

I think also it's the best solution, making possible to keep a clean Opigno distribution, and your website. Don't hesitate to post in this forum if you need help for SSO configuration.
jlrobinson2171

Do you know a good module for

Do you know a good module for SSO on Drupal?
axel

I advise you the CAS module,

I advise you the CAS module, that we used a lot of times and that is great: https://drupal.org/project/cas
jlrobinson2171

After some consideration, I

After some consideration, I have decided to build around Opigno instead of linking two different sites. So my question is now this: I will be adding content that isn't related to a course and would need to add a link to the neat side menu on the left. While playing around I added a new menu item to the menu but nothing shows up. So how does one go about adding another tile to the side menu? I looked through the Platon files and didn't see anything that jumped out on how to easily add another menu item. Is this even possible? Another option I was thinking about was creating another menu that would run horizontal in the header area but that isn't an active region in the theme. Any thoughts or suggestions would be appreciated.
wadmiraal

Hi.

Hi. The theme is pretty much hard-coded for the navigation, although pretty easy to extend. Currently our idea is that people extend the Platon theme by creating their own subtheme. We're also thinking of adding specific hooks for Platon, so that modules can register menu items themselves, but this is not really the "Drupal" way of doing things (as we would introduce logic in the presentation layer). Anyway, here's one way you could proceed (if you're not familiar with subthemes, [read this documentation page](https://drupal.org/node/225125)): Create a new theme folder, with a `.info` and a `template.php` files. Add `base theme = platon` to your file, and copy the `regions` declarations from platon.info. Then, in your `template.php` file, add a `hook_preprocess_page()` implementation. In `platon/template.php`, inside the `platon_preprocess_page()` function, you should see this line: `$vars['main_navigation'] = _platon_get_main_navigation();`. This is what defines the tile navigation. It consists of 2 functions: `_platon_get_main_navigation()` and `_platon_get_main_navigation_items()`. Just create your own implementation of both and override these calls in your `hook_preprocess_page()` function by setting the `$vars['main_navigation']` to your own updated version. This is currently the best way to customize the Platon navigation. **However**, this is not ideal. I opened a new ticket [here](https://drupal.org/node/2152737). Maybe you can provide your opinion there as well. Let's see how we can tackle this problem in an elegant way.
jlrobinson2171

Quite honestly, what you

Quite honestly, what you wrote is pretty much greek to me. If I spent some time on it I could probably figure it out and I may just do that. But here is what I did and it works, not ideal but it works. I installed the Nice Menus module, created a new menu, defined a new region in platon.info, copied one of the PHP functions and renamed some parts of it to match the new region, in template.php. Enabled the block and I then had a horizontal menu right above the Help region. I tried putting it in the header but it wasn't working right. Changing up the theme is definitely not a simple task. I played around a lot with it the other day and ended up just frustrating myself. It would definitely be nice to simplify things for people who want to extend the theme to suite their own needs. I'll definitely read up on sub-themes. Usually with Drupal I find a theme I like and just deal with it, I may make minor CSS tweaks here and there but for the most part I just use a defined theme. I do like the Platon theme but modifying it is a pain in the butt.
wadmiraal

I get that :-). Ok, I'm

I get that :-). Ok, I'm putting this on top of my todo list, as it does make a lot of sense to just tie this to a regular Drupal menu. By the end of the week, you'll be able to choose a Drupal menu to link the tiles to. The default will still display a hard-coded menu, but you could link it to Main Menu, User menu, etc. I will keep you posted.
wadmiraal

Fixed. This will be included

Fixed. This will be included in the new release we'll publish by the end of the day. Now, you'll be able to manage the Drupal Main Menu (or any menu you choose) to add/remove items in the left column.
jlrobinson2171

Just updated to 1.2 and it

Just updated to 1.2 and it now creates a box in the menu if you add a new menu item, now just need to figure out a simple way to add an image like the other boxes.
wadmiraal

That is also done through CSS

That is also done through CSS. It's too complex to add a custom interface to add images. The best way is to sub-theme (only adding some new CSS rules) or use a project like [CSS Injector](https://drupal.org/project/css_injector) or [Sweaver](https://drupal.org/project/sweaver). Example CSS for the home link: #main-navigation-item-home a { background-image: url(../img/main-navigation-home-icon-inactive.png); } #main-navigation-item-home a.active, #main-navigation-item-home a:hover { background-image: url(../img/main-navigation-home-icon-active.png); }
Shibbn

Menubar at Top

If I want to place the menu as a navigation bar on top of the page do is the simplest way to creating a new region? There is no region which is currently defined for that correct? Thanks
Shibbn

Or should I just paste the

Or should I just paste the menu in the header template and format the css? All in a subtheme of course.
James Aparicio

Hi Shibbn,

Hi Shibbn,

You are correct, currently there is no region on top of the left side bar and right side bar. 

It is pretty easy to create a region though.

 

Best regards