vhs vimeo ViewHelper - fluid

on my Site the User can insert a Vimeo URL, something like this:
https://vimeo.com/181873015
I want to extract only the last Part:
181873015
cause this is the one i need for the v:media.vimeo ViewHelper. So i thought i could do it like this:
<v:format.replace substring="https://vimeo.com/" content="{data.tx_extend_ttcontent_vimeo}" replacement="''" count="1">
</v:format.replace>
But i don`t know how the get the Result. Something like this:
<v:format.replace substring="https://vimeo.com/" content="{data.vimeo}" replacement="''" count="1" as="videoID">
</v:format.replace>
Does not work.
Then i thought maybe the inline Notation is the right one. So i tried this:
<v:media.vimeo videoId="{v:format.replace(substring: \'https://vimeo.com/\', content: \'{data.tx_extend_ttcontent_vimeo}\', replacement: '\'\'', count: 1)}" width="123" height="123" title="1" byline="1" portrait="1" color="'00adef'" autoplay="1" loop="1" api="1" playerId="NULL">
</v:media.vimeo>
The Result is:
<iframe src="//player.vimeo.com/video/{v:format.replace(substring: \'https://vimeo.com/\', content: \' https://vimeo.com/181873015\', replacement: '\'\'', count: 1)}?title=1&byline=1&portrait=1&color='00adef'&autoplay=1&loop=1&api=1&player_id=NULL" webkitallowfullscreen="webkitAllowFullScreen" mozallowfullscreen="mozAllowFullScreen" allowfullscreen="allowFullScreen" width="123" height="123" frameborder="0">
So does anyone know what is the right inline Notation or how can i use the Tag Version???
Thanks
Bernd

Related

Splunk-Dashboard - how to add links as field in table visualization?

I'm sending as a - payload.url field - some link for each event,
but in the dashboard - table it's appeare as text and not as link.
maybe someone tried to do it?
i've added - Visit example website
the tage into the payload and try to sent it in two ways:
Visit example website
"https://www.example.com"
both are appeare as text and not as links.
thanks all, what I needed to do is - add this:
<drilldown>
<link target="_blank">$row.URL|n$</link>
</drilldown>
found it here - https://community.splunk.com/t5/All-Apps-and-Add-ons/How-do-I-make-a-clickable-hyperlink-in-search-result/m-p/438278
thanks again
Without knowing what your dashboard looks like (a [sanitized] screenshot, XML, etc), we can only guess at what you're trying to do
That said, if you're wanting to do what I think you want to do, put the following in its own panel on your Dashboard (you'll need to do this from the Edit Source option):
{top of dashboard}
<row>
<panel>
<html>
<li>link text</li>
<li>text of link</li>
</html>
</panel>
</row>
{bottom of dashboard}

What should be the css selector for <p class="subheading">Enter Optionality</p>

I have tried various css statements but its not working,
driver.findElement(By.cssSelector("p:class(subheading{"EnterOptionality"}")).isDisplayed();
Can any one guide on this?
If you want to select this:
<p class="subheading">Enter Optionality</p>
CSS:
driver.findElementByCssSelector("p.subheading").click();
XPATH:
driver.findElementByXPath("//p[#class='subheading' and text()='Enter Optionality']").click();
As #davide answer is correct but i want to add something. if there is 'Enter Optionality' text in webpage you can sue simple xpath like this:
driver.findElementByXPath("//p[contains(text(),'Enter Optionality']").click();
OR
driver.findElementByXPath("//*[contains(text(),'Enter Optionality']").click();

How do I change a div class first-letter with the first-letter selector?

My html code looks like this:
<div class="entrybody"> Some text/content </div>
I want the first letter between this piece of code (for example "Some text") to become alot much bigger every time I post something on my blog. Here is a picture of what I mean:
http://i58.tinypic.com/9hierp.png
How do I do this? I have tried with
.entrybody::first-letter but it doesn't work...
You were using :: to access the psuedo element.
Put only one :
.entrybody:first-letter
http://jsfiddle.net/zb522v2g/2/
Read more about this here: http://www.hongkiat.com/blog/css-better-paragraph/

Get an XML Element via XPath when attributes are irrelevant

I'm looking for a way to receive a XML Element (the id of an entry) from a YouTube feed (e.g. http://gdata.youtube.com/feeds/api/users/USERNAME/uploads).
The feed looks like this:
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:gd="http://schemas.google.com/g/2005" xmlns:yt="http://gdata.youtube.com/schemas/2007" gd:etag="W/"DUcFQncyfCp7I2A9WhVUFE4."">
<id>tag:youtube.com,2008:user:USERNAME:uploads</id>
<updated>2012-05-19T14:16:53.994Z</updated>
...
<entry gd:etag="W/"DE8NSX47eCp7I2A9WhVUFE4."">
<id>tag:youtube.com,2008:video:MfPpj7f6Jj0</id>
<published>2012-05-18T13:30:38.000Z</published>
...
I want to get the first tag in entry (tag:youtube.com, 2008 ...).
After googling for some hours and looking through the GDataXML wiki, I'm clueless because neither XPath nor GData could deliver the right element.
My first guess is, they can't ignore the attributes in the feed and entry tags.
A solution using XPath would be great, but one in Objective-C is equally welcome.
You might be having an issue trying to get XPath to work because of the default namespace.
If you just want the first tag in entry, you can use this:
/*/*[name()='entry']/*[1]
If you want the first id specifically, you can use this:
/*/*[name()='entry']/*[name()='id'][1]
Also if you can use XPath 2.0, you can skip the predicate entirely and use * for the namespace prefix:
/*/*:entry/*:id[1]

the best method for google indexing text content in images?

I have a webpage where I put 1 image once in a while, this is just like xkcd.com
I would like to know how to let google know the text in my images.
My approach is to put the text in alt html attribute, like this:
<img
src="http://myapokalips.com/public/cartoons/021_Robot_Tattoo.png"
alt="RETARD - aw, that's a sick tattoo! - yea, bro, it means 'strength'"
/>
is that right? or should I put the text in some random metatag?
thank you in advance.
Just do it like xkcd.com is doing.