Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Page URL contains - OR Condition

Page URL contains - OR Condition

Hi Stephen,

How can I use an OR condition in Page URL check.

I want to check if Page URL contains - John OR Doe OR new

Will "is in list"  or  "regex" option help. Please advice.

Thanks

Tijj
Beginner Modder
ranks
useravatar
Offline
18 Posts
Administrator has disabled public posting

Re: Page URL contains - OR Condition

"in list" will allow you to enter the following as an "or" condition:

john,doe,new

"regex" will allow you to enter:

#john|doe|new#

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Re: Page URL contains - OR Condition

I just tried using the is in list and matches regex and couldn't get either to succeed.  I then test by just doing a single contains and it detects it and sets a cookie for me.

I am trying to detect multiple urls that would set the same cookie.  Ex: /residential?home=residential?resloc=iowapark     &    /residential?home=residential?resloc=burnet

I want to set a cookie if either of these pages are visited. 
I tried is in list:  resloc=iowapark,resloc=burnet  as well as is in list: iowapark,burnet
Didn't succeed.

I tried matches regex:  #iowapark|burnet#
Didn't succeed.

Any suggestions?

zesgar
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Page URL contains - OR Condition

Sorry.  Easy Answer.  You have to put the whole url in the is in list.

SOLVED

zesgar
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Page URL contains - OR Condition

regex #iowapark|burnet# should have worked too - surprised if it didn't. What did the debug output say?

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1683
Total Polls:
6
Total Posts:
5940
Posts this week:
11
User Info:
 
Total Users:
5142
Newest User:
zaki98040
Members Online:
0
Guests Online:
218

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked