Community « Discussion forum « Post your requirements here « I've upgraded, I love it, but I've got some questions «
Comment: I've upgraded, I love it, but I've got some questions
| << Previous | Next >> |
" Are there any example extensions which I can see to learn from, or documentation about creating extensions for YACS? "
The Internet has some non-written rules that everybody is supposed to enforce. One is that every CMS should have a plugin system. Well, maybe YACS departs from the main stream since it does not have such a thing.
IMHO plugins have the same characteristics than sand boxes: boundaries are clearly defined (i.e., programmers' job to create a plugin is quite easy), and boundaries are enforced (i.e., programmers may have to sweat a lot to implement not-foreseen features).
Can YACS be extended? Of course, it has even been designed for that. Here are some options for courageous, motivated and talented programmers as you are:
- For little things, consider to include your code into existing scripts. Please use the query form, or post an article with attached files, and I will integrate everything into the next release, naming you as one of YACS authors.
- To specialize pages you can implement the overlay interface. This is a kind of plugin interface that let you leverage on articles. Check overlays/overlay.php for more information. Also consider overlays/recipe.php as a practical experience of it.
- For huge things, create a new subdirectory, and drop your scripts in it. Bind these scripts to existing ones with hooks, where applicable. Check control/scan.php for more information on hooks.
- Regarding the geographical stuff, I have started to develop some scripts on my own. For example, my user profile (Bernard Paques) has a link to a location, and that location may be displayed in a map. The idea is that a page, or an user can be attached to any number of locations. Also, other scripts, maybe yours, could use this information to provide additional services. Please feel free to expand on that.
by Bernard on Mar. 10 2004
