Jump to content

Recommended Posts

Posted

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?

Posted

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? :)

  • Like 1
Posted

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 :)

  • Like 1
Posted

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

:)

Posted

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)

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...