Last modified: 2014-01-13 20:58:15 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 T54439, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52439 - [SD] Inject Header and Footer
[SD] Inject Header and Footer
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SemanticDrilldown (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-02 06:00 UTC by planetenxin
Modified: 2014-01-13 20:58 UTC (History)
0 users

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


Attachments
First Patch (footer text not yet implemented) (2.49 KB, patch)
2013-12-19 15:39 UTC, planetenxin
Details

Description planetenxin 2013-08-02 06:00:06 UTC
User Story:

As a user I'd like to be able to add new pages to a category directly from the categories Special:BrowseData page. The workflow would look like this:

1) Drilldown to see if a page exists
2) If the page does not exist, add it e.g. through #forminput

---

My first idea was to inject something like a "header text" the same way 
the page tile could be set:

[[Has drilldown header text::{{ #formlink:form=Person|link type=button }}]]

or better:

[[Has drilldown header text::{{ sometemplate }}]]

The text should be shown below the title as a lead text for the page.

---

A Category page could look like this:

[[Has filter::Filter:Start Date| ]]
[[Has filter::Filter:End Date| ]]
[[Has filter::Filter:Status| ]]
[[Has display parameters::?Start Date;?End Date;format=table| ]]
[[Has drilldown header text::{{ #formlink:form=Project|link type=button }}]]
[[Has drilldown footer text::This fancy drilldown page has been brought 
to you by wikiworks]]
Comment 1 planetenxin 2013-08-07 15:15:09 UTC
Some thoughts by Yaron discussed offline:

Well... it's kind of weird to say it, but one possibility is that maybe SMW special properties shouldn't be used at all for SD's value storage.
[16:53:48] Yaron Koren: Creating new special properties brings with a lot of overhead, that may not be necessary.
[16:54:09] Yaron Koren: This is somewhat, though only slightly, tied in with that SD proposal I sent out.
[16:54:48] Yaron Koren: But MediaWiki has its own property-storage system, "page props", that may be better suited for this kind of thing - and if I had fully known about it when I first created SD, I may have just used that.
[16:56:10] Yaron Koren: The idea is that, instead of using property tags, there would just be a call to a parser function like "{{#define_category_drilldown:filters=Start date,Status|header =...|footer=....}}".
Comment 2 planetenxin 2013-12-19 13:10:19 UTC
The 'drilldown header text' could be inserted in SD_BrowseData.php > function getPageHeader() below this line...

$header .= '                            <div id="drilldown-header">' . "\n";

... right before the filter-specific messages/output is printed.
Comment 3 planetenxin 2013-12-19 13:31:55 UTC
In SemanticDrilldown.php > function sdfInitProperties() add
   SD_SP_HAS_DRILLDOWN_HEADER_TEXT => array( '_SD_HT', '_str' ),
   SD_SP_HAS_DRILLDOWN_FOOTER_TEXT => array( '_SD_FT', '_str' ),
to array $sd_property_vals.

Add SD_SP_HAS_DRILLDOWN_HEADER_TEXT and SD_SP_HAS_DRILLDOWN_FOOTER_TEXT to the languages/SD_LanguageXX.php files.
Comment 4 planetenxin 2013-12-19 15:39:20 UTC
Created attachment 14136 [details]
First Patch (footer text not yet implemented)
Comment 5 planetenxin 2014-01-13 20:16:12 UTC
#formlink/#forminput could be injected in an introtemplate using the template format. With #29463 fixed, we could combine the template format with other result formats.
Comment 6 Yaron Koren 2014-01-13 20:58:15 UTC
Removing dependency - these issues are not necessarily fixed in the same way.

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


Navigation
Links