Module based on code of https://github.com/OXIDCookbook
Test if there is a README.md or README_#LANGABBR#.mb in the module folder. If yes, the system display the Markdown file in the modules section as new tab. This module also display images if present in the markdown file.
Module was created for Oxid 6.1/6.2
-
Copy files into following directory
source/modules/rs/markdown
-
Add to composer.json at shop root
"autoload": { "psr-4": { "rs\\markdown\\": "./source/modules/rs/markdown" } },
-
Install dependencies
composer require michelf/php-markdown
-
Refresh autoloader files with composer.
composer dump-autoload
-
Enable module in the oxid admin area, Extensions => Modules
-
Clear the language cache
-
Open the teminal in you oxid root directory (the "source" folder is a subfolder there and a "composer.json" shoud be there)
-
Execute following command within the terminal
composer config repositories.rs/markdown git https://github.com/ThomasJanda/oxid-markdown/ composer require rs/markdown:dev-master --update-no-dev --ignore-platform-reqs
-
The installation script will now ask some question if you like to override existing files. Type always "n" for "No" and hit enter for confirmation.
-
Open the shop admin and enable module in the oxid admin area, Extensions => Modules
-
Clear the language cache
Filename: README.md