Contains all the code examples used in the technical documentation.
This repository contains all the tutorial examples used in the Smartstore developer documentation. They can be included using the .sln solution file.
- Copy this repository into the same directory as your Smartstore repository.
- Run
create-symlinks.bat
.- Run
create-theme-symlinks.bat
, if you want to install a theme.
- Run
- Open Visual Studio, click Open a project or solution and select
Smartstore.CodeExamples-sym.sln
solution file.
Place this repository in the same directory as your Smartstore repository, otherwise creating the symlinks will fail.
Example:
- Smartstore repository: /home/www/Smartstore/
- Place in /home/www/
Folder | Description |
---|---|
[root] | Solution file and symlinks |
/src | All module examples can be found here. |
Since the modules and the solution must exist in both the sample repository and the Smartstore repository, it is necessary to connect them using symlinks.
- The modules are each linked to /Smartstore/src/Smartstore.Modules/.
- The solution file is linked to /Smartstore/Smartstore.CodeExamples-sym.sln.
Running sysmlinks.bat
will automatically create all the symlinks. If you want to add a module to this repository just add it to the list of modules in the symlinks.bat and run it again. Existing symlinks will not be touched, only new ones are added. If the location of a module changes you must delete the existing symlink in the Smartstore repository before running the .bat
file again.
This project structure is also well suited for developing your own modules.
Start your journey here and build your first Smartstore module.
→ Source code for Hello World
→ Developer documentation for Building a simple "Hello World" module
Add a tab to the product editing page in the backend.
→ Source code for Tabs Tutorial
→ Developer documentation for Adding tabs
Create a widget, that displays custom content in the frontend.
→ Source code for Widget Tutorial
→ Developer documentation for Creating a Widget provider
Access the menu bar in the backend and add a menu item and a submenu.
→ Source code for Menu Tutorial
→ Developer documentation for Adding menu items
Create your own PageBuilder-Block to display in stories.
→ Source code for Block Tutorial
→ Developer documentation for Creating a Block
Tweak the Story view modes, to provide a better user experience and render a widget.
→ Source code for Block Tutorial Advanced
→ Developer documentation for Creating a Block
Provide a configurable export for products, store information, etc.
→ Source code for Export Tutorial
→ Developer documentation for Creating an Export provider
Create a small messaging system, using your own database table.
→ Source code for Domain Tutorial
→ Developer documentation for Creating a Domain entity
A blueprint of a theme module.
→ Source code for Basic theme
→ Developer documentation for Theme modules