0

Can't get simple yml:include to work in SmallView

Hi again,

So I'm obviously doing something wrong here but just can't see what. I have the following xml file with a simple yml:include in the content. The include works but pulls in my full view into the small view instead of the resource I've pointed it too.

I've tested this with several resources including html and php files. I've also tried the insert attribute and it always ignores the resource I enter in the params attribute and instead pulls in the YahooFullView href.


Can anyone see what I've done wrong?


<?xml version="1.0" encoding="utf-8"?>
<Module xmlns:yap="http://www.yahoo.com/ns/yap">
<ModulePrefs title="MyHome.ie" title_url="http://www.myhome.ie/" description="MyHome.ie App for the Hompage linking the user to Rentals and For Sale search pages." author="MyHome Ltd." author_link="http://profiles.yahoo.com/u/4LZ6NLXKS2US2JJGNF4SGZ3N3Y" category="BusinessAndFinance-RealEstate">
<Icon>http://www.myhome.ie/favicon.ico</Icon>
<Locale lang="en" country="GB"/>
<Require feature="yap.feature.classic"/>
<Require feature="opensocial-0.8"/>
<yap:Extension name="yap.gadgets.ShortDescription">Simple MyHome.ie Hompage App</yap:Extension>
<yap:Extension name="yap.gadgets.CreatorImageUrl">http://www.myhome.ie/static/yahoo/homepage/app-icon-256x256.gif</yap:Extension>
<yap:Extension name="yap.gadgets.CreatorWebsiteUrl">http://www.myhome.ie/about</yap:Extension>
<yap:Extension name="yap.gadgets.YahooComIconUrl">http://www.myhome.ie/static/yahoo/homepage/app-icon-20x20.gif</yap:Extension>
<yap:Extension name="yap.gadgets.ScreenshotUrl">http://www.myhome.ie/static/yahoo/homepage/myhome-yahoo-screenshot.jpg</yap:Extension>
<yap:Extension name="yap.gadgets.TouUrl">http://www.myhome.ie/terms</yap:Extension>
<yap:Extension name="yap.gadgets.PrivacyUrl">http://www.myhome.ie/privacy</yap:Extension>
<yap:Extension name="yap.gadgets.ApplicationIconUrl">http://www.myhome.ie/static/yahoo/homepage/app-icon-64x64.gif</yap:Extension>
<yap:Extension name="yap.gadgets.Tags">apartment,developments,dublin,house,ireland,lettings,property,rent,rental,sal
e,search</yap:Extension>
</ModulePrefs>
<Content type="html" view="YahooSmallView, default">
<![CDATA[
<yml:include params="http://www.bjmarine.net/yahooincludetest.php" delay="5000">Before the fun kicks off...</yml:include>
]]>
</Content>
<Content type="html" view="YahooFullView, canvas" href="http://www.bjmarine.net/yahootest.php" />
</Module>



Thanks,
Denis

by
2 Replies
  • So it turns out that the absolute path was the issue! I did slip up and miss that in the documents but some error handling on this would be nice and I still don't get why it was silently falling back to the FullView href.

    Denis
    0
  • QUOTE (Denis @ Jun 14 2010, 06:47 AM) <{POST_SNAPBACK}>
    So it turns out that the absolute path was the issue! I did slip up and miss that in the documents but some error handling on this would be nice and I still don't get why it was silently falling back to the FullView href.

    Denis


    Hi Denis,

    Yes, the params tag attribute of yml:include is relative to your full view URL. This is described here:

    http://developer.yahoo.com/yap/guide/include.html

    "The relative path to the content, including any parameters required for the content. (This path is relative to the application containing the yml:include tag.) Must conform to RFC 3986; see URL Parameter Encoding."

    I'll have our documentation team fix this description to make it more clear.

    Kevin
    Yahoo! App Platform team
    0

Recent Posts

in YAP