Friday, June 23, 2017

How do you put a module SmautoGrid inside an article?

You will usually want to associate modules with articles in some way. The modules are allocated to module positions and the module positions appear somewhere on the Web page as determined by the template. However, it is sometimes useful to have a module actually embedded within the article. To insert a module inside an article, you publish the module to a position and load that position in the article as follows: 

  1. Create a module and set its position to smautogridinside. smautogridinside can be any value that doesn't conflict with an existing template position. Type in the position smautogridinside and press enter instead of selecting it from the drop-down list.
  2. Assign the module to All the Menu Items. This will make sure that it always appears, no matter how the visitor got to the article. The module will not show unless you put the command to load the module in an article. Edit the articles where you want this module to appear and insert the text
{loaposition smautogridinside}

inside in the article at the place where you want the module. To explain insert loadposition here below (SmautoGrid copy assigned to smautogridinside, width=100%, height=720)

Smautogrid image slider inside

*Note that this only works when the Content - Load Module plugin is enabled. If this plugin is disabled, the text loadposition smautogridinside shows unchanged in the article.