Hi all,
I’ve been busily adding items to a css menu using the “PHP Text Link With Query” Action, and all has worked well until I came across a slight problem with an entity encoded degree sign (°) which is made up of an ampersand followed by “deg;”. When it is used as part of a description that is passed to a mark-up item via the database all is well but if the ampersand is encountered as part of a url that is used to select an item from the database it is interpreted as %B0 so 90° (90 ampersand d e g semicolon) becomes 90%B0 (90 percentsign B 0) so it breaks the inerpretation in the link.
I have partially solved that problem using %26 instead of the ampersand in the links in the url. This works until you click on a “buy” link which takes you to the Mals-e.com site. Encoded in this link is a return link which is made up of the url of page the buy link was on plus the php used to select the products from the database which is made up “on the fly” by the server, returning you to page you came from. The problem is that the ampersand is getting changed to %B0 and is again breaking the return link. When you click on “Continue Shopping” to go back to the page you came from the page comes up but without any products on there.
It is one of those small problems that I need to solve, The degree sign shows up on all the product pages, but the url encoding problem has got me a bit stumped.
here’s a link to the development version of the site -
The menu to use is on the right hand side - click on HYDRAULIC ADAPTOTRS > Elbow Adaptors > 90° then select your item by clicking on the “Buy” link, then click on the “Continue Shopping” link to return you to the page you came from. The link back will work on all links except the one with the entity encoded ampersand.
The other thing I could do is not have the degree sign in any of the links but to substitute deg instead, but with the degree sign I think the site looks better and it takes up less space on headings.
This is the next part of the site, the first dynamic version is up and running, just type in the url in without anything after the .co.uk bit. Just shows what you can do with Freeway!
Thanks for the help again…
Steve.
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options