Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Outputting data from a Picasa RSS feed on a page gives InvalidOperationException

$
0
0
Hi Inna,

Many thanks for the Razor function. It works brilliantly!

I've not yet had time to learn about Razor, so it's a bit outside of my comfort zone. However, I have used your example to add some additional fields from the XML to the HTML output. The only thing I'm stuck with is getting the images to link back to the individual Picasa albums. The trouble is caused by there being three <link> items nested under the <entry> nodes:
<link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/base/user/103008899561957549282/albumid/5671192224298044897?hl=en_US'/>
<link rel='alternate' type='text/html' href='https://picasaweb.google.com/103008899561957549282/BasonBridgeStation'/>
<link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/entry/base/user/103008899561957549282/albumid/5671192224298044897?hl=en_US'/>
How do I select the value of the href attribute for the <link rel='alternate/>, but not the other two?

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>