How can I allow end users specify a query in Contribute or Dreamweaver?
March 3, 2009 2:43 PM
Subscribe
How can I set up a Dreamweaver Template so that a user can enter a variable to get a custom recordset?
I hand roll my Web pages, but there is a Dreamweaver site which has much database driven content. Many users will be updating it either in Dreamweaver or in Contribute. This is in .asp classic. There are panels that get recordset data from a table. I would like for a user to be able to add a record id into an editable region of the template so that he or she will get the correct query results without having to go to bindings, or any tasks more complicated for the average user. They know the record ids so they can copy and paste.
What I am looking for is an end user - even in contribute creating a page from a template, adding a number in the recordid editable region so that the query queries the database for the correct data.
Now of course, I *can* use the urlstring, - "page.asp?recordid=2" for example, but it is also a requirement that the .asp pages be named normal names (newyorkoffice.asp, somothercityoffice.asp) etc., etc.
I would assume this is easy, you can make a meta tag as editable, but for some reason, I am at a loss on how to do this. Nothing shows up in Google, is this possible, should I be looking for other alternatives. Keep in mind that since the site is in DW and the db is SQLServer and there is a huge .asp classic codebase, even if it isn't the most elegant solution, if there is a way to NOT re-jigger the entire site from scratch, I am all for it.
posted by xetere to computers & internet (6 comments total)
In other words your page would have something like
<form action="whicheveroffice.asp">
Record ID: <input type="text" name="recordid">
<input type="submit">
</form>
... which on submitting the form would be (for your purposes) equivalent to directly calling whicheveroffice.asp?recordid=(whatever they put in the text field).
posted by ook at 3:00 PM on March 3