# "Wanted Pages" feature

**URL:** <https://forum.xwiki.org/t/wanted-pages-feature/9892>\
**Category:** Help / Discuss\
**Created:** [February 23, 2022, 9:39pm UTC](https://forum.xwiki.org/t/wanted-pages-feature/9892 "2022-02-23T21:39:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SightSpirit](https://forum.xwiki.org/user_avatar/forum.xwiki.org/sightspirit/32/4070_2.png) [@SightSpirit](https://forum.xwiki.org/u/SightSpirit)\
**Post date:** [February 23, 2022, 9:39pm UTC](https://forum.xwiki.org/t/wanted-pages-feature/9892/1 "2022-02-23T21:39:29Z")

</div>

This might be a long shot, but I figured I would ask.

MediaWiki has a core functionality that implements a special page populated with a list of “wanted pages”: titles of pages to which links exist but which don’t actually exist yet themselves. This is great for seeing what kinds of content may still need to be created.

I am wondering if there is a way to get this functionality in XWiki. MediaWiki can do it pretty easily because it maintains a robust [set of database tables (7 of them)](https://upload.wikimedia.org/wikipedia/commons/9/94/MediaWiki_1.28.0_database_schema.svg) specifically for tracking links. XWiki has a single links table, and while I did see records in it for links on my wiki to pages that haven’t been created yet, I am unsure if the database can be used to tell if the page exists. (Perhaps by joining the xwikidoc table?)

This sounds like something for an extension to do, but I am wondering if such an extension would even be possible (let alone simple) to make.

This feature would be super helpful for me personally as I start to populate my wiki with pages, before we even go into production.

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [February 24, 2022, 9:04am UTC](https://forum.xwiki.org/t/wanted-pages-feature/9892/2 "2022-02-24T09:04:48Z")

</div>

What you describe does not exist out of the box AFAIK.

> [@SightSpirit](#):
>
> I am unsure if the database can be used to tell if the page exists. (Perhaps by joining the xwikidoc table?)

Yes, a request combining the link and document tables should be able to find links to not existing pages.

> [@SightSpirit](#):
>
> This sounds like something for an extension to do, but I am wondering if such an extension would even be possible (let alone simple) to make.

Does not sound very complex to do. At least listing the links should not be too hard since it should be a single database query.

---

<div class="post-metadata">

**Author:** ![SightSpirit](https://forum.xwiki.org/user_avatar/forum.xwiki.org/sightspirit/32/4070_2.png) [@SightSpirit](https://forum.xwiki.org/u/SightSpirit)\
**Post date:** [February 24, 2022, 2:38pm UTC](https://forum.xwiki.org/t/wanted-pages-feature/9892/3 "2022-02-24T14:38:26Z")

</div>

Alright, I’ll go ahead and see what I can do. Thanks for the advice!

---

<div class="post-metadata">

**Author:** ![SightSpirit](https://forum.xwiki.org/user_avatar/forum.xwiki.org/sightspirit/32/4070_2.png) [@SightSpirit](https://forum.xwiki.org/u/SightSpirit)\
**Post date:** [February 28, 2022, 2:26pm UTC](https://forum.xwiki.org/t/wanted-pages-feature/9892/4 "2022-02-28T14:26:48Z")

</div>

Good news! I managed to get a working version of this on my wiki!

 ![wanted pages](https://forum.xwiki.org/uploads/default/original/2X/e/e46a7bf85b0d5e0484af9ce699cd68c53231386a.jpeg)

I am currently trying to release it as an extension and would appreciate some assistance. I created [a topic](https://forum.xwiki.org/t/new-contrib-extension-wanted-pages/9919) in the Development category for that.
