github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jpemberthy / radiant-employees-directory

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 3
    • 2
  • Source
  • Commits
  • Network (2)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A Radiant extension that adds employees management. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

new links. 
jpemberthy (author)
Wed Nov 11 06:41:36 -0800 2009
commit  d606ae6856b33aa49be67a44200895a138c0f1c0
tree    d8572bab3ac4bfd0a45b081bdf2adde0dd4b719c
parent  b1c40b4ac178b1fc1e4ba5e103e78379fbc3c150
radiant-employees-directory /
name age
history
message
file README.md Loading commit data...
file Rakefile
directory app/
file cucumber.yml
directory db/
file employees_extension.rb
directory features/
directory lib/
directory public/
directory spec/
README.md

Employees

About

A Radiant Extension by Martian interactive that adds employees management. Employees have name, email, profile, extended profile and more fields.

Demo Application

There is a demo application that's running online, don't worry to mess up the database, it's is recreated every hour.

You can login to the admin section with the Radiant's default username/password.

username: admin
password: radiant

Installation

Before you install employees ensure you already have installed the following extensions: page_attachments and share_layouts

After installing the page_attachments extension, you should configure it to properly work with the employees extension (basically it's about the icon and thumbnail features), this is an example of how your page_attachments.rb file should look like. Now that you have a valid page_attachments setup you can install the employees extension:

cd /path/to/radiant
git clone git://github.com/jpemberthy/radiant-employees.git vendor/extensions/employees
rake radiant:extensions:employees:migrate
rake radiant:extensions:employees:update

Don't have git? Download the extension as tarball

Restart your server, and there will be a new tab called "employees" in the admin interface, and a new page "employee_template"

Managing Employees

From the new tab "employees" under admin, you will be able to create and update employees, by default when you are rendering a collection of employees they are ordered by the show_order attribute, but you can override this by using the defaults Radius tags, that will be described later.

The extension has a controller to render dinamically an employee from the public side, the convention is to use this path: /employees/employee-first_name-last_name and the contents will be render based in the employees_template, You can specify the layout you wish to show with the employee information, to do that, please edit this line in the non-admin employees_controller:

radiant_layout 'your_site_layout' #put here your public layout name.

To set a profile image for an employee, please upload it as attachment from the admin section and set the description name as: profile. This image will be resized to be used as icon, thumbnail and profile_image.

Usage

The employees collection tag, options:

  • container either "table" or "list".
  • order by default is set to "show_order", but you could use, "first_name", "last_name" ...
  • employee_type either "regular" or "manager", by default is set to "regular".

Examples:

Renders a short description of the employees using a thumbnail. 

<table class="employees">
    <tbody> 
      <r:employees:collection container="table">
        <r:face_profile /> 
     </r:employees:collection>
    </tbody>
 </table>

Renders a list of named based links that redirects to the individual employee view.

<ul class="employees">
  <r:employees:collection container="list" order="first_name" employee_type="managers">
    <r:name_link />
  </r:employees:collection>
</ul>

You can find these tags inside the employee_tags.rb file, you can easily edit or create new employee_tags according to your needs.

Contributors

These people have contributed patches that have been added to the extension:

  • Sergio Bayona
  • Juan Esteban Pemberthy

Todo

Tests.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server