-
How to call a particular template for the second time, after the screen was scrolled?
The Composer UI for the configuration of the Show template card forces you to set view ID.
This will work in case you want to show the template every X-amount of records in the RecyclerView with one exception: not more than one template on the screen can be shown.
With extending the
ShowTemplateController.showAPI it will be possible to show several templates on-screen inside the RecyclerView.If you are not using the
ShowTemplateController.show(...)method and manage the loading of the template inside a web view by yourself, then this exception is not applicable. -
Is it possible to call two templates on a single screen and how can you identify the web views?
Setting the ID for the view inside the layout is obligatory if you want to do anything with this view. Also, the ID must be unique inside the layout. After this is done, you can assign this ID in the Composer UI to the event. It's possible to use the same ID for several Show template events.In a single screen, there can be multiple places where a Piano template can be shown. It can be shown as a sticky banner at the bottom, at the top, inline between two article descriptions, etc.