Problems, need help? Have a tip or advice? Post it here.
17 posts Page 2 of 2
Hi KK!

Thanks a lot! It works!

The only issue I'm having is that I'm using Pretty URLs, and the URL looks like this :

http://localhost:8888/article-author/?user=john-doe

When in fact, like it is when Pretty URLs are disabled, it should look like this :

http://localhost:8888/article-author?user=john-doe

Any idea how to fix this?
All the rest works perfectly. Thanks again KK
I'm glad it helped :)

As for the prettyURLs, I'm afraid, this is a custom change and cannot be incorporated into existing prettyURLs.
What do you mean? That I can't make this work with PrettyURLs?
I really need my clients website to use PrettyURLs. Is there any way around?

thanks
You are already working with prettyURLs - e.g.
http://localhost:8888/article-author/ and not http://localhost:8888/article-author.php

Couch recognizes only the canonical home-view, page-view, folder-view, archive-view etc. and so generates/recognizes prettyURLs fo those. It has no idea about the new 'author-view' fabricated in this post and so does not remove the '?' for this particular view (and only for this particular view)

Take it or leave it - that is the way it is, I am afraid.
Thanks for the info KK.

Can I disable PrettyURLs for that page only?
The http://localhost:8888/article-author/
This page is not used anywhere else on the site except for when users click the "See more articles from John Doe" link.
It would work that way, right? If we disable PrettyURL for this particular page?

So it would look like this :

http://localhost:8888/article-author.php?user=john-doe

Thanks!
I am sorry but we cannot selectively enable/disable prettyURLs on templates.
So I cannot make this function work with PrettyURLs, that's what you are saying?
17 posts Page 2 of 2