how does SEO index pages with ajax loaded content [closed] - ajax

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
i'm a little confused about how search engines will treat this two cases:
i have a page "all articles" which has previews of recent articles( some text plus read more) and a page for each article, will this be considered as duplicate content by search engines?
when a search engine indexes a page does it index also the content on the page that is loaded via ajax? (in my case the page "all articles" load the previews of articles via ajax.
Thank you.

For your first question, no it will not be treated as duplicate content, those are just previews.
For the second one , search engines DO index Ajax content if they are crawlable.
You can make sure they are crawlable by ensuring your site has theese tags:
https://developers.google.com/webmasters/ajax-crawling/docs/learn-more

Related

How to obtain href anchor texts ​from a div class using XPath [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
With XPath I want to filter out all anchor texts (a href) "click here", which are in a special div class "main-content" included. I am not a developer and hope for support, thank you.
If I understand your query correctly you want to get all 'click here' links present in div with main-content class.
Based on Link Text
//div[contains(#class,'main-content')]//a[.='click here']
Based on attribute:
//div[contains(#class,'main-content')]//a[#href='url goes here']

Index container sample component [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I would like to implement a feed component that has multiple of:-
an icon
a label
The component could be backed by an IndexedContainer.
It would be helpful if the sample showed how to update the feed component when a new item is saved / or inputted the data source.
If you don't need any lazy loading, you could get some inspiration from a still-to-be-published add-on that I've put together: https://github.com/Legioth/Listing/blob/master/listing/src/main/java/org/vaadin/listing/Listing.java
If you want to use the class as it stands, you might also be interested in this usage example: https://github.com/Legioth/Listing/blob/master/listing-demo/src/main/java/org/vaadin/listing/demo/Demo.java#L37
If you need lazy loading, I'd suggest trying to get Table or Grid to work according to your requirements.

Add image source link on the Image [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to add an hyperlink on the image :
here is the example : http://aff248.teensdigest.com/articles/766?page=1
I want to use few images on my website with that i want to show the image source.
So how can we add a link of image source on the image itself. I tried with the css but i don't know how to put the link exactly on the image.
Your sample web site is using CSS to overlay the image with an href for "Source" like this:
Source
And in one of the CSS stylesheets, they define the class citation. Check out the second stylesheet in your sample.

LibreOffice: Text for footer of last page [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I want to create a custom LibreOffice Writer template of our company. This template should include a disclamer in the footer of the last page of each document.
In our existing M$ Word template we use a field with "IF({current page}={last page};...", but LibreOffice seems not to be able to use the current page number in conditional texts.
The LibreOffice Help page says:
You cannot use internal variables, such as page and chapter numbers, in condition expression.
Using a custom page style for the last page also seems not to be a good decision, because if someone inserts too much content into that "last page" and causes an automatic page break then he gets the disclamer twice.
How can I create a footer in LibreOffice that will automatically be shown on the last page of a document, but not on any other page?
edit: I managed to write a macro that can insert a page break for the last page. Still not the complete solution, but might be a way to go:
Sub PageBreakForLastPage
' create cursor
Cursor = ThisComponent.CurrentController.getViewCursor
' move to start of last page
Cursor.jumpToLastPage
Cursor.jumpToStartOfPage
' create page break
Cursor.BreakType = com.sun.star.style.BreakType.PAGE_BEFORE
Cursor.PageDescName = "First Page"
End Sub
We had the same issue using the OpenOffice template engine (i suppose it's the same :D) and the only way to solve this problem was to add a footer with a custom field for the page number and fill this after each page is created.

Image id as digit causes W3C error [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am using Drupal 7.9 and the images generate a numerical id automatically. It causes W3C validation error value of attribute "id" invalid: "1" cannot start a name because id attribute doesn't allow a digit as its name. The image tag is
<img id="1" class="media-image" alt="contact" src="path to image" typeof="foaf:Image">.
How can I get rid of this? Any help will be greatly appreciated.
Update. As #SvartalF said, how can I prefix string to id in Drupal? I tried jQuery for that. But didn't help. This problem exists only with images uploaded via wyswyg CK editor
HTML id value must begin with a letter, you can check it here.
So, you can prepend id with a some-prefix like a image-, or use HTML5 data-* attributes

Resources