Friday, November 22, 2013

Loading element on-the-fly in article/posts with bbcode

Hi all.

I am wondering, does anyone have a suggestion on how to approach loading of element in regular posts?

I am looking at "BBCODE style" loading of element to display example a slideshow.

example; I need to load slideshow with id=1 in my post. I have an element, load-slideshow.ctp where I can insert id, and correct slideshow loads.

Now, I want to be able to load, in my wysiwyg editor, [Slideshow=1]my awesome slideshow[/Slideshow], and this load the element and display the slideshow.

Any suggestions how to do this? Howtos or any other suggestion? 

Thanks!

-Tom

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: