article:publisher meta tag cannot be parsed as profile - meta-tags

According to this update...
https://developers.facebook.com/blog/post/2013/06/19/platform-updates--new-open-graph-tags-for-media-publishers-and-more/
...I thought article:publisher (with page ID or URL) would put a like button for the representative page when shared links are posted to walls? The debugger seems to think differently... what am I missing?
Debugger info:
Object at URL 'http:// domain.com/post/' of type 'article' is invalid because the given value 'http:// www.facebook.com/mypage' for property 'article:publisher' could not be parsed as type 'profile'

article:publisher is for Facebook pages, article:author is for individuals.
The "Follow" and "Like" buttons will only appear for people who haven't already followed the author or liked the publisher page.

Related

Docusign responsive signing text tabs

I have a form that has a few fields that need to be filled in for the last signer after 2+ people have already signed it. They cannot be prefilled as they are not known at the time the document is generated.
I'm sending an HTML document to the Docusign API and have it working great for the first set of signers. The problem is when I try to add text tabs to the document (<input data-ds-type="text" /> following this page) I receive a 400 error back from the Docusign servers with this error message:
Some of the supplied HTML tags, attributes or CSS properties on a guided forms tabs were not allowed. Disallowed: HTML attributes [input:data-ds-type]
How can I do this?
Check that your HTML is valid and all characters in it are correct.
The responsive signing HTML validator is much more strict than the one browsers typically have. a bad HTML will break the whole thing and won't let you create the envelope and the error message unfortunately right now is not as helpful as it can be, but I'll ask to improve this.

OrchardCMS, how to set HTML title tag to page title

How does one dynamically set the HTML title tag on a page in Orchard?
I have a custom theme, and out of the box Orchard sets only the sitename as the page title.
looking in the Document shape, i see this
<title>#Html.Title(title, siteName)</title>
So for example, if my site is called "MySite" and my page is called "MyPage", the title should be
<title>MySite - MyPage</title>
There is another question that seems to deal with a similar issue, though it references a Title Override module as the answer. This module no longer works with newer/current versions of Orchard.
Alternatively, I've considered just using javascript to set the title, but
a) I don't know how to get a handle on the page title and
b) I don't know which shape in which I would do this
thanks in advance
#Html.Title is just a helper, for which you can find the source code here: https://github.com/OrchardCMS/Orchard/blob/6720b71cf3474a9a7b8a8cc9a99d58b1e733acfa/src/Orchard/Mvc/Html/LayoutExtensions.cs
As you can see, it takes a variable number of parameters. If you omit the site name in your call, it won't get output.
<title>#Html.Title(title)</title>
Note that you could also simply do <title>#title</title>.

How does browser detect embedded web content from a HTML page?

Once a browser gets the main html page, how does it know which are the embedded content should be request again from web server, and which are only external links? Is it based on type of tags, e.g ?
If so, could someone give me a reference of what these tags are?
Thanks.
The HTML5 spec defines the element category "Embedded content":
Embedded content is content that imports another resource into the document, or content from another vocabulary that is inserted into the document.
It lists the following elements:
audio
canvas
embed
iframe
img
math
object
svg
video
Elements like link or script (both in Metadata category) can also refer to other ressources that user-agents (browsers, screen-readers, …) are free to link to or include or do whatever they want to do with it. For example, browsers like Firefox or Chromium will (by default) load and "apply" CSS that is linked within the link element, that has the rel value = stylesheet. Browsers like Lynx or w3m won't do that. They simply ignore that link.
For link, HTML5 states which link types "are links to resources that are to be used to augment the current document, generally automatically processed by the user agent":
Two categories of links can be created using the link element: Links to external resources and hyperlinks. The link types section defines whether a particular link type is an external resource or a hyperlink.
Maybe also consider the style attribute (for inline CSS), which could include a background-image url.
Yes, the tags help browser identify the resources to load. After downloading/retrieving the content the browser determines what to do with the content based on the content-type header in the response.

drupal views facebook like button

I tried to add facebook like button to my veiws, which lists a particular node-type. I used views custom field module to add the iframe code.
The problem is when I click like..
it shows Nikhil liked http://example.com/node/44
instead it should have shown Nikhil liked node title on example.com.
Where am I going wrong.
Use Open Graph tags:
http://developers.facebook.com/docs/reference/plugins/like
oK , well I was able to achieve the above feature by following methods:
Created a cck field url-alias under a content type for which views is being created.
Using views-custom-field module, I put in the facebook iframe code.
in my views I included the url-alias field in hidden form and used it to form the url in the like code.
I also used the fb-social module and after that all my likes button were working as expected.
You can check out how I did it here: http://www.jerryjr.com/adding-facebook-like-button-your-drupal-site

Change Edit Control Block (ECB) Link URL in SharePoint

Is there a way to dynamically change the hyperlink associated with an ECB menu in WSS 3.0? For instance, I have a list with 2 fields. One field is hidden and is a link, the other is the title field which has the ECB menu. The title field currently links to the item's view page - but we want it to link to the link-field's url. Is that possible?
UPDATE - 5/29/09 9AM
I have this so far. See this TechNet post.
<script type="text/javascript">
var url = 'GoTo.aspx?ListTitle='+ctx.ListTitle;
url += '&ListName='+ctx.listName;
url += '&ListTemplate='+ctx.listTemplate;
url += '&listBaseType='+ctx.listBaseType;
url += '&view='+ctx.view;
url += '&';
var a = document.getElementsByTagName('a');
for(i=0;i<=a.length -1;i++)
{
a[i].href=a[i].href.replace('DispForm.aspx?',url);
}
</script>
This gives me a link like so (formatted so it's easier to see):
GoTo.aspx
?ListTitle=MyList
&ListName={082BB11C-1941-4906-AAE9-5F2EBFBF052B}
&ListTemplate=100
&listBaseType=0
&view={9ABE2B07-2B47-4390-9969-258F00E0812C}
&ID=1
My issue now is that the row in the grid gives each item the ID property above but if I change the view or do any filtering you can see that the ID is really just the row number. Can I get the actual item's GUID here?
If I can get the item's ID I can send it with the list ID to an application page that will get the right URL from field in the list and forward the user on to the right site.
I think the easiest solution and one I use regularly to modify default sharepoint functionality without having to install server side code is to inject some javascript onto the page to make the necessary modifications.
The Content Editor webpart is ideal for this if you don't want to edit the page source itself. Together with the IE Developer Toolbar or Firebug to inspect the elements you want to edit you should be able to achieve what you need with just a couple of lines of javascript.
Let me know if you need any further detail on getting this work.
The title/link to edit menu is a computed field - basically a combination of the title and item id. If you look at the definition of the field (off the top of my head I think it's in fields.xml) you should be able to create a modified version in your schema.xml that uses the url field in its RenderPattern.
Following up on Tom's answer, you can use the SharePoint Solution Generator in VseWss 1.3 to generate a Visual Studio solution that can re-create your list. You will faint when you see the huge amount of XML that the views use in the schema.xml file but you will see the render pattern that Tom referred to and you should be able to get a general idea of how to modify it to suit your needs.
Gotta love SharePoint. Where small customizations means "take what I give you or rewrite it from scratch"

Resources