Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 4 Hours, 42 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

How to use the URL module assignment feature
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: How to use the URL module assignment feature
#7543
How to use the URL module assignment feature 1 Year, 11 Months ago  
Can you give me an example of how you would assign a module to the following URL with the advanced module manager?

index.php?option=com_virtuemart&category_id=&product_id=&func=&page=shop.compare


Right now when I put that in it shows the module on all the pages with index.php?option=com_virtuemart

I think it is because I am not writing the url with RegEx syntax.

Can you show me how the URL would look with proper RegEx syntax for typing the URL in the advanced module manager so it only puts the module on the url with all the variables in the url.

Thanks for your great extensions.

Dave
Dave K
Posts: 10
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7545
Re: How to use the URL module assignment feature 1 Year, 11 Months ago  
Indeed, the input should be regular expression.
You can use this to test your syntax:
gskinner.com/RegExr/

To match that exact url, just place slashes before the special characters:
index\.php\?option=com_virtuemart\&category_id=\&product_id=\&func=\&page=shop\.compare


Put you could also only match parts of the string, like:
option=com_virtuemart.*page=shop\.compare

That will match any urls with option=com_virtuemart and page=shop.compare
Peter van Westen
Admin
Posts: 9169
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7546
Re: How to use the URL module assignment feature 1 Year, 11 Months ago  
good to know!!
it would solve my problems if I only could use the parts matching function
I actually succeed in showing the module for the main url
index.php?option=com_joomleague&view=results&p=1&Itemid=198

but not for the related ones

index.php?option=com_joomleague&p=1&view=results&r=24
index.php?option=com_joomleague&p=1&view=results&r=1

I've tried a number of combinations, the module should display for every url above, but no go
Would you give me a hint?
thanks in advance
teddy
Posts: 27
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7556
Re: How to use the URL module assignment feature 1 Year, 11 Months ago  
So what is the common part?
You want to show it on all pages with option=com_joomleague and view=results ???
option=com_joomleague.*view=results
Peter van Westen
Admin
Posts: 9169
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7576
Re: How to use the URL module assignment feature 1 Year, 11 Months ago  
Thanks for your quick reply, Peter.

However I am still having some trouble getting a module to only show up on one URL.
I entered the following URL:

index\.php\?option=com_virtuemart\&category_id=\&product_id=\&func=\&page=shop\.compare

However, I am having the module still show up on the following URL:

index.php?option=com_virtuemart&category_id=2&product_id=&func=&page=shop.browse


Is there something I am doing wrong still in the first URL with the RegEx slashes?

I just want the module to show on the one URL and for some reason it is showing up still on this other one.

Any suggestions would be greatly appreciated.

Thanks,
Dave
Dave K
Posts: 10
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7579
Re: How to use the URL module assignment feature 1 Year, 11 Months ago  
Don't know why that is happening. Could you give me admin access?
Peter van Westen
Admin
Posts: 9169
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7580
Re: How to use the URL module assignment feature 1 Year, 11 Months ago  
Hi Peter, the common part is this one

&view=results&p=1
&p=1&view=results

This url
option=com_joomleague.*view=results
leaves out the
&p=1

sadly I don't know the operator to allow &p=1 being after or before within the url...
teddy
Posts: 27
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7581
Re: How to use the URL module assignment feature 1 Year, 11 Months ago  
Try this:
(&view=results&p=1|&p=1&view=results)


The (...|...) means any of the given matches.
The & character doens't need to be escaped (doesn't matter if you do).
Peter van Westen
Admin
Posts: 9169
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7583
Re: How to use the URL module assignment feature 1 Year, 11 Months ago  
great!! thanks!!! thanks a ton!!!
teddy
Posts: 27
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7589
Re: How to use the URL module assignment feature 1 Year, 11 Months ago  
Got it working!

Thanks Peter for your help and your Great Extensions.


I am going to send a donation because you definitely deserve it and more.


Dave K
Wildfire Business Solutions
Dave K
Posts: 10
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7591
Re: How to use the URL module assignment feature 1 Year, 11 Months ago  
Great
Peter van Westen
Admin
Posts: 9169
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7833
Re: How to use the URL module assignment feature 1 Year, 11 Months ago  
sorry to bother you again, but the code you kindly gave me
(&view=results&p=1|&p=1&view=results)

works very well for every occurrence like
&view=results&p=3
&p=3&view=results
or
&view=results&p=6
&p=6&view=results

but when something like
&view=results&p=10
&p=10&view=results

it gets matched by this
(&view=results&p=1|&p=1&view=results)

Is there a way to limit the number to the first digit?
teddy
Posts: 27
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7841
Re: How to use the URL module assignment feature 1 Year, 11 Months ago  
(&view=results&p=1[^0-9]|&p=1&view=results)
Peter van Westen
Admin
Posts: 9169
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
Go to topPage: 1
Moderators: Peter van Westen
MaxCDN | Content Delivery Network | Accelerate your site to the max
Open Source Training | Online Joomla! Training and Support
hosting joomla