|
|
Rank: Newbie
Joined: 10/10/2006 Posts: 4
|
I´m testing with Flickr and umbraco...
and I want the value of this item:
<?UMBRACO_GETITEM field="tags"/>
to be inserted at the xxxxxxxxx
<?UMBRACO_MACRO macroAlias="Flickrlist" url="http://api.flickr.com/services/feeds/photos_public.gne?id=12345678@N00&format=rss_200&tags=xxxxxxxxx"></?UMBRACO_MACRO>
I need the exact string...
Can somebody help me?!
Thanks, Christoph
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,696 Location: KY, USA
|
In case you haven't seen it, Kasper did a nice piece on Flicr and Umbraco at http://kasperb.dk/2006/6/26/display_your_flickr_images_on_your_umbraco_driven_website.aspxPerhaps what he's got there will resolve your issue? cheers, doug.
MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
|
|
Rank: Newbie
Joined: 10/10/2006 Posts: 4
|
Ok... thanks, I know the description from Kaspar! But this doesn´t resolve my problem...
My problem is to insert an <?UMBRACO_GETITEM field="tags"/> into a macro string (in this case, where the xxxxx´s are)
<?UMBRACO_MACRO macroAlias="Flickrlist" url="http://api.flickr.com/services/feeds/photos_public.gne?id=1234567@N00&format=rss_200&tags=xxxxxxxxxx"></?UMBRACO_MACRO>
Is this possible? If yes, please give me the exact string!!
Thanks a lot, Christoph
|
|
 Rank: Addict
Joined: 3/17/2008 Posts: 952 Location: Nyborg, Denmark
|
You cannot use a parameter named "url" in a macro. So changing the name (alias) of the parameter will help you!
Jeeeez, did I really start this :-)
|
|
Rank: Newbie
Joined: 10/10/2006 Posts: 4
|
Okay... Let me explain: I´ve programmed Kaspar´s Flickr-Example. This works great! But I only want to display photos with a special "Tag" - not all of mine! So I´ve added a parameter called "tags" to my macro which is called "Flickrlist". Then I had to attach the parameter "tags" to the URL of the Flickr-RSS Feed! I think I have to do this in my template, when I call the Macro "Flickrlist": Code:<?UMBRACO_MACRO macroAlias="Flickrlist" url="http://api.flickr.com/services/feeds/photos_public.gne?id=1234567@N00&format=rss_200&tags=XXXXXXXXXXX max="3"></?UMBRACO_MACRO> I only want the value of the "tags"-Parameter inserted where the XXXXXXXXX´s are! Is there a possibility??? Thanks again, Christoph
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 777 Location: Leigh-on-Sea, Essex, UK
|
Hello I think I know what you are after. <?UMBRACO_MACRO macroAlias="Flickrlist" url="http://api.flickr.com/services/feeds/photos_public.gne?id=1234567@N00&format=rss_200&tags=[#YourDocumentPropertyAliasHere]" max="3"></?UMBRACO_MACRO> See my example. I am passing variables from the properties of my document type. <?UMBRACO_MACRO macroAlias="ContactForm" EmailTo="[#EmailTo]" Redirect="[#RedirectPage]" EmailSubject="[#EmailSubject]" EmailBody="[#EmailMessage]" EmailReplyFrom="[#EmailReplyFrom]" EmailBackSubject="[#EmailBackSubject]" EmailBackBody="[#EmailBackBody]" MailServer="[#EmailServer]" ServerUser="[#MailServerUserName]" ServerPass="[#MailServerPassword]"></?UMBRACO_MACRO> Warren Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
|
|
 Rank: Fanatic
Joined: 7/19/2006 Posts: 206 Location: New York, NY, USA
|
Dear Christoph, I recently found this useful when I was trying to fix a template with a macro in it: http://en.wikibooks.org/wiki/Umbraco/Samples_and_Articles/Dot_Net_Controls/Using_Page_Properties_In_UserControlsBasically, using a # in front of the property inside square brackets will pass in the property value, so you might want to try something like this: Code:<?UMBRACO_MACRO macroAlias="Flickrlist" url="http://api.flickr.com/services/feeds/photos_public.gne?id=1234567@N00&format=rss_200&tags=[#tags] max="3"></?UMBRACO_MACRO>
Heather Whole Web Impact | Floyd Innovations LLC | Heather Floyd's Blog
|
|
 Rank: Fanatic
Joined: 7/19/2006 Posts: 206 Location: New York, NY, USA
|
It looks liek Warren and I had the same thought at the same time! :!: Whole Web Impact | Floyd Innovations LLC | Heather Floyd's Blog
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 777 Location: Leigh-on-Sea, Essex, UK
|
|
|
|
Guest |