[SEO] Vm2 subcategory must have an entry menu to show up

Started by lliseil, September 05, 2012, 21:51:03 PM

Previous topic - Next topic

lliseil

Vm2.0.10 / Joomla 2.5.6
Linux      2.6.32-220.13.1.el6.x86_64 #1 SMP Tue Apr 17 23:56:34 BST 2012 x86_64
MySQL      5.1.61 (utf8_general_ci)
PHP      5.3.3
Apache2 (apache2handler)

Got a quite strange URL rewritting behaviour. Strange in the sense that

  • URL rewritting works well out of the box, for all sub-categories...
  • except for the sub-sub-categories of just *one* sub-category
    - Clicking on this sub-category's sub-sub-categories, they won't show up with both Joomla SEF and Vm2 SEO: ON.
    - In place of them comes the whole shop plus all its products, quite frightening :o
    - Products direct URLs work just fine (by the search function)
    - Also, seems all works fine with Joomla SEF: ON // Vm2 SEO: OFF (url looks like this: http://www.guixmodel.net/aero-modelisme/avions/polyclub-epp/view/category/virtuemart_category_id/48.html )
  • the category at fault is at the same level and with just the same menu configuration than the working ones.
    Here's the menu configuration for all:
    Vm
    |__ Category (e.g. Avions)*
    |____ sub-category *
    |______ sub-sub-category (e.g.  Kit nu polyclub)

    * only categories and sub-categories are linked from the menu (not sub-sub-categories)

Since it works for all sub-categories but one, the issue shouldn't be caused by the way the link to the product page is generated \components\com_virtuemart\views\category\tmpl\default.php ([VM2.0.8c & J!2.5.6] ***BUG**** SEO enabled not working properly]
Also nothing related to capricornio's Topic: Enabling SEO leads to strange behaviour
Rebuilding the menu / menu entries changed nothing

So just a reminder than one has to create a menu entry to each of the Virtuemart2's sub-sub-categories to make them work as they should with SEO: ON.


EDIT : message's content simplified and links removed, title hopefully reflect the subject better
- A thread solved is a thread [SOLVED]! (a memo for myself)

jjk

You seem to have enabled 'Adds Suffix to URL' in Joomla configuration and I suppose you have deleted the 'Seo Suffix' in VM2 'Configuration' - 'SEO Settings'. If this is true, make it the other way round. Disable the suffix in Joomla and add the "-details" or "html" in VM2 SEO configuration. Since the product details page in VM2 is accessible via different urls, VM2 needs a suffix to determine that it is on a product details page. If VM2 SEO field is empty, the router can't work in certain cases.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

lliseil

thank you jjk for the advice.
Actually both joomla 'html' and Vm2 'detail' were activated as we didn't see them as conflicting up to now ('detail' being for the product detail page). Now it doesn't look as linked to this SEO issue, which happens on sub-categories.
And only for one of them (which is what we find to be rather strange).
And while it looked like a Joomla "Category" SEO Menu first (which happened for many Joomla 1.7 and 2.5 especially migrated from 1.5), it disappears when deactivating Vm2 SEO, AND when creating entries for the 4 sub-categories at fault.
- A thread solved is a thread [SOLVED]! (a memo for myself)