• 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: Anyone using rsform with Joomla 1.5 & SEF url's?

Re:Anyone using rsform with Joomla 1.5 & SEF url's? 16 years 7 months ago #4910

  • cvoogt
  • cvoogt's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
I'm using 1.5.7 and am having the same problem. I also want to note that the rsjoomla.com site itself has that problem on ALL its pages. The page I am on right now is www.rsjoomla.com/index.php/Reply-to/RSfo...To.html?replyto=1930 !!!!

So there's probably little hope of fixing this bug unless we do it ourselves. I did purchase RsForm and don't understand why a component would mess with URL rewriting when it has no SEF extension/plugin. Seems like bad practice to me.
I changed my menu type to URL and used this instead:

www.mysite.com/index.php?option=com_forme&fid=1

The menu item won't activate when clicked, but at least the URLs are OK now.
A better solution is to use htaccess like so:
RewriteCond %{REQUEST_URI} !^/index.php
RewriteRule ^travel-request-form ^index.php?option=com_forme&fid=2&Itemid=20   [NC,L]
RewriteRule ^contact-us ^index.php?option=com_forme&fid=1&Itemid=26   [NC,L]

Then I set my menu items as External Links (URLs) using \"travel-request-form\" where the Itemid in htaccess above is the Itemid of that menu item. This activates the menu button and makes a nice URL, AND eliminates that /index.php/ problem.<br><br>Post edited by: cvoogt, at: 2008/09/30 22:55
The administrator has disabled public write access.

Re:Anyone using rsform with Joomla 1.5 &amp; SEF url's? 16 years 6 months ago #5282

@cvoogt
thanks for the workaround. Works only for monolingual sites, though. I Tried RewriteRule for each language but no success.
The administrator has disabled public write access.

Re:Anyone using rsform with Joomla 1.5 &amp; SEF url's? 16 years 4 months ago #6015

  • cvoogt
  • cvoogt's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
Hi Thomas,
I have gotten this method to work multilingually, but it's tricky.
I use JoomFish 2 on Joomla 1.5.8, and it has a bug that won't allow translating URLs in External Links (menu items).

First fix that - see:
http://www.joomfish.net/forum/viewtopic.php?f=28&t=2388&p=11140&hilit=different+external+url#p11140

You can also get around that using Firefox's Firebug addon.

Now you can translate your menu item into any languages. So for example, I had an External Link type menu item that contained this:

\"contact-us\"
That is then a relative URL, but you could also enter the absolute URL, i.e. \"www.yoursite.com/contact-us\";. You may have to depending on your setup.

That was set to be the same as that menu item's alias, \"contact-us\", but it doesn't have to be I suppose. I just did that for consistency.

Then, translate that menu item and set the translated URL to what it should be, for example in Spanish:

\"contactenos\"
Again, you might have to enter an absolute URL here, i.e. \"www.yoursite.com/contactenos\";.

In your htaccess file this is the code to use:
RewriteCond %{REQUEST_URI} !^/index.php
RewriteRule ^contact-us ^index.php?option=com_forme&amp;fid=1&amp;Itemid=143&amp;lang=en   [NC,L]
RewriteRule ^contactenos ^index.php?option=com_forme&amp;fid=2&amp;Itemid=143&amp;lang=es   [NC,L]

The Itemid is the Itemid of the menu item, and I am using two separate forms for the two languages. That seemed easiest. I also added the language variable into the URL to en sure that the whole page translates, and not just the form.

Finally, the JoomFish language module doesn't work right on RsForm with this hack, so I added some logic to my template file to hide that module on RsForm only.

This is my template code for the language module:
  &lt;div id=\&quot;languages\&quot;&gt;
  &lt;?php if($this-&gt;countModules('languages') &amp;&amp; ($_REQUEST['option'] != 'com_forme')) : ?&gt;
	&lt;jdoc:include type=\&quot;modules\&quot; name=\&quot;languages\&quot; style=\&quot;xhtml\&quot; /&gt;
	&lt;?php endif; ?&gt;
  &lt;/div&gt;

I then added a link inside each form so people viewing the English from can click a link to take them to the Spanish form, and vice versa. That would become tedious if there are more languages involved, though.

It's not perfect but at least it works. Ideally RsForm itself would fix its SEF logic internally.
The administrator has disabled public write access.

Re:Anyone using rsform with Joomla 1.5 & SEF url's 16 years 1 month ago #6876

  • gavin_g
  • gavin_g's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Last Edit: 16 years 1 month ago by gavin_g. Reason: Please remove this message
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!