Change destinationId of snippet
Hi all,
I have problem with changing destinationId of snippet.
I can get all properties: id, type, src, name except data. (I can get id by controller.config.id, type by controller.config.type, but if i use controller.config.data, it returns undefined). My need is changing destinationId in data.
My config for snippet:
snippets: [{
id: 'snippet_logon',
type: 'SNIPPETS',
filename: 'config/window.xml',
name: 'Track',
src: 'source/snippet.js',
data: {
destinationId: 'section-logon'
}
},
...in my code:
if (crit) {
change destinationId to 'section-upgrade';
}
If you know, please help me. Thanks so much.
by
1 Reply