Powerpoint Presentations to Slides

Xtrobe
Forums
Hi, I came across a request to embed Powerpoint presentations to be included as part of a slide. In researching for this solution, I came across this module: https://drupal.org/project/gdoc_field. This was pretty much what I was looking for, however, I can't seem to make this work. When I add an attachment to the slide, the slide does not show up in the lesson. The CCK needs to be removed, just so the slide could be made visible. Is there a note regarding attachments for the slides? I believe it bears a similar problem with a video upload embedded onto a slide. Thanks!
Profile picture for user James Aparicio
James Aparicio

Hi Xtrobe,

Hi Xtrobe, What do you mean by "The cck needs to be removed, just so the slide could be made visible"? Have you enabled the field display under structure content type slide manage display teaser? Best regards
Xtrobe

Hi James,

Hi James, Yes. I made the adjustments already. if this CCK field is enabled, and when you upload a file using the field, the slide is not registered under the "Manage Questions" section. If I create a slide without the cck field, it shows up within the "manage questions" section.
Profile picture for user James Aparicio
James Aparicio

Hi Xtrobe,

Hi Xtrobe, Indeed, when adding a file field to a question in does not get set to the Questions in the lessons, but to Questions to add, just select it from Questions to add while we fix it. Best regards
Profile picture for user James Aparicio
James Aparicio

https://drupal.org/node

https://drupal.org/node/2188439

PDF

I've been trying to get a PDF to work in my Opigno too. I've tried to get it to work with sever different modules and every single one of them the PDF comes up blue. What am I doing wrong.
wadmiraal

Hi Mahatma.

Hi Mahatma. Opigno ships with multi-lingual capabilities enabled by default, and **many** Drupal modules don't work well with a Locale enabled Drupal platform (many developers never test their modules on multilingual sites). What you describe is a typical case where your File field is stored with a language key (like `en`) instead of `LANGUAGE_NONE` (or `und`). The module then tries to access the field value, but expects a `LANGUAGE_NONE` key. Because he doesn't find it, he returns a blank page. Because the actual site background color is blue, that's what you see with your blue square. Opigno 1.5 shipped with a fix for this issue, by making Drupal behave as these modules expect (it's the wrong way to do it, but what can you do). We just saw that it didn't fix all cases, so Opigno 1.8 will contain a better fix for it. However, it's best to file an issue with the module maintainers, and asking if the module supports fields with language keys (which they should).

Thanks!

I really appreciate the development of this project. As soon as the PDF works I think it will be able to do just about anything.
sharath92

No preview available

Hi, I am trying to display powerpoint presentation in a slide, when I used Embedded Google viewer module and followed all the guidelines of this thread it shows "No Preview avaialble" when I navigate to the slide. Am I missing something here? Or has opigno developed something that would display PPT files in a slide? A response/ solution would be much appreciated. Thanks, Sharath
Profile picture for user James Aparicio
James Aparicio

Hi sharath92,

Hi sharath92,

Please make sure that you installed the Embedded Google viewer correctly.

You probably have an issue with the 2d point.

Requirements

1-The Embedded Google Docs Viewer is a custom formatter for the Core "Field" module - therefore the "Field" module must be enabled.

2-Any files to be formatted/rendered by this module must be accessible on the open web - Google needs to be able to access them in order for Google Docs to be able to format them - so your Drupal system must not be behind a firewall, must be reachable by normal web users, and your system must store the files as "public:".

 

kapilro

Wanted to upload ppt as slide

Hey xtrobe were you able to find a solution for this. I also want to be able to upload ppt files as questions and have the ability to render them. Could anyone guide me here please on how to achieve this ? James could you provide some inputs pls.
Profile picture for user James Aparicio
James Aparicio

There are 2 options.

There are 2 options.

Using the Google Docs Viewer  or Microsoft Office Web Viewer. Both of the options envolves embeding the repective (Google,Microsoft) document web viewer. Because of this it is required that the files are public available (Google or Microsoft need to be able to access the file).

You can take a look at these modules:

https://www.drupal.org/project/pdf_reader

https://www.drupal.org/project/gdoc_field

Once you added the module, Its as simple as going to structure -> content type -> slide -> manage fields. Then you can add a file field.

Once the file field is created you can go to structure -> content type -> slide -> manage display.  Both module implement a file field formatter. For the default and  question display mode change the new field formatter to the one the module implements and configure the settings.  

 

Best regards

kapilro

Unable to get it working with Google docs viewer

Hi James, I tried using gdoc_field. Enabled the module and have added ppt,pptx as allowed file extensions for the PDF cck field under slide content type. Also changed the Manage display of this field to "Embedded Google docs viewer". Now when i add a new lesson and choose slide as a question i uploaded the pptx file. But during render or when i click on Start Lesson, the ppt does not get displayed. Am i doing anything wrong here? If yes can you pls guide me James... Also you said that Google needs to access the files so what path do we need to assign so that they are accessible ? So if i don't plan to have my ppt over the web, will this Google docs module work for me or not ? If not is there any other solution to this ? Regards.
Profile picture for user James Aparicio
James Aparicio

Hi kapilro,

Hi kapilro,

Can you see it when you go directly to the node page? /node/xx 

Best regards

kapilro

No Preview Available on visiting node page

Hi James, I see a "No Preview Available" when i visit the node page. Am i missing something? Regards
Profile picture for user James Aparicio
James Aparicio

Hi kapilro,

Hi kapilro,

And your platform is local on your pc? If you get that message it is because google could not access the file.

Best regards

kapilro

Yes James that was my concern

Yes James that was my concern that the files are on my local. Is there any workaround for this where-in the ppt files stay on local and still get rendered ? Any other module perhaps or a different solution. Any help would be appreciated. Thanks !
Profile picture for user James Aparicio
James Aparicio

Hi kapilro,

Hi kapilro,

Another solution would be to use the viewerjs library. https://www.drupal.org/project/viewerjs

That would require you to convert the ppt files to the odp format.

Best regards

kapilro

Hi James,

Hi James, Thanks for pointing out the viewerjs module. Tried using the same and uploaded a odp file but it does not get rendered when we start a lesson. If we directly view the node then it shows options for "Download" and "Preview". On Preview it displays the odp correctly. But does not render when we start a particular lesson. Just goes blank. Also changed the Manage display of this field to "ViewerJS". Thanks for your help till now :)
Profile picture for user James Aparicio
James Aparicio

Hi kapilro,

Hi kapilro,

To make it display the file directly instead of showing the download/preview, in the display settings -> preview settings you need to select preview type -> Auto Preview.

Regarding not showing up in the lesson itself, when you go to the display settings you go to the default tab (default display mode). You should select the same thing for the display mode "question". You may need to finish the lesson and start again to see the changes when taking a lesson.

BR