Show a form within an article

09 Aug 2011 22:36 - 26 Feb 2012 12:17 #1 by Demis [Fox-Labs]
Show a form within an article was created by Demis [Fox-Labs]
To include a contact form into an article, you need a working Fox Contact module. Create and place it wherever you want, and test it is working.

Back to the module settings, and set its position to an non-existent value, for example "myposition". Choose a name that doesn't conflict with an existing template position. Don't click on "Select position" button: type in the position value instead of selecting it.

On the "Module Assignment" section at the bottom of the page, assign the module to "On all pages" value.

Edit the articles where you want the contact form to appear and insert the text {loadposition myposition} (including brackets) in the article at the place where you want the module.

Doing in this way, you can have even two or more different contact modules in the same page or the same contact module within different articles.


Note that this only works when the Joomla "Content - Load Modules" plugin is enabled. If this plugin is disabled, the text {loadposition myposition} shows unchanged in the article.

If it still doesn't work, deeply check the {loadposition myposition} string. Especially if you copy and paste the code from another article, it could be automatically changed in {loadposition myposition}. This code won't work, but you can't realize it until you check the source code of the article using "Toggle editor" button. To be sure, completely delete the {loadposition myposition} string and rewrite it from scratch.
The following user(s) said Thank You: Francesco, Anton

Please Log in or Create an account to join the conversation.