Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 32883 invoked from network); 12 Jun 2009 22:14:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jun 2009 22:14:47 -0000 Received: (qmail 67330 invoked by uid 500); 12 Jun 2009 22:14:58 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 67250 invoked by uid 500); 12 Jun 2009 22:14:57 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 67240 invoked by uid 99); 12 Jun 2009 22:14:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2009 22:14:57 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of vincent.peres@gmail.com designates 209.85.220.211 as permitted sender) Received: from [209.85.220.211] (HELO mail-fx0-f211.google.com) (209.85.220.211) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2009 22:14:48 +0000 Received: by fxm7 with SMTP id 7so3303750fxm.11 for ; Fri, 12 Jun 2009 15:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=PSS6tcLq4wveonRzXb3kJUuXR3aNu8eGowxhwJmxgFA=; b=FljoI8g2PABiHiC1dAm9qygR2e0e/1mI6br0BKeP/mAcZ/fJgyZLQ3vAyz/hwSj7Si bIBjp0yWB3zGapWNlkV+CzY06OxJsIlG/b8c/jmyfQTgVc5TmlYVGVB0ofR9uDoRqiNQ u3efbtwEOPG01N02BJdYnVbZmXsV47jW5fYgE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=FMLil76lMZNNRcyiTG31OPYt19RqApkmn4LV19l5ntOgZ45Wj40hkjj0mM17pCv+Pe MScDfp8NXXNZSEOwWoHSnaBtkAjq6UkQc4DLqaL2z+q9jKtDajPoCMFtjcUY2gEYrAV5 lE5gTT8bk94XiVWeytYKgbD+LR+OWKJzFXgZY= MIME-Version: 1.0 Received: by 10.204.58.16 with SMTP id e16mr4078002bkh.43.1244844867943; Fri, 12 Jun 2009 15:14:27 -0700 (PDT) Date: Fri, 12 Jun 2009 23:14:27 +0100 Message-ID: <54fceb110906121514s43ed4521pec2466de67b9de1d@mail.gmail.com> Subject: How to change/extend the show page of a document? From: =?ISO-8859-1?Q?P=E9r=E8s_Vincent?= To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001636c924a8277c0e046c2e08aa X-Virus-Checked: Checked by ClamAV on apache.org --001636c924a8277c0e046c2e08aa Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello, I'm a big fan of JS app and think CouchDB could be really helpful and save me lot of time ! I'm doing some test using CouchDB backend : building documents, creating views, displaying them by HTTP request etc. but I have some problem to imagin how to build the following document (maybe you can help me finding the best solution / feel free to redirect me to documentation !) : I have different types of documents : page, location, user, news. I would like to create two views : - one 'preview' which is going to be a 'light' page with location - one 'full' with all locations, users, news related to my page I built some views to fetch group of pages, users, tags with count etc. but it return a hash of my documents and I only need on : with a given id. Is it possible to create a view and giving some parameters (id=xxx) or can I change the 'show' pages (REST Get)? Maybe I'm wrong and I should build my doc in an other way? Not so easy to think 'document', I need some help :) Thanks a lot ! Vincent --001636c924a8277c0e046c2e08aa--