
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] TIPS AND TRICKS: Tree example
Quoting Daragh Mulvey (daragh@online.ie):
> I've just implemented the Tree example on a store
> I'm currently working on. It's working fine from
> a tree point of view, but when I click on one
> of the sub categories, I typically get back
>
> Sorry, no matches for (?:^|\ )Hardware\b AND \b\:Nails\b
>
> (This is using the default Hardware foundation store)
>
> I noticed that the URL of the subcategories features
> *way* too many spaces (%20) in the URL as follows:
>
> http://devlserver/shop/donal7/scan/fi=products/st=db/bs=1/tf=comb_category/s
> f=comb_category/se=Tool%20Storage%20%20%20%20%20%20%20%20%20%20%20%20%20%20%
> 20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2
> 0%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
> %20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%
> 20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2
> 0%3aTool%20Belts.html
>
> If I remove all the excess %20 from the url above it works fine
> - but I can't get the system to produce the URL as it should be
>
> http://interchange/shop/donal7/scan/fi=products/st=db/bs=1/tf=comb_category/
> sf=comb_category/se=Tool%20Storage%20Tool%20Belts.html
>
> which (I think) is
>
> http://interchange/shop/donal7/scan/fi=products/st=db/bs=1/tf=comb_category/
> sf=comb_category/se=Tool%20Storage%20Tool%20Belts.html
>
> This URL works.... can you help?
I bet you are using Postgres, Oracle, or some other DB which pads the
char() data type. Try changing all field types in tree to varchar()
and see what happens; or you can add "Database tree ChopBlanks 1"
to your database config.
--
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH 45013
phone +1.513.523.7621 <mheins@redhat.com>
Software axiom: Lack of speed kills.
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users