OwenJames
Active member
Hi
I have the following set as one of my media sites (a cycling GPS website).
Match URLS;
ridewithgps.com/routes/{$id}
http://ridewithgps.com/routes/{$id}
ridewithgps.com/trips/{$id}
http://ridewithgps.com/trips/{$id}
Embed Html;
<iframe frameborder="0" width="900" height="600" allowtransparency='true' scrolling='no' src="http://www.ridewithgps.com/routes/{$id}"></iframe>
Now, in the Embed html, the URL is fixed to http://www.ridewithgps.com/routes/{$id}
If a user inputs a URL including 'trips', instead of 'routes', it just gets parsed as routes, embedding the wrong page.
Is there a way to put a wildcard in the Embed URL, so the link could be either;
<iframe frameborder="0" width="900" height="600" allowtransparency='true' scrolling='no' src="http://www.ridewithgps.com/routes/{$id}"></iframe>
or
<iframe frameborder="0" width="900" height="600" allowtransparency='true' scrolling='no' src="http://www.ridewithgps.com/trips/{$id}"></iframe>
Something like;
<iframe frameborder="0" width="900" height="600" allowtransparency='true' scrolling='no' src="http://www.ridewithgps.com/*/{$id}"></iframe>
Any ideas?
Thanks
I have the following set as one of my media sites (a cycling GPS website).
Match URLS;
ridewithgps.com/routes/{$id}
http://ridewithgps.com/routes/{$id}
ridewithgps.com/trips/{$id}
http://ridewithgps.com/trips/{$id}
Embed Html;
<iframe frameborder="0" width="900" height="600" allowtransparency='true' scrolling='no' src="http://www.ridewithgps.com/routes/{$id}"></iframe>
Now, in the Embed html, the URL is fixed to http://www.ridewithgps.com/routes/{$id}
If a user inputs a URL including 'trips', instead of 'routes', it just gets parsed as routes, embedding the wrong page.
Is there a way to put a wildcard in the Embed URL, so the link could be either;
<iframe frameborder="0" width="900" height="600" allowtransparency='true' scrolling='no' src="http://www.ridewithgps.com/routes/{$id}"></iframe>
or
<iframe frameborder="0" width="900" height="600" allowtransparency='true' scrolling='no' src="http://www.ridewithgps.com/trips/{$id}"></iframe>
Something like;
<iframe frameborder="0" width="900" height="600" allowtransparency='true' scrolling='no' src="http://www.ridewithgps.com/*/{$id}"></iframe>
Any ideas?
Thanks