Topic: Class Switch

 
User
Gravatar
Joined: 2010-10-27
Posts: 4
First of all Hello World from down under in New Zealand

I've playing around with pyrocms and couldn't find a css switch so I've written a quick plugin for it.

Firstly Does one exists.
Secondly where can I upload it so everyone can use it

I've done a quick tut on my blog with the full code
http://www.kevinphillips.co.nz/news/pyro-cms-plugin/

All comments welcome but please DBAD

Happy codeigniting

Kevin Phillips (also known as Dollar Dad)
 
 
User
Gravatar
Joined: 2011-01-08
Posts: 40
hi Dollar dad!

Nice plugin there! to answer your question, you can submit your plugin via the add-ons section here on the site. or here's the direct link to it.

http://pyrocms.com/store/add
 
 
User
Gravatar
Joined: 2010-10-27
Posts: 4
Hi Jayson

Uploaded.

Hope I've crossed all the t's and dotted the i's OK

 
 
User
Gravatar
Joined: 2010-08-09
Posts: 2
Hi Kevin,

Nice little function. I was just wondering if there was a way that you could just access the alternator function from CI (http://codeigniter.com/user_guide/helpers/string_helper.html) to get your desired result.

Nathaniel
 
 
User
Gravatar
Joined: 2010-10-27
Posts: 4
Good point - I hadn't thought of that. I was actually looking to see if I could use PyroCMS on a project that I'm converting from another CMS.

I'll have a look but not tonight (I'm in New Zealand and it's well past beer O'Clock)

grin
 
 
User
Gravatar
Joined: 2010-10-27
Posts: 4
New version uploaded using the CI alternator function from the string helper

I've also uploaded it to GitHub

GitHub PyroCMS CSS Switcher