Widget Numbers
- January 24, 2020
- 1 reply
- 1530 views
I have a project that creates pages from a template. Some of my fields are duplicated and not renamed, so I have multiple widgets of the same fields. I notice that when I delete pages, the widgets numbers adjust instead of remaining as they were. For example, the field 'NBI' is replicated. There are two instances on each page, and the template hosts #0 and #1. So my first page has #2 and #3, second page has #4 and #5, etc. If I delete page 1, the widgets on page 2 (which becomes page 1) become #2 and #3 instead of remaining #4 and #5.
Does this always reliably happen?
Furthermore, if I move a page around wih the thumbnails pane, the widgets do not renumber. This isn't expected from the users, but it's obviously possible...
I have a check box that hides the bottom photo, caption, and info. The photo and caption are unique fields, so no trouble there. I need to be able to also hide the info fields. If I know for a fact that the number system reliably works as I described it above, I can hide widgets numbered (page number*2 + 1). The problem is if the pages are moved, or if the system doesn't always number this way.
It does seem that the top fields are always numbered first sequentially, then the bottom fields. Is there a way to get a widget with the higher number on a page? I guess I could even go off the position the widget is in.
Any advice/direction would be appreciated.
