karh
June 27, 2022, 9:15am
1
Whenever I’m developing (NodeJS), depending on the page, I have either content.
bindings or view.
bindings.
It is probably related to which layout page I’ve included, what is happening behind the scenes?
On one content page, using console:
Then on another one:
bpj
June 27, 2022, 9:16am
2
On the pages where it’s view, does the content View node on the layout page have an id?
1 Like
karh
June 27, 2022, 9:22am
3
It did not.
Just added the id content
and that seems to work. Mystery solved
It’s nice to have it consistent everywhere
1 Like
karh
June 27, 2022, 9:24am
4
@bpj making sure each layout has the id ‘content’ and then ‘find + replace’ across all content pages should keep everything functional right?
Or am I missing something…
I see there’s so many bindings like this, would hate to break my entire app. (Don’t have extensive testing set up yet )
Teodor
June 27, 2022, 9:27am
5
Just don’t change the default view ID, which is used on your layout page if you want to access it like dmx.app.data.content
.
bpj
June 27, 2022, 9:28am
6
Should be fine. I would suggest that you make it find "view.
for the replacement (including the quotation mark) just to rule out where the word view might be part of a word or other binding. The dot on the end makes sure it is part of a binding phrase rather than an id itself
1 Like
karh
June 27, 2022, 9:28am
7
Ah okay thanks, then I must’ve done that ages ago and never realised. But still use that layout regularly
karh
June 27, 2022, 9:29am
8
Thank you
That would not catch everything though, but I got VScode to help me replace carefully
bpj
June 27, 2022, 9:30am
9
Ah. Didn’t realise you bound some with braces…