You'll need to query your database and pull those records into the layout. Are you using PHP and MySQL?
I know how to create the table dynamically for a webpage. That's not the problem (and I'm using MySQL and PHP).
Let me explain perhaps a little better:
I created a floated panel for Dreamewaver, using this:
But the problem here is I can't fill dynamically the content. It seems that you are stuck to use only what is loaded between the body tags of the extension.
Is there a way to fill the extension panel dynamically ?
Absolutely positioned elements require set height and width values which negates any potential for dynamically expanding content. I wouldn't use that extension.
1 person found this helpful
You do not say which version of Dw you are actually using, as the documentation for creating extensions for Dw is for CS5/5.5 which is not the latest version. Anything after CS6 may work differently for what you are trying to do, and there is no real documentation available.
You could 'pull' the info from a database prior to Dw CC, but I would not recommend doing so for Dw CC or later as these did not have the Server behaviours installed as standard.
This unfortunately means that as you have found, you only have what is currently loaded into Dw. What you have to do is query the current document code and extract the info from that. From what I remember there are functions for getting, increasing and deleting table 'items', which are dom functions.
the ones I remember are -
If you look up these in the 'extending Dw' documentation that you link to, it should show you the related functions, arguments, and return values.
Maybe one of the extension developers will reply to your post and be able to provide you with more info.
I'm using Dreamweaver 2015.3 (and also the 2017 Beta version).
So far from what I found, the table insertRow, insertCell, ... aren't available in the extension's DOM. Again, to be clear, I don't ask to do it for the main HTML/PHP page. This is something I know how to do.
After reading some information here and there, I'm thinking that 'Floated Panels' are defined to contain 'static' data (like buttons to add things), but not to display a various amount of data, nor can it be styled.
Just found the workaround... Instead of adding content, you can use object.innerHTML to set the html code. You can't add, but can completely rewrite the data in the extension DOM.
Thanks all for your help
Glad you found a solution.
It may be worth checking what you are doing with the Brackets api and extension creation documentation -
The reason I mention this, is because it has been said in the Beta pre-release, that it is planned to include the ability to install extensions written for Brackets.
More than that I have no info on how this will be done, or on future compatibility for 'older' extensions. You could post a question in the Beta forum, and hopefully one of the Dw staff members will be able to tell you more.