Free Software Foundation!

Join now

Difference between revisions of "Free Software Directory:Features/Favorites"

From Free Software Directory
Jump to: navigation,
(added idea of how to work around security issue.)
(added info about collaboration extension)
 
Line 8: Line 8:
  
 
== Technical Details ==
 
== Technical Details ==
 +
 +
=== Solution #1 ===
 +
 +
We could use the [http://www.semantic-mediawiki.org/wiki/Help:SMW_extensions#Collaboration_extension collaboration extension] for MW.
 +
 +
=== Solution #2 ===
  
 
Upon clicking, it could trigger the {{#autoedit}} function in the background so the pagename they clicked is added to a template on a page below the User's page called Favorites, (e.g., User:Jgay/Favorites).
 
Upon clicking, it could trigger the {{#autoedit}} function in the background so the pagename they clicked is added to a template on a page below the User's page called Favorites, (e.g., User:Jgay/Favorites).
  
=== ToDo ===
+
==== ToDo ====
  
 
* Find a way of allowing properties to be set and queried on pages in the User: namespace, while maintaining the security of preventing arbitrary setting of properties on those pages that would make them queried as programs, along with other valid program entries. (Currently, properties set on pages in the User: namespace are not queryable.)
 
* Find a way of allowing properties to be set and queried on pages in the User: namespace, while maintaining the security of preventing arbitrary setting of properties on those pages that would make them queried as programs, along with other valid program entries. (Currently, properties set on pages in the User: namespace are not queryable.)
Line 19: Line 25:
 
* Implement the {{#autoedit}} function
 
* Implement the {{#autoedit}} function
  
== Appearance ==
+
==== Appearance ====
  
 
* Should it be called a "I use this" button?
 
* Should it be called a "I use this" button?

Latest revision as of 17:51, 8 December 2011


This is one of the proposed features to this site.

[edit] The Premise

We could create a button on the page of every entry so that people can favorite them. This would allow users to share interesting programs with one another.

[edit] Technical Details

[edit] Solution #1

We could use the collaboration extension for MW.

[edit] Solution #2

Upon clicking, it could trigger the {{#autoedit}} function in the background so the pagename they clicked is added to a template on a page below the User's page called Favorites, (e.g., User:Jgay/Favorites).

[edit] ToDo

  • Find a way of allowing properties to be set and queried on pages in the User: namespace, while maintaining the security of preventing arbitrary setting of properties on those pages that would make them queried as programs, along with other valid program entries. (Currently, properties set on pages in the User: namespace are not queryable.)
    • One such solution would be to re-enable querying on pages in the User: namespace, but to make sure that all normal queries exclude the User: namespace from their results.
    • We could set up a cron job to do a search and replace on the whole site that would append "[[:+]]" to every instance of "{{#ask " (so they would only display results from the empty namespace, i.e. the location of every valid program)... and then insert it into concept pages.
  • Implement a template for holding the data
  • Implement the {{#autoedit}} function

[edit] Appearance

  • Should it be called a "I use this" button?

[edit] Developing the feature

Right now, Jgay and sudoman are thinking about this. If you have any ideas about how we could implement this, please get in touch with sudoman or jgay by leaving a message on our talk pages, or on IRC (irc.freenode.net).




Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.


Personal tools

Variants
Actions
Navigation
Contribute