4 messages in com.googlegroups.google-base-data-apiRe: Link Element
FromSent OnAttachments
phppage11 Nov 2007 16:36 
Jeff S13 Nov 2007 10:15 
phppage13 Nov 2007 14:40 
phppage14 Nov 2007 14:49 
Subject:Re: Link Element
From:phppage (phpp@googlemail.com)
Date:11/13/2007 02:40:59 PM
List:com.googlegroups.google-base-data-api

Cheers Jeff that seems to work great. After working once I tried it again and get the following error.

Fatal error: Cannot access protected property Zend_Uri_Http::$_regex in /home/server/public_html/ZendGdata/library/Zend/Uri/Http.php on line 76

It did work the first time.

On Nov 13, 6:16 pm, Jeff S <j.@google.com> wrote:

Hi phppage,

If you want your item to redirect to your web page when someone clicks on the item, you do so by adding a link to your item entry that looks like this:

<link rel='alternate' type='text/html' href='http://www.example.com/ 123456jsh9'/>

In php, this would be something like

$linkArray = $entry->link; $linkArray[] = $gdClient->newLink( 'http://www.example.com/123456jsh9', 'alternate', 'text/html'); $entry->link = $linkArray;

The above method is how you can link your Google Base item to another page, but I'm not sure that this will make your item click through to product search. Is this what you were looking for?

Thank you,

Jeff

On Nov 11, 4:36 pm, phppage <phpp@googlemail.com> wrote:

I am following the Zend Framework PHP
documentationhttp://framework.zend.com/manual/en/zend.gdata.gbase.htmlIwas wondering if anyone could tell me how to add the link universal element to a new entry. My items don't seem to be following through from Base to Google Products.- Hide quoted text -

- Show quoted text -