Dec 12, 2011 at 2:52 AM
Edited Dec 12, 2011 at 3:25 AM
I am sooo close! Can you point me in a direction with this? Is it all about the IRouteProvider to "post results to a custom controller" ?
Pretty sure, IRouteProvider hates me... Like on a personal level... Once I get to this custom controller, how do I get back again..
Let me backup, perhaps I am making this difficult.
My widget currently is dropable in Orchard, go that far.
My widget current takes a little data in the Admin side, and uses that then in the Driver to get a good ......Part.. This data uses EF4 to pull data from a non Orchard DB... Works like a charm...
Last and final hurdle. I don't have a clue how I am going to get a "good default ZipCode in the first place... like.. Was hoping something about
protected override DriverResult(SeminarPart part, string displayType, dynamic shapeHelper) -> would give me access to the "httpcontext?" that I might grab the IpAddress
of my visitor and try to do some type of GeoIpLookup... Anyway, lets assume we overcome this..
I have rendered 100 seminars to screen, yea!!!, all is good, Orchard is good.
Now.. the hangup... User changes/adds their ZipCode and hits "update"... I just need (something), perhaps the current ContentPartModel to take the new zipCode, and change
the resulting list....
I cannot be the first to come across this challenge, and am sucking hardcore to make friends with IRouteProvider.... What would you do / advise?
Thanks tons, -James