Question

I've developed a module which allows the user to upload images to a little gallery widget. When they upload the pics through the admin panel then can also assign which page the image appears on. This all works fine and I have a table in database referencing page IDs with image IDs. The bit I'm not sure about is how to pass the page ID to the plugin so it can display the correct images.

What would be the best approach/syntax here? I'm imagining something like this :

{{ gallery:render id=this_page_id }}

where this_page_id would be the unique ID of the page. Can anyone point me in the right direction?

Cheers, Phil

Was it helpful?

Solution

Solution provided via the @PyroCMS Twitter account -

{{ gallery:render id=page:id }}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top