Fork me on GitHub

OpenTable() vs. output->TableStart() ???  Bottom

  • :!: First off please excuse my ignorance here, but I really don't know much of squat about PHP coding.

    :arrow: I have downloaded and installed the PhotoShare module and I am trying to customize it so it will fit in with the style of the rest of my site. I'm currently using modified versions of the XpZone themes. Every module that I've tweaked uses the OpenTable() function to draw tables and the look of them are controlled by the themes. However, it appears that PhotoShare requires me to use the output->TableStart() instead. The problem here is that the table that is rendered is not controlled by each theme and instead needs to be "hard coded" in the module itself.

    :?: Is there anyway the get the tables rendered by output->TableStart() to be controlled by the Themes in PostNuke?
  • I'm not an expert on Modules either, but output->TableStart() is part of pnHTML (found in includes/pnHTML.php), which was supposed to make it easier and more convenient to render HTML from a module, at least for coders. Trouble is, it rather limits what you can do and renders terribly messy HTML output. TableStart simply starts a table, it's not the Opentable, just a plain HTML table. When using the pnHTML system, the OpenTable is called elsewhere, and the output is themed. This system will be superceded in upcoming versions of PN, though they will still support it.

This list is based on users active over the last 60 minutes.