json-ld for Javascript popup window content - javascript

on our website, products details page open via a Javascript popup window.
that same product page may be opened with a direct link to that page with the popup window opened.
In the above scenario #2 my json-ld data is loaded fine and Google structured data testing tool picks up the information.
However in the most common scenario i.e. scenario #1 above the json-ld data doesn't seem to load and the product information is null.
Example - scenerio 1: http://www.beride.net/school/guincho-adventours
Example - scenerio 2: http://www.beride.net/school/guincho-adventours?course=62
I used Google Tag manager to fire up the json-ld scripts
Does anyone know I can can get the json-ld information to load in the above scenario #1?

The Structured Data Testing Tool is not 100% at coping with JavaScript including the Google Tag Manager. Either post in rendered html to the tool or look at the Structured Data report in the Google Search Consoles.
Your first example is a list of products. Googles guides indicate that you should not mark up complete entities when they are listed as summaries that link to the details. They suggest you mark up a list of links.
https://developers.google.com/search/docs/guides/mark-up-listings

Related

is there a way to retrieve information from a webpage and use that info to prefill another page?

I'd like to create a browser extension or a javascript to retrieve pieces of information from a currently open webpage and use that info to prefill a form on another webpage.
So, for example, if I'm on a StackOverflow page, I'd like a script that takes info from that page (title, question,...) and prefill that data in a new webpage (eg: https://stackoverflow.com/questions/ask).
I'm not an expert in coding, but I created some scripts using Python and Selenium (nothing too fancy though). I looked for a similar question, but I didn't find anything. Does anyone have an idea on how I could accomplish something like that?
You can do it with the help of content script. fetch the required data from any webpage using a content script and store the data on extension storage. Then you can inject the data to required input on required webpage with executeScript()
for more reference: https://developer.chrome.com/extensions/content_scripts

escaped_fragment in sitemap or shebang?

My site is a Single Page Application and uses alot of javascript. I've got my server setup to generate the site the user sees with javascript so Google sees the same content. Google knows about this via the fragment meta tag and converts links with the shebang to escaped_fragment to get that rendered site. Since I want Google to know about not-so-recent articles on my site that don't have a link from the mainpage anymore, I added a sitemap.
The question is if I should add urls with or without the shebang or convert it to escaped_fragment.
http://www.example.com/#!veryAwsomeDynamicPage
or
http://www.example.com/?_escaped_fragment=veryAwsomeDynamicPage
My Goal: I want Google to get my content via escaped_fragment, but want the link that Google shows in its search result to be with the shebang (so that users don't get redirected)
as outlined in google's specification under 'Role of the Search Engine Crawler' it states
The search engine agrees to display in the search results the corresponding pretty URLs:
thus, http://www.example.com/#!veryAwsomeDynamicPage is displayed in the search results while google fetches the content on http://www.example.com/?_escaped_fragment=veryAwsomeDynamicPage
so http://www.example.com/#!veryAwsomeDynamicPage shall be in the sitemap.xml

OneDrive shared link branding or changing layout

I am currently developing a RESTful based service where I call the OneDrive API to store and retrieve Word documents. I can also generate a so called "shared edit link (shared_edit_link)" or a "shared read link" (shared_read_link) which points to uploaded Word documents and this allows me to give the shared link to anyone so they can edit the Word document. Works great.
When you open the shared edit link you see the OneDrive online Word editor with the document with in the header buttons for signing in and sharing the document to OneDrive.
Question: is it possible to change the layout of the OneDrive Word editor with a custom logo/branding and/or is it possible to remove the buttons for signing in and sharing the document? I would like to only show the document with the Word functionality, preferably nothing related to signing in or sharing to OneDrive.
Short answer, no.
Long answer, what you want sounds like your own online document editor. So, it is certainly possible to get the document content via API and then insert that into your own custom editor that you built. But there is no way to programmatically alter the provided OneDrive/Office Online/Word editor to remove branding, etc.

How to display HTML5 convert of a PDF on page without using an IFrame?

I do not want to embed the PDF directly as the PDF is itself indexed by Google, and is returned directly in Google search results (If the PDF is displayed on page I can benefit from advertising clicks).
As suggested elsewhere on StackOverflow I have used this conversion tool:
http://www.idrsolutions.com/example_conversions/
However the output from here in the Iframe is not indexed by Google.
Here is an example of the output I desire:
http://www.manualsdir.com/manuals/132858/jaguar-s-type.html
How can I replicate this Functionality?
Google tries to associate framed content with the page containing the frames, but we don't guarantee that we will.
From here: https://support.google.com/webmasters/answer/34445?hl=en
Speculating, what this probably means is that the content should be on the same domain (to ensure it's your content) and only iframed once or a small number of times (so that multiple pages cannot gain credit for the same piece of content).
Did you follow the above ideas and give Google enough time to index the content?
For disclosure, I am a developer at IDRsolutions.
We do have customers who are iframing converted content and having it indexed by Google. You might like to try the singlefile mode that puts all pages into one file so Google is able to easily index content on all of the pages.
If you have any questions specific to the conversion, there are support forums here: http://support.idrsolutions.com/forums/forum/pdf-conversion-forum/

Export my SharePoint aspx page to a PDF file

I am working on an enterprise wiki site collection , and using the SharePoint designer I have manually added a link named “Print to PDF” as follow:-
But I am trying to implement the link functionalities, so when the user clink on the link, the page content (mainly any html components that are inside the rich text ) should be displayed inside a pdf file?
Can anyone advice how I can achieve this ,, can I write a javaScript code which can do the work ? Thanks
You can develop an ASPX page (actually preferably an ASHX handler) that does the work for you by accepting an URL to convert, which you then pass into a third party HTML to PDF library. The generated PDF file can then be returned to the user's browser.
Alternatively, have a look at this blog post (that I wrote, so big fat disclaimer about me being biased) that shows how you can buy a product off the shelf that does all the work for you.
You can read more about it here.
BTW, for questions related to SharePoint you may want to consider using sharepoint.stackexchange.com.

Categories