Skip to main content
Known Participant
April 25, 2024
Question

Session Variables List

  • April 25, 2024
  • 2 replies
  • 367 views

Is there a way to reorder the list of session variables under the Bindings tab. They appear to be in the order in which there were created. I would like to see them alphabetized.

I see no option for that.  And I can't find a file that lists them in which I could manually rearrange them.

 

This topic has been closed for replies.

2 replies

pabirdsAuthor
Known Participant
April 26, 2024

I was looking for a way to organize the list under the Bindings tab, so when I am selecting one from that list it is easier to find.  Apparently, that cannot be done.

Community Expert
April 26, 2024
quote

I was looking for a way to organize the list under the Bindings tab, so when I am selecting one from that list it is easier to find.  Apparently, that cannot be done.


By @pabirds

 

Unfortunately not. And unfortunately the bindings are found with the server behaviors that have not been developed in longer than DW itself which is in minimal maintenance mode so future updates are very unlikely. Depending on your level of comfort with code you may want to consider a variety of alternatives.

BenPleysier
Community Expert
Community Expert
April 25, 2024

Unfortunately, there isn’t a direct option in Dreamweaver to reorder session variables alphabetically under the Bindings tab. However, you can manually organize them by editing the source code.

 

To manualy reorder

  1. locate the section of your code where session variables are instantiated
  2. create an array to hold the variables and sort it
  3. then use a loop to output the sorted session variables

 

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Nancy OShea
Community Expert
Community Expert
April 25, 2024

Also specify if you want them sorted in ascending or descending order.

https://www.w3schools.com/php/php_arrays_sort.asp

 

Nancy O'Shea— Product User & Community Expert