Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Question about url exclude on K2
(1 viewing) (1) Guest
If you want to ask question about the product features, licensing conditions or other questions prior to purchase, please, do it here.
  • Page:
  • 1

TOPIC: Question about url exclude on K2

Question about url exclude on K2 12 years, 1 month ago #34290

Hi !
I want to buy your Joomsef component but i've one question before.
I use Joomla 1.5.22 & K2 v2.4.1.
I would like exclude a menu url which uses K2 categories (with a special script into it). Each days, this menu shows the items of the day, so it changes each day. If i use a url rewriting for this menu it doesn't work. I hope you understand my request.
Is it possible ?
Cheers !
Last Edit: 12 years, 1 month ago by Le Petit Agenda.
The topic has been locked.

Re: Question about url exclude on K2 12 years, 1 month ago #34297

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,
You can disable SEF either for whole K2 component by setting the Handling option to Don't SEF. Or you can disable SEF for specific URLs using a regular expression by setting the "Don't SEF URLs matching regular expression" option.
You can find these options in K2 component parameters on JoomSEF's Manage Extensions page.
ARTIO Support Team
The topic has been locked.

Re: Question about url exclude on K2 12 years, 1 month ago #34299

I don't understand how disable SEF for specific URLs using a regular expression by setting the "Don't SEF URLs matching regular expression" option.
I need to add on the field the url of the menu ? The url is 66.lepetitagenda.com/aujourdhui. If i add this url on the field, i've a 404 error page.

EDIT = i just update K2 & now i've this error :
Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /homez.22/lepetiag/www/66/components/com_sef/joomsef.php on line 174

Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /homez.22/lepetiag/www/66/components/com_sef/joomsef.php on line 174
Last Edit: 12 years, 1 month ago by Le Petit Agenda.
The topic has been locked.

Re: Question about url exclude on K2 12 years, 1 month ago #34310

Just to say you, i update joomsef with the v.3.9 & it seems to work. i'll see tomorrow if the links will works again.
The topic has been locked.

Re: Question about url exclude on K2 12 years, 1 month ago #34330

  • dajo
  • OFFLINE
  • Posts: 5069
The "Don't SEF URLs matching regular expression" option works by matching the original non-SEF URL with a regular expression entered.
So first you need to find out the original non-SEF URL you want to exclude from being SEF - the simplest way is to disable SEF in Joomla temporarily.
Then you need to build the regular expression that will match the variables in URLs you don't want to be SEF. It depends on how your URLs look like. If you post some examples of non-SEF URLs you don't want to SEF, I can help you with the regular expression.

The error is caused by the URL you put in the "Don't SEF URLs matching regular expression" field. There can't be any slash present (as it's supposed to match the original non-SEF URL variables, not the SEF URL itself).
ARTIO Support Team
The topic has been locked.

Re: Question about url exclude on K2 12 years, 1 month ago #34334

Well after my update with your last version of joomsef, it works. Thx a lot for your help.
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný