Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pages Module #211

Open
abhijeetviswa opened this issue Jun 11, 2020 · 1 comment
Open

Pages Module #211

abhijeetviswa opened this issue Jun 11, 2020 · 1 comment

Comments

@abhijeetviswa
Copy link
Member

abhijeetviswa commented Jun 11, 2020

The Pages module is useful since it's kind of like the label module but has a content as well i.e it has a Title, a description (viewable in the Course sections, along with the other modules) and content, that is viewable inside the module. The module itself is being used actively in
2019-2020 Sem II BITS F314 GAME THEORY AND ITS APPLICATIO L1, sometimes instead of a label, and sometimes to show pictures.

The idea behind the module is to make the description rich with content like images, videos, audio etc. If this module is added, we should add support for images at the minimum and add a direct link to the module on the website.

@abhijeetviswa
Copy link
Member Author

This is easier than I initially anticipated. Each Page module has a list of Contents. One of them will be an HTML file that describes the "Page". Any rich context is simply encoded using appropriate HTML tags like <img>. However, the src attrib for these tags are simply the file names, the expectation being, if all content files are downloaded and placed in the same folder, the HTML will render properly.

We can download all the content and save them to a folder for the page folder, inside the course's folder (requiring refactoring of FileManager) or maybe inside the course's folder itself (adding more clutter). A WebView can then be used to display the HTML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant