Name of the component: com_socialcontent
Introduction:
I need a wiki-like component that uses the Joomla content structure, plugins and editor.
1) Requirements
- Joomla 1.5
- separate component and or plugin (no hack of com_content please…)
- use of JCE editor previously installed on the site
- MVC
- use the existing content structure
- Jomsocial will be used to manage users. Any links to authors should go to jomsocial profile.
- if possible, use AJAX to make the component look and behave better in the front end
2) Database
- new table: #__social_content_version to store previous versions of articles
id, content_id, title, content, comment, author_id, date_created(date 0000-00-00 00-00-00), date_archived(date 0000-00-00 00-00-00), flagged(int)
- new table: #__social_content_sectionid to store allowed sections and categories
3) Front end access and limits
- Articles can be edited and created only in sections and categories specified by an administrator in the backend configuration tab of the component.
- Any registered user can create an article in those categories
- Any registered user can edit an article
- Any registered user can display a list of all versions for a particular article, display the article and select that previous version to become the new one
- If multiple users are editing the same article, the last one to save will have the current article, the other updates will be saved as versions. If multiple edits are happening at the same time, an alert should be displayed on the editor’s screen. No checkin/checkout.
4) Back end
- current articles will be managed as usual using Joomla’s article manager
- the component should allow us to view all the versions for all the articles, click on one to edit or unpublish (if unpublished, that version will not be visible in the front end) and make it the current article. The current article should then be saved as a version.
- a configuration to select allowed sections and categories
5) Front end Article creation
- should display allowed section, then AJAX allowed categories
- title
- content using JCE editor
- comment field allowing the author to comment
- author id (hidden)
- date (hidden)
- token (hidden)
6) Front end Article edition
- same form as above
- when saved, a copy of the current article will be saved in the version table then the changes will modify the article
- no checkin/checkout
7) Plugin displaying a list of the last 10 authors and link to versions
- A list of profile pictures linked to profiles (with names appearing when mouseover picture) will be displayed at the bottom of each article in the allowed sections.
- A link will take the user to a list of previous versions, let the user display any version in a different window, and select a version to become the current article (this will first save the article as a version)
- A link to flag that article. It will send an alert to administrator by email and add a flag in the database.
Go to www.dzsocial.com for an example of what I want. username demo, pwd demo123 if you click on “skydivepedia” you will have some categories and an example of a page
http://www.dzsocial.com/Skydiving-Gear/Gear/packing/packing-techniques_c97_m123.html . This site is not exactly what I want and full of hacks. Too messy. This is why I need a clean component instead.