Custom Tag: cf_puxild


Kullanım Amacı

Arama motoru botları nın web sayfaları hakkında ayrıntılı bilgileri toplayabilmesi sayfaları etiketlemesi, gruplandırması için sayfalarda schema.org ta tarif edilen json+ld tanımlamalarına ihtiyaç vardır. Bu tanımlamalar yaptığımızda sayfamızın tipi ve içerdiği bilgileri botların daha kolay tanıyıp anlamlandırmasını sağlamış oluruz.

Örneğin bir ürün sayfası için kullanıcılar fiyat, stok durumu ve yorum puanı bilgilerini doğrudan arama sonuçlarında görebilir. Ayrıca arama sonuçlarında görsellerde dahil ürününüz product rozeti ile işaretlenmiş olur.

Ayrıca Bakınız : https://developers.google.com/search/docs/data-types/product#json-ld

Schema.org Şablonları : https://schema.org/docs/schemas.html

Parametreler

Attirubutes
Açıklama
Tip
Zorunlu
type
Hiyerarşik olarak json yapısındaki değişkenin ismi kırılımlı olarak verilir.

örnek : type=”brand.name”

*list lerde content array ise zorunlu değil
stirng
E*

content
Type ta tarif edilen değişkenin değeri / value

örnek : content=”#brand_name#”
stirng
E
list
Çok satırlı verilerde kullanılır

örnek : list="review" row="#satir_no" type="author" content="John Doe"
stirng
H
row
list kullanıldığı durumlarda rownum gönderilir

**list varsa
integer
E**
output
true | false , default: true Kullanıldığı yerde contentin çıktısını verir.
Content değerini cfoutput içine almadan çıktı verir. istenmiyorsa false yapın
boolean
H


Örnek Kullanım


        
            {
            "@context": "https://schema.org/",
            "@type": "Product",
            "name": "Executive Anvil",
            "image": [
                "https://example.com/photos/1x1/photo.jpg",
                "https://example.com/photos/4x3/photo.jpg",
                "https://example.com/photos/16x9/photo.jpg"
            ],
            "description": "Sleeker than ACME's Classic Anvil, the Executive Anvil is perfect for the business traveler looking for something to drop from a height.",
            "sku": "0446310786",
            "mpn": "925872",
            "brand": {
                "@type": "Brand",
                "name": "ACME"
            },
            "review": {
                "@type": "Review",
                "reviewRating": {
                "@type": "Rating",
                "ratingValue": "4",
                "bestRating": "5"
                },
                "author": {
                "@type": "Person",
                "name": "Fred Benson"
                }
            },
            "aggregateRating": {
                "@type": "AggregateRating",
                "ratingValue": "4.4",
                "reviewCount": "89"
            },
            "offers": {
                "@type": "Offer",
                "url": "https://example.com/anvil",
                "priceCurrency": "USD",
                "price": "119.99",
                "priceValidUntil": "2020-11-20",
                "itemCondition": "https://schema.org/UsedCondition",
                "availability": "https://schema.org/InStock"
            }
            }
        
    

Bir product sayfası için gereken yapı aşağıdaki gibidir.
Bu yapıyı custom tag ile nasıl oluşturacağız;
Öncelikle widget ayarıdan schema markup ını seçiyoruz, bu bizim ana şemamızın type değerini set ediyor  "@type": "Product"

< cf_puxild type="name" content="Executive Anvil" >
< cf_puxild list="image" row="1" content="https://example.com/photos/1x1/photo.jpg" >
< cf_puxild list="image" row="2" content="https://example.com/photos/4x3/photo.jpg" >
< cf_puxild list="image" row="3" content="https://example.com/photos/16x9/photo.jpg" >
< cf_puxild type="description" content="Sleeker than ACME's Classic Anvil, the Executive Anvil is perfect for the business traveler looking for something to drop from a height." >
< cf_puxild type="sku" content="0446310786" >
< cf_puxild type="mpn" content="925872" >
< cf_puxild type="brand.@type" content="Brand" >
< cf_puxild type="brand.name" content="ACME" >
< cf_puxild type="review.@type" content="Review" >
< cf_puxild type="review.Rating.@type" content="Rating" >
< cf_puxild type="review.Rating.reviewratingValue" content="4" >
< cf_puxild type="review.Rating.bestRating" content="5" >
< cf_puxild type="review.author.@type" content="Person" >
< cf_puxild type="review.author.name" content="Fred Benson" >
< cf_puxild type="aggregateRating.@type" content="AggregateRating" >
< cf_puxild type="aggregateRating.ratingValue" content="4.4" >
< cf_puxild type="aggregateRating.reviewCount" content="89" >
< cf_puxild type="offers.@type" content="Offer" >
< cf_puxild type="offers.url" content="https://example.com/anvil" >
< cf_puxild type="offers.priceCurrency" content="USD" >
< cf_puxild type="offers.price." content="119.99" >
< cf_puxild type="offers.priceValidUntil" content="2020-11-20" >
< cf_puxild type="offers.itemCondition" content="https://schema.org/UsedCondition" >
< cf_puxild type="offers.availability" content="https://schema.org/InStock" >
    

Bu kullanım ile tek veya aynı tipteki farklı widgetlardan set ettiğiniz değerler tek bir şema ile sayfanıza ld+json olarak tanımlanır.

Geri Bildirim

Bu içeriği faydalı buldunuz mu?