Is there a way I could reverse the list ordering so the most recent log entries are output at the top. I'm not sure what other applications this could be used for, but I think this reverse functionality would be a good 'log' tag parameter addition.

***** Update: Found one way to do this with php - found it on a php.net manual note.

That is an innovative way of using both the 'message' editable region as well as the log tag

There are a couple of points that bother me though -1. The log will eventually grow large enough to cause performance issues.2. I am not sure whether you noticed this but the output of the 'message' type editable region is not dynamic - i.e. even if the log changes the output will not reflect this until you access the template via the browser as super-admin (at which point the region re-reads the log to get the modified data).

To handle the first problem, I think we should save the keywords in the proper database within a table and then query it from within the admin-panel to show the values.

In the snippet above we are declaring the 'default_data' parameter as dynamic which means that this field, instead of containing static data, will contain the name of a snippet. Couch will execute this snippet to dynamically get the data and then put the data within 'default_data' evertime the admin-panel is accessed.

If you are wondering what this 'default_data' parameter is, it actually is any value that is enclosed within the opening and the closing tags of the editable region.You can see that we are enclosing the name of a snippet 'product-search.htm' within the tag pair.

This is the snippet that Couch will execute every time it has to output the value of the region.Next we create this snippet named 'product-search.htm' and place it within 'couch/snippets' folder (the usual place for storing snippets).

When I posted this I was actually unaware that it wouldn't show new data until I accessed the template. I ended up stumbling upon that fact a few hours later, so I'm glad you spotted that issue before I mentioned it. With regard to the log file size, I added a few lines of php to remove the time-stamp and empty lines, then save to the log file. This should slow down the file size growth a bit. I can always just clear the log file if the need arises. For now this method is perfectly adequate, and I will investigate the database route if this changes. Your suggestions worked perfectly, thank you KK.

Hi! KK i was trying the solution you gave to make a region dynamic using dynamic='default_data' i´m trying to create an option with popup edit that allow users to select from a dropdown list a folder of blog.php template to display posts from, it works well if i´m logged in as super-admin but when logged in as administrator the newly created folders are not displayed, is there any way to meke it work for administrator users?