I would really like to try the new Beta 7b, but the website in now online.
1.
Well, encouraged by your explanation, I searched a little further and guess that you nailed the problem when using Joomla SEF.
I think that In "
components/com_flexicontent/helpers/route.php" the build link in the
getSearchRoute function should not have the view.
I changed it to this only:
Code:
$link = 'index.php?option=com_flexicontent';
And things seem to be working okay without sh404SEF.
Using Joomla SEF only, the menu item is the only thing that appears (pesquisa or search).
Using sh404SEF, I thought that both URLs were still using "
search" in both languages, but actually this is not the case as sh404SEF was actually giving this result from its cache. So, with the previous code "
$link = 'index.php?option=com_flexicontent&view=search", the action of the form becomes "/
search/" (when it should be "/
pesquisa/") in the default Portuguese language and just "/
en/" (when it should be "/
en/search/" in English.
Regarding the first problem (not being translated to Portuguese) I found that you are actually not using the menu item at all, but rather forcing the URL to be "
search" in "
./components/com_flexicontent/sef_ext/com_flexicontent.php", where it reads "
$title [] = $sh_LANG[$shLangIso] . '/';". I guess this is not very nice because there is the need to configure additionally the translations in this file "
./components/com_flexicontent/sef_ext/lang/com_flexicontent.php" and, even worse, to worry about having the exact same name given to the search string and to the menu item, in order to have everything set correctly.
Nevertheless:
#1 is there a reason to put the slash in the end of $title [] = $sh_LANG[$shLangIso] ?
#2 couldn't the translations be just like another Joomla language override ?
#3 here are the pt-PT strings:
Code:
// portuguese
$sh_LANG ['pt'] ['_SH404SEF_FLEXICONTENT_FAVOURITES'] = 'Os meus favoritos';
$sh_LANG ['pt'] ['_SH404SEF_FLEXICONTENT_SEARCH'] = 'Pesquisa';
$sh_LANG ['pt'] ['_SH404SEF_FLEXICONTENT_TAGS'] = 'Etiquetas';
$sh_LANG ['pt'] ['_SH404SEF_FLEXICONTENT'] = 'Directoria';
$sh_LANG ['pt'] ['_SH404SEF_FLEXICONTENT_EDIT'] = 'Editar';
$sh_LANG ['pt'] ['_SH404SEF_FLEXICONTENT_ADD'] = 'Adicionar';
$sh_LANG ['pt'] ['_SH404SEF_FLEXICONTENT_DOWNLOAD'] = 'Descarregar';
$sh_LANG ['pt'] ['_SH404SEF_FLEXICONTENT_WEBLINK'] = 'Ligação';
Regarding the English language and the form action being only "
/en/", I don't know what is happening.
Using the code that works with Joomla "
$link = 'index.php?option=com_flexicontent" (without the view), sh404SEF now considers this link to be from
com_search, which is very odd.
The issue was opened here:
.
github.com/FLEXIcontent/flexicontent-cck/issues/210
2.
Yes, already tested and it isn't working.
Should I open an issue?
3.
github.com/FLEXIcontent/flexicontent-cck/issues/209
I'm afraid I don't have permissions to label it as a enhancement, though.