Forum

Thread tagged as: Addons, Runway, Field-Types

Vimeo Add-on

Hi,

I've just upgraded to the latest version of Perch Runway 2.7.6 and the Vimeo field type doesn't seem to work any more.

When I save, it clears the Vimeo URL from that field.

Thanks,

Rob

Robert Chambers

Robert Chambers 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you get anything output in the debug? Which version were you on previously?

The output just highlights that field in red - suggesting the value is missing. I was on 2.7.5 before.

Thanks.

Drew McLellan

Drew McLellan 2638 points
Perch Support

There's no changes that affect this between 2.7.5 and 2.7.6.

I'll see if I can reproduce it.

Thanks Drew.

Could it have anything to do with my other issue: https://forum.grabaperch.com/forum/01-09-2015-perch2-resource-log-size

Drew McLellan

Drew McLellan 2638 points
Perch Support

No, that's not likely.

Can you show me your template?

No problem. Here's the template I was using:

<div class="inner"> 

    <article class="post">  

        <h2 class="post__heading">
            <perch:content type="text" id="name" label="Name" required="true" title="true" />
            <perch:content type="slug" id="slug" label="Slug" for="name" value="true" suppress="true" />
        </h2>

        <perch:content type="image" id="tile_image" label="Tile Image" width="460" height="305" crop="true" suppress="true" />

        <perch:if exists="subhero_video">
            <div class="sub-hero">
                <div class="sub-hero__video">
                    <perch:content id="subhero_video" type="vimeo" output="embed" label="Vimeo URL" />
                </div>
            </div>
        <perch:else />
            <perch:if exists="subhero_image">
                <div class="sub-hero">
                    <img src="<perch:content type="image" id="subhero_image" label="Hero Image" width="860" crop="true" order="" />" alt="<perch:content id="name" />" class="sub-hero__image" />
                </div>
            </perch:if>
        </perch:if>

        <div class="post__copy">
            <perch:content id="copy" type="textarea" label="Copy" markdown="true" editor="markitup" html="true" imagewidth="860" />
        </div>

        <h5 class="post__date">
            <perch:content id="date" type="date" label="Date" format="F Y" />
        </h5>

        <div class="social-media">
            <ul class="social-media__list">
                <li class="social-media__item">
                    Share
                </li>
                <li class="social-media__item">
                    <a href="mailto:?subject=<perch:content id="name" />&body=Thought%20you%20might%20be%20interested%20in%20this:%20http%3A%2F%2Fwebsite.co.uk/<perch:content id="page_slug"/>/<perch:content id="slug" />/" class="social-media__link social-media__link--email"></a>
                </li>
                <li class="social-media__item">
                    <a href="https://twitter.com/intent/tweet?text=<perch:content id="name" />&url=http%3A%2F%2Fwebsite.co.uk/<perch:content id="page_slug"/>/<perch:content id="slug" />/&via=twitter_handle" class="social-media__link social-media__link--twitter"></a>
                </li>
                <li class="social-media__item">
                    <a href="https://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Fwebsite.co.uk/<perch:content id="page_slug"/>/<perch:content id="slug" />/&title=<perch:content id="name" />" class="social-media__link social-media__link--linkedin"></a>
                </li>
            </ul>
        </div>

    </article>

</div>
Drew McLellan

Drew McLellan 2638 points
Perch Support

The problem was a change to require HTTPS from Vimeo's API - nothing to do with Perch. I've updating the field type to track the API change:

https://grabaperch.com/add-ons/field-types/vimeo

Hi Drew,

Still no luck with the updated add-on.

The Vimeo URL doesn't save - the field goes blank.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you get any errors in the debug?

The Vimeo field does show up red - like the other fields without a submitted value.

But nothing else.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you give me an example?

Hi Drew,

Think I might have worked out the issue from some testing...

The videos we're trying to use are marked as private, so they don't appear on Vimeo website. Looks like the add-on is fine with standard videos.

Sorry to waste your time on this.

I've come up with a workaround - using a text field for the video ID and then inserting that into the embed code within the template.