Site name

Dropbox: Get 2GB Online Storage for free
Welcome, Guest
Username: Password: Remember me

TOPIC: Show a form within an article

Show a form within an article 09 Aug 2011 21:36 #1403

  • Fox
  • Fox's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2560
  • Thank you received: 315
  • Karma: 2739
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.

Troubleshooting

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: ceskobassman