Last modified: 2010-07-20 15:48:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26461, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24461 - Default Page= functionality
Default Page= functionality
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-20 12:55 UTC by Neill Mitchell
Modified: 2010-07-20 15:48 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Neill Mitchell 2010-07-20 12:55:14 UTC
I think it would be great if you could specify a default page for a property.

Here is an example of the usefulness:

I have a property of type page called "Company History". This is where a person enters the names of all the companies they have worked for e.g. BT, Avaya, Symbian, Nokia.

Now at the moment when a person clicks on one of these it is a red link. So is a dead end.

If you had default=page set for the property, instead of a red link, the user would be taken to a page that then performed some useful query. e.g.:

{{#ask:[[Category:People]]
[[Company History::{{PAGENAME}}
|? First Name
|? Surname
|? Email
}}

This would return a list off all other people in the system that had also worked for the company. So if they click on Nokia, it would return all people who had worked for Nokia.
Comment 1 Neill Mitchell 2010-07-20 13:00:31 UTC
Just to clarify. For the above example, the Company History property definition would look something like:

This is a property of type [[Has type::Page]].
[[Has default page::Company History Query]]

Company History Query would be the page with the above query in it.
Comment 2 Yaron Koren 2010-07-20 13:04:37 UTC
How would the user be able to create the page, then?
Comment 3 Neill Mitchell 2010-07-20 13:12:06 UTC
The page would not be created on the fly. The site owner would just simply create the desired default page manually once. In the example above you would have the page Company History Query and the page would contain:

{{#ask:[[Category:People]]
[[Company History::{{PAGENAME}}
|? First Name
|? Surname
|? Email
}}

So clicking on any of the property values (Nokia, Avaya, Symbian etc) would take you to that pre defined page. The query is run and hey presto - useful information is obtained :)

At the moment I have to do this manually. Every time a person puts in a new company name I have to go and manually create the page with the exact same query in it. Obviously this is far from ideal!
Comment 4 Yaron Koren 2010-07-20 14:45:43 UTC
Okay - this may or may not be a good idea for a feature, but in any case it doesn't seem related to forms or Semantic Forms; you'd probably need a new extension for it. I'm setting this to "invalid".
Comment 5 Neill Mitchell 2010-07-20 15:30:59 UTC
So not similar functionality to SF's "has default form" or "populating red-linked pages automatically"?
Comment 6 Yaron Koren 2010-07-20 15:42:42 UTC
It's similar - except that it doesn't use forms. :P
Comment 7 Neill Mitchell 2010-07-20 15:48:00 UTC
At the risk of not wanted to end up in a discussion in bugzilla, I would say that as absolutely all the data is being entered using SF's, it would be a useful addition to the functionality of the module :) I'll ask around and see if anyone can help write this.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links