Subrion

Discussion in 'Subrion CMS Plugins Discussion' started by dstemper, Jan 20, 2009.

  1. dstemper

    dstemper Member

    Subrion api?

    Is there a API or something that would show me how to make my own plugins for Subrion. I desire a testimonial plug-in, although I am not sure how easy or hard it would be. I would like to try and make it.
    Last edited: Jan 20, 2009
  2. Vasily_B.

    Vasily_B. Project Manager

    Hi David,

    Well, unfortunately we don't have the API yet. Though we do update our local API documentation from time to time. Anyway, it will not be available for the next few months

    Here is the quick solution for you.

    1. Make a copy of news plugin and upload to plugins directory using name - testimonials

    2. rename:
    news.php -> testimonials.php
    admin/manage-news.php -> admin/manage-testimonials.php
    templates/testimonials.tpl

    3. Open install.xml , find and replace
    'news' -> 'testimonials'
    'News' -> 'Testimonials'

    4. Do #3 operations for testimonials.php, admin/manage-testimonials.php, templates/testimonials.tpl files

    Your first plugin is ready :) Just make some changes in testimonials.tpl to make it look more similar to testimonials and that's all :)

    Let us know if you need extra functionality here
    kadyr.atakhanov likes this.

Share This Page