Last modified: 2009-08-01 17:44:05 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 T19376, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17376 - Option to suppress attribute links in result tables of #ask
Option to suppress attribute links in result tables of #ask
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Highest enhancement with 1 vote (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-06 00:49 UTC by Christian Illy
Modified: 2009-08-01 17:44 UTC (History)
1 user (show)

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


Attachments

Description Christian Illy 2009-02-06 00:49:19 UTC
Normally SMW puts links to the attribute-pages on the caption of the columns in a result table of an #ask-query. I would like to disable this behaviour which seems to be impossible.

Example:
http://studienfuehrer.etv-darmstadt.org/Personenübersicht
The column header "Position" links to the page "Attribut:Position". I only want the "Position" to show up but
without the link on it.

Is there any way to achieve that yet? Would it require a big patch? (Would try to fix that myself if I at least knew where to look at in the source ...)
Comment 1 Christian Illy 2009-05-22 21:34:49 UTC
Not even a reply stating there's no chance to get such a feature? :(
If you could at least point me to the place in code I'd have to look at in order to do that myself I'd be quite happy ;)
Comment 2 Dan Bolser 2009-05-25 16:02:51 UTC
Hi, I'm just searching for any logs relating to a similar bug (the properties of type page are also linked, but you can fix that if you set 'link=none', however, unlike most options you can't set it 'link = none'). Anyway, the only option is to generate your own tabular output using a template. I wrote a 'howto' for this on smw.refereata.org:

http://smw.referata.com/wiki/Use_the_ask_template_format_to_create_tabular_output


Sadly I don't know where to point you in the code (I just spent 30 mins looking for the spot to fix the above problem). Its a real shame SMW isn't better at attracting developers, as I think its an excellent project with lots of latent talent among its users. http://producingoss.com/ ;-)

HTH,
Dan.
Comment 3 Christian Illy 2009-05-26 09:52:07 UTC
Hi Dan,

thanks for the reply. I know about the template way but unfortunately that's very undynamic since I'd have to write one template per table (or at least for each different number of columns or a template with many #if's for every possible number of columns ;) ).

If there's no other input from the devs who actually know about that specific part of SMW I'll just have to trace the code somehow myself. Just hoped that this idea would be welcomed here so I would just have to wait for the next release ;D

Regards,
Chris
Comment 4 Dan Bolser 2009-05-26 12:48:23 UTC
did you try:

|?position = hello


In your ask query? I went to go try that but the page seems locked down.


Else it shouldn't be too hard to track down where the link gets added in the code. (If you find it, I'd be interested to know where). 


Cheers,
Dan.
Comment 5 Christian Illy 2009-05-27 20:35:57 UTC
Hi Dan,

tried that. Unfortunately that really only changes the caption and doesn't affect the Link on it.

Will see if I can find that piece of code on the weekend.


Regards,
Chris
Comment 6 Markus Krötzsch 2009-08-01 17:44:05 UTC
Fixed in SVN: #ask queries now can be given the parameter "headers=plain" to get unlinked property names. This also works in lists. The parameter "headers" existed already, with possible values being "show" (default) and "hide".

Extensions may not respect the new setting yet, but the code change should be compatible to existing code such that "plain" behaves like "show" in output formats that are not aware of the change.

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


Navigation
Links