• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: {rsform} in content renders a html page

{rsform} in content renders a html page 10 years 7 months ago #28799

  • emiel
  • emiel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hi,

I'm using {rsform x} in a custom_html module to display a form inside a module.

It seems to be working perfectly, however, when I look at the HTML output I see it renders a full html page on the place where it should just only load the form.

So it adds:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body>
[google-analytics-tag-added-by-another-plugin]
[html-of-the-form]
</body></html>

Now the problem is as follows: we are using a plugin to place the Google Analytics tag in the html, and now it is added twice. We cannot just place the GA code in the template, because it is a multisite environment with over 60 websites.

So how can we make the plugin only rendering the form?

Kind regards,

Emiel
The administrator has disabled public write access.

{rsform} in content renders a html page 10 years 7 months ago #28800

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Can you provide a link to the page you are referring to ?
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

{rsform} in content renders a html page 10 years 7 months ago #28801

  • emiel
  • emiel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
The administrator has disabled public write access.

{rsform} in content renders a html page 10 years 7 months ago #28802

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
I presume that this is a custom HTML module that uses an WYISWYG editor. Please use mod_rsform instead to publish the form within a module position.

More on it here:
http://www.rsjoomla.com/support/documentation/view-article/145-modrsform-display-the-form-in-a-module-position.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

{rsform} in content renders a html page 10 years 7 months ago #28803

  • emiel
  • emiel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Thank you Alex for your quick suggestion.

In our situation we have on all 60 sites 1 single promotion form. That promotion form can be used in several formats, like the sidebar (where it has additional html around it and a specific title). We want to keep the flexibility to have the form appear in different formats, without ending up creating multiple copies of the same form. So we cannot use the mod_rsform module, because it doesn't allow us to add html before/after the form.

Currently it works perfect except from the double GA tag. We can just quickly add modules, assign those to menu-items, add the extra html and use the same form everywhere. And with the one form per site we can report of totals with just an easy sql query.

Adding to that we are now starting with A/B testing, where we have two forms on the main website. With a php script inside a php module we can either load form A or B. For this the {rsform x} is perfect, and already tested to work.

So would it be possible to have the output of {rsform} be just the form instead of a full html page?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!