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
Related
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']
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
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.
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
How to display an image to jsp page ?
It does not allow me to display .
I am using simple servlet application and I have mention the correct path so path is not the issue .
Provide the solution as soon as possible.
<img> tag in HTML or JSP, will trigger a GET request which the server has to handle.
EXAMPLE
if I have image like below
<img src="images?imageName=xyz.png"/>
the browser will request the servlet on the server with the name images passing the parameter imageName and its value value.
the servlet images has to handle the request and send image information in the form of stream which gets back to the browser and be displayed on the page.
images is name given to a servlet
follow this thread for better understanding.
Thank you for support .
Problem is solved.
The problem was :
I was trying to fetch the image file dynamically and was writing the height attribute so it was concatinate my src with height so I removed height and wrote before src attribute .
It Works .....
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 get the image labeled as special from the Gallery images of a product.Using this I want to get that image url.
I tried following code for the same but not working for me
<?php echo Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages()->getItemByColumnValue('label','look')->getFile(); ?>
this was throwing error for me for method getFile()
You can get product image with specific label from this way
$image= Mage::getModel('catalog/product')->load($productid)->getMediaGalleryImages();
$_images = $image->getItemByColumnValue('label', 'YOUR_LABEL');
http://magentotutorialbeginners.blogspot.in/2014/03/get-product-image-from-label-magento.html
Let me know if you have any query