Currently I use layout names for navigation. The layout names are entered in a global repeating field. I have one script that includes a go to layout name by calculation. Each button includes a script param that indicates which rep to use when the button is clicked ie which layout to nav to. Works like a charm. The only thing is, while simple, this method does require some maintenance should a layout name be changed.
So I thought, if I was to use layout iternal IDs for naviagtion instead of layout names, there would be no need for any maintenance at all save for the initial entry of IDs.
I can derive the layout IDs but the tricky part is the Go to Layout script step. There is no way to specify to go to LAYOUT ID by calculation.
Keep in mind, I am talking about Layout IDs, not layout numbers.
Any ideas?
LayoutID for Navigation
3 posts
• Page 1 of 1
|
|
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am |
Well since you can test for layout IDs, you could loop to see if the current layout ID matched the desired one, but that is kind of lame.
We used to use layout numbers because in FM6 you could not change the sort order of layouts while a File was served, so these changed less than layout names. We're using layout names now and I think that is about as good as it gets, but I'd be interested to hear what others think. John Sindelar
SeedCode |
|
John:
Thanks for replying. At present I do agree with you about layout names being the best option, and as I said before, that is my curren methodology. This may all be mute anyway since the calc I am using to calculate the ID can't be stored. Think about it; I would have to go to the layout to get the the ID and that defeats the purpose. I am a terrier though so I may just come up with an answer yet |
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests