renobird Posted October 8, 2012 Share Posted October 8, 2012 There may already be a method or module for this, but I can't seem to find either. I'm looking for a way to embed a slideshow in TinyMCE from images uploaded in PW. Any ideas? Link to comment Share on other sites More sharing options...
MarcC Posted October 8, 2012 Share Posted October 8, 2012 A variation of Ryan's subsitution code for videos or embeds would probably do the trick. You could type "gallery" on its own line and your template logic could find & replace that with an actual gallery of your choosing. Or is this some different type of thing I'm not understanding? 1 Link to comment Share on other sites More sharing options...
Pete Posted October 8, 2012 Share Posted October 8, 2012 I like Marc's idea as then you could have a field called gallery that could be a multiple image inputfield and you're away 1 Link to comment Share on other sites More sharing options...
renobird Posted October 8, 2012 Author Share Posted October 8, 2012 You both have it exactly right. I'll take a a look the video embed module and see if I can mod it to work. Thanks Link to comment Share on other sites More sharing options...
renobird Posted October 8, 2012 Author Share Posted October 8, 2012 Well—not surprisingly—that's a bit over my head. Link to comment Share on other sites More sharing options...
MarcC Posted October 8, 2012 Share Posted October 8, 2012 Simplest version of Ryan's code for this (that I've found): http://processwire.com/talk/topic/860-videos-inside-processwire-how-to-embed-videos-inside-processwire/#entry7280 The nice thing is, you wouldn't need to use preg_replace and some crazy regex. You'd just need to replace the preg_replace function with str_replace. For this reason I'd recommend using some special word rather than just "gallery". Maybe "renobird" or something. More of Ryan's code: http://processwire.com/talk/topic/1768-video-embed-fro-youtube-vimeo-etc/#entry16447 (in case it's helpful) 1 Link to comment Share on other sites More sharing options...
renobird Posted October 9, 2012 Author Share Posted October 9, 2012 Thanks Marc! I think that would do it. I'll report back on what I come up with. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now