Does anyone know if there is some way to place a section or item onto a Dynamic page without that section or item appearing on all the Dynamic pages of a data set? Kind of like detaching a master but for elements on a dynamic page.
I’d love to add a layouter slider under the pro gallery i have on some of my dynamic pages in my portfolio dataset, but it’s adding that to all pages.
Is there a setting or option somewhere that can make the section or element unique to each page?
@flood-jesse Hi, yes posibble with code.
Code example:
import wixLocation from ‘wix-location’ ;
$w . onReady ( function () {
let path = wixLocation . path
path [ 0 ] === ‘project-name-eight’ ? $w ( ‘#layouterSection’ ). expand () : $w ( ‘#layouterSection’ ). collapse ()
});
‘project-name-eight’ - the title of the dynamic page.
$w(‘#layouterSection’) - the section in which the layouter will be.
make sure you set the section with the layouter as collapsed through the code editor.