Motivation

Not everyone using the Learn distribution will want to use the same set of lessons, but as the distribution is set up now you will always import a standard set of lessons.

Proposed resolution

Have an option during the installation process where you select whether you want to set up a standard set of Drupal lessons or not.

Remaining tasks

  • DONE Find the modules that are relevant for importing lesson content. (Answer: learn_lesson_content. See comment #2)
  • Do not make learn_lesson_content required. Remove this line from learn.info: dependencies[] = learn_lesson_content
  • Add an extra screen in the installation process, where you select whether you want to import the lessons or not. (This goes in learn.install)
  • (Maybe) Repackage Lesson Content as an app or a collection of apps following the apps specification.
  • (Maybe) Serve lesson(s) app(s) from an app server on learndrupal.org.

Comments

dgoutam’s picture

Can we think of lessons as an app (app module) so that user could install it post installation just like demo content or so.

bryanhirsch’s picture

@dgoutam @Itangalo, Making content optional on install--with a checkbox or prompt of some sort during installation--and/or re-packaging this functionality as an app sounds great. It shouldn't be much work to do either. All the content that ships with Learn Drupal by default lives in a feature module called learn_lesson_content. That is profiles/learn/features/learn_lesson_content.

I'll update the task list to give clearer guidance on what would need to be included for a patch.

BrockBoland’s picture

Project: Learn » Drupal Ladder
Component: Lessons » Code
BrockBoland’s picture

Issue summary: View changes

Updated issue summary.