Skip to main content

ImageSliderSettings.SeoFriendly Property

Gets or sets whether Search-Engine Optimization (SEO) mode is enabled.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public bool SeoFriendly { get; set; }

Property Value

Type Description
Boolean

true, if the SEO-friendly mode is enabled; otherwise, false.

Remarks

A search engine indexes data that comes from the server. Use the SeoFriendly property to specify how the image slider data is sent to the client side. If the SeoFriendly property is set to true, an image arrives as a particular <img> tag. The ImageSliderItem.ImageUrl property value specifies the src attribute; the ImageSliderItem.Text property value specifies the alt attribute.

<img src="ImageUrl" alt="Text" />

If an image’s ImageSliderItem.NavigateUrl property is specified, the <img> tag is covered by the *<a>* tag.

<a href="NavigateUrl"><img src="ImageUrl" alt="Text" /></a>

In this way, the image text, image url, and navigate url are indexed by the search engine.

If the SeoFriendly property is set to false, the data arrives within the client object. It reduces data traffic, so performance increases. But in this way, the data cannot be indexed by a search engine.

Note

The ImageSlider creates its hierarchy on the client side after a search engine indexes data. So the SeoFriendly property does not affect the slider final markup.

See Also