Last modified: 2010-07-20 15:48:00 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.
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.
How would the user be able to create the page, then?
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!
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".
So not similar functionality to SF's "has default form" or "populating red-linked pages automatically"?
It's similar - except that it doesn't use forms. :P
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.