drafts URL rewrite

Login or register to post comments
3 replies [Last post]
Offline
Joined: 06/25/2009

The form drafts have this under the edit option
http://domina.com/qcubed/drafts/artist_edit.php/19001
which fails, not found.

changing it to
http://domina.com/qcubed/drafts/artist_edit.php?19001
works.

Is this a bug or a misconfiguration?

Brett

ps. I had started work on my own form generator as I couldn't find anything decent. I've stopped working on it now, these forms are very useful.

MikeHostetler's picture
Offline
Joined: 01/09/2008

Brett-

Generating URL's that append the ID with a slash is simply the default. The Meta Controls have the ability to use the more standard question mark, but you have to enable that by hand.

We're working on a better way to control this at codegen time. I've dealt with this personally and fully understand ... how annoying :-) this can be.

Offline
Joined: 06/25/2009

Thaks Mike.
Brett

Offline
Joined: 03/06/2009

Mike, would you please care to share the solution... :) I'm facing the same issue here, and it's pretty annoying having everything running on your dev machine and not so on the shared hosting where it should be running... I hope I won't have to rewrite tons of autogenerated code, although I see no other solution at the moment.

upd: I got it, it's done with:

xxxMetaControl::CreateFromQueryString($this);

and the object is accessed by xxx_edit?intId=yy

what will be the fastest way to make the autogenerated drafts working in this case... besides changing everything on hand, because there are too many possibilities for errors (ex., I have buttons redirecting to /Id), as some of the autogenerated stuff is modified to suit my client's needs...