PHPStructuredData icon indicating copy to clipboard operation
PHPStructuredData copied to clipboard

ParserPlugin: data-sd="!Product.name"

Open alexprut opened this issue 10 years ago • 0 comments

As for data-sd="Product.name" which means that the name property should be used only if the current schema type is Product, there should be also the possibility to specify in which schema type to not use one property data-sd="!Product.name" which means to not use the name property if the current schema type is Product. Below shown an example where this implementation may help:

<div itemscope itemtype="https://schema.org/Product">
    <h2 itemprop="name">
        Welcome to your blog
    </h2>
    Written by <span itemprop="name">Joomla</span>
</div>

alexprut avatar Mar 06 '15 11:03 alexprut