Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Another sitemap module needs Joomsef Urls
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1
  • 2

TOPIC: Another sitemap module needs Joomsef Urls

Another sitemap module needs Joomsef Urls 12 years, 5 months ago #31900

  • Mbit
  • OFFLINE
  • Posts: 35
Hello, i am working on a custom sitemap module (exports urls, product image, product name, short descr etc...) Everything is working fine except the url. Right now i use the default joomla url, so in my module looks like:
 
$product_url= "<![CDATA[" .URL."index.php?option=com_virtuemart&category_id=".$category_id."&flypage=vmj_genx.tpl&lang=el&manufacturer_id=".$manufacturer_id."&page=shop.product_details&product_id=".$product_id."&Itemid=53"."]]>";
 
what i want is to export the Joomsef urls instead of the default joomla ones. Whats the query i should replace it with? i was looking in the db and jos_sefurls seems to have translated the originalurls to something like 696e6465782e7068703f6f7074696f6e3d636f6d5f63636e6577736c6574746572266c616e673d656e26766965773d63636e2e2e2e that makes hard for me to create a query and search for it.

Re: Another sitemap module needs Joomsef Urls 12 years, 5 months ago #31924

  • dajo
  • OFFLINE
  • Posts: 5069
Hello,

You can use Joomla's function JRoute::_() to convert non-SEF URL to SEF automatically:
$product_url = "<![CDATA[" . JRoute::_("index.php?option=com_virtuemart&category_id=".$category_id."&flypage=vmj_genx.tpl&lang=el&manufacturer_id=".$manufacturer_id."&page=shop.product_details&product_id=".$product_id."&Itemid=53") . "]]>";


Just use the non-SEF URL without domain as a parameter to the function.
ARTIO Support Team

Re: Another sitemap module needs Joomsef Urls 12 years, 5 months ago #31932

  • Mbit
  • OFFLINE
  • Posts: 35
Tried that, but the output instead of
 
<![CDATA[
http://localhost/demo/index.php?option=com_virtuemart&category_id=38&flypage=vmj_genx.tpl&lang=el&manufacturer_id=9&page=shop.product_details&product_id=1063&Itemid=53
]]>

turns to
 
<![CDATA[
/demo/components/com_mycustomcomponent/index.php?option=com_virtuemart&amp;category_id=38&amp;flypage=vmj_genx.tpl&amp;lang=el&amp;manufacturer_id=9&amp;page=shop.product_details&amp;product_id=1063&amp;Itemid=53
]]>
i want the url to be as i have save it in artiosef.

Re: Another sitemap module needs Joomsef Urls 12 years, 5 months ago #31934

  • Mbit
  • OFFLINE
  • Posts: 35
I need this because the component exports feed data for price comparison sites. when site index my urls(not sef) they add ?ref=sitename and so when a user clicks there and visits my page, artio generated new url cause of rel added inside url and not at the end.

Re: Another sitemap module needs Joomsef Urls 12 years, 4 months ago #31956

  • Mbit
  • OFFLINE
  • Posts: 35
No answer? Any idea how to export url as its saved in joomsef and not as generated from joomla?

Re: Another sitemap module needs Joomsef Urls 12 years, 4 months ago #31969

  • dajo
  • OFFLINE
  • Posts: 5069
If you display the URL without JRoute::_() function, just with:
$product_url = "<![CDATA[" . "index.php?option=com_virtuemart&category_id=".$category_id."&flypage=vmj_genx.tpl&lang=el&manufacturer_id=".$manufacturer_id."&page=shop.product_details&product_id=".$product_id."&Itemid=53" . "]]>";

Does it look the same as the non-SEF URL stored in JoomSEF? If JoomSEF is enabled, it's called by the JRoute::_() function, so it should work.
ARTIO Support Team
  • Page:
  • 1
  • 2
User Login Empty