Wordpress-like Shortcodes using CI |
[eluser]Mantero[/eluser]
how do we create a shortcodes using CI? I want to make something like this: [list type=plus] -list 1 -list 2 -list 3 [/list] so the view will display a list with a 'plus sign' as a bullet(yeah the plus sign will be use css for sure) but if use shortcode like this: [list type=yes] -list 1 -list 2 -list 3 [/list] this will display a list with 'yes/right' sign.. anyone know how to do this? this implementation just like a wordpress shortcode
[eluser]Mantero[/eluser]
I've found a great library that implement the basic thing using shortcodes http://ellislab.com/forums/viewthread/166197/#862175 but my problem is I don't know how to alter the library to allow me to use an opening and closing tags, and have something within the tags, just like my example above
[eluser]umefarooq[/eluser]
Hi hope this library can help you to solve your problem you can download from this link https://github.com/umefarooq/codeigniter-decoda you can read documentation for decode from here http://milesj.me/resources/script/decoda if have ported decoda for CI
[eluser]Mantero[/eluser]
hey umefarooq! thanks for that! will try those now thanks a lot! |
Welcome Guest, Not a member yet? Register Sign In |