Skip to content

Commit 0775676

Browse files
authored
Merge pull request #16 from jweiland-net/updateReadme
Update readme
2 parents 467b0f8 + 552461f commit 0775676

File tree

1 file changed

+48
-2
lines changed

1 file changed

+48
-2
lines changed

README.md

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,19 @@ Enable Debug Mode
8181
: While saving records in TYPO3 backend a flash message with the preview URL
8282
of modified page will be shown.
8383

84+
### Host API Key file
85+
86+
Create a file named `[API key].txt` with your API key as content and move it
87+
into your document root directory of your website server.
88+
89+
#### Example
90+
91+
If you chose `abc-ABC-123` as your API key you have to create a file named
92+
`abc-ABC-123.txt` and set `abc-ABC-123` as content of that file. Upload file
93+
`abc-ABC-123.txt` into the `/var/www/my-typo3-page/public` folder. Open
94+
`https://example.com/abc-ABC-123.txt` to make sure the file is public
95+
available and its content is `abc-ABC-123`.
96+
8497
### Task
8598

8699
You need TYPO3 system extension `scheduler`.
@@ -128,8 +141,8 @@ The IndexNow provider will use your API key and request the file:
128141
[API key].txt
129142
```
130143

131-
with API key as content from your server. If it does not exist, validation fails
132-
and search engines will provide updated information much later.
144+
with API key as content from your server. If it does not exist, validation
145+
fails and search engines will provide updated information much later.
133146

134147
### I have changed content, but there is no record in `tx_indexnow_stack`
135148

@@ -143,6 +156,39 @@ Check logs for any problems.
143156
Foreign extensions can hook into extension `indexnow` and prevent informing
144157
IndexNow under various circumstances.
145158

159+
### How can I test, if IndexNow works as expected?
160+
161+
In documentation of [Bing IndexNow getting started](https://www.bing.com/indexnow/getstarted) I found following information:
162+
163+
Use [Bing Webmaster Tools](https://www.bing.com/webmasters) to verify if
164+
your URLs are received by search engines.
165+
166+
## For developers
167+
168+
To prevent pages to be sent to IndexNow you can use event `ModifyPageUidEvent`.
169+
170+
Register your own EventListener:
171+
172+
```yaml
173+
MyVendor\MyExtension\EventListener\DoSomethingEventListener:
174+
tags:
175+
- name: event.listener
176+
event: JWeiland\IndexNow\Event\ModifyPageUidEvent
177+
```
178+
179+
Set page UID to `0` in event class:
180+
181+
```php
182+
$modifyPageUidEvent->setPageUid(0);
183+
```
184+
185+
This will prevent IndexNow to be informed.
186+
187+
## ToDo
188+
189+
There is a possibility to send ~10.000 update links in just one request. That
190+
would be much better than sending each URL one by one.
191+
146192
<!-- MARKDOWN LINKS & IMAGES -->
147193

148194
[extension-build-shield]: https://poser.pugx.org/jweiland/indexnow/v/stable.svg?style=for-the-badge

0 commit comments

Comments
 (0)