Comments (3)
The @context
I'll fix in the upcoming release. About the query-input
: That seems to be some Google Thing, it's not documented in the specs (https://schema.org/Action). We may build something to dynamically add properties 🤔.
from yii2-schema-org.
yes i see schema doc site, but when i fix it as workaround, its be valid in both site validation Google & Schema.
my work around is to pass potentialAction
as json ["@type" => "SearchAction", 'target' => Yii::$app->urlManager->createAbsoluteUrl(['/site/search/']) . "?q={search_term_string}", 'query-input' => 'required name=search_term_string'];
![Screenshot 2023-10-09 at 3 17 49 PM](https://private-user-images.githubusercontent.com/103322246/273582051-0ca46169-04d0-49b7-9a87-85a227a69bca.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgzNTY4NDMsIm5iZiI6MTcxODM1NjU0MywicGF0aCI6Ii8xMDMzMjIyNDYvMjczNTgyMDUxLTBjYTQ2MTY5LTA0ZDAtNDliNy05YTg3LTg1YTIyN2E2OWJjYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxNFQwOTE1NDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05N2RkMmQyZmVmY2VmM2QxMGU4M2Q5ZjAzNWNjZjIwOWFhNTFlOTExNWMxMTU0MzUyMzBjMmRkMDJlMWNiYjY0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.6uLc9UVsD_fltKbF3Tfp-t7-dHnRNIay3TnswKEUKUo)
from yii2-schema-org.
yeah but it's not even schema org property compliant (id-syntax instead of camelCase). Google 🤦🏻♂️...
Maybe user DynamicModel
as base to be able to add properties 🤔
from yii2-schema-org.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-schema-org.