11 messages in com.googlegroups.google-mashup-editorRe: Problem with gm:text| Subject: | Re: Problem with gm:text![]() |
|---|---|
| From: | Jason (gmej...@google.com) |
| Date: | 07/30/2007 04:32:50 PM |
| List: | com.googlegroups.google-mashup-editor |
Hi Pedro, and welcome to GME! :)
gd: is simply the GData namespace which has a number of elements not defined by the Atom format such as gd:when, gd:where, and gd:email.
http://code.google.com/apis/gdata/elements.html
Even though atom:email is defined, its usage is pretty strict -- it must be used within atom:author or a similar "person construct." For this reason, I would recommend using gd:email. So, to display a list of names and email addresses, your code might look like the following:
<gm:page title="Simple list" authenticate="true">
<gm:list data="${app}/names" template="myTemplate" />
<gm:template id="myTemplate"> <gm:create label="New name/email" /> <table width="100%" class="blue-theme"> <thead> <th>Name</th> <th>Email</th> <th /> </thead> <tr repeat="true"> <td> <gm:text ref="atom:title" /> </td> <td> <gm:text ref="gd:email/@address" /> </td> <td> <gm:editButtons /> <td> </tr> </table> </gm:template>
</gm:page>
Notice <gm:text ref="gd:email/@address" /> ; unlike the entered name, which is stored in the atom:title element, the email address is stored in and retrieved from the 'address' attribute of the gd:email element. See the link above for other gd: elements you can use. And if you want to use elements not defined in either the atom: or gd: namespaces, you can use the gmd: namespace. See the following link for more information:
http://code.google.com/gme/data.html#writing
- Jason
On Jul 30, 5:13 am, Pedro <pedr...@gmail.com> wrote:
Hi, i new at GME, i´m working in a project and i have a problem and dout with gm:text if i have 2 data text, one for the name and other for e-mail (exemple) how i do?like this?
<gm:text ref="atom:title"/> <gm:text ref="atom:email"/>
i don´t understand the meaning of "gd:" like "<gm:date ref="gd:when/ @startTime"/>"
PS: Sorry my english, i´m from Brazil Thanks anyway




