-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello Robert,
Robert Myhren wrote:
| Hi, I am using midcom and its working great. | However, I have a couple of unsolved issues that I was hoping | that somebody could help me with! | | First, I want some articles to contain the extract of a MsSQL db. | This is not a problem using ODBC, but how do I implement the php-code | in articles? | Or is this not possible, do I need to use pages? | I am using taviewer.
You can store PHP anywhere you like but you need to tell taviewer style (<(show-article)>) that it must parse content as PHP (i.e. &(view['content']:p);). Also, I would suggest to use another content field so that you don't have to mix PHP and actual text content. (Use article's abstract for example.)
If every taviewer article should obtain something from external DB. You could write that code to the <(show-article)> style element directly. Then you don't have to copy-paste the code around articles.
| Second, I send a mail some days ago, about styles not changing. | This turned out to be my fault(of course), as the pages where cached | and I was in turn looking at old pages. | The reason I did not detect this was because all site elements from the | midcom template, quite clearly said that caching was turned off by default. | My question is now, how do I turn off this bloody caching.
Try the following at your <(code-global)> page element:
...
// BEGIN MIDCOM INITIALIZATION
if (!$midcom_site['initialization_failed']) {~ //Cache disabled ~ $midcom_helper__cache_disable=true; ~ global $midcom_helper__cache_disable;
...
| Robert
Cheers!
~ //Henri
- -- Henri Kaukola [EMAIL PROTECTED] Consultant Tel: +358-20-198 6037 Nemein Oy http://www.nemein.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAIfon3xWc2AolrKgRAnibAJ9IP1rwt+qRVYoUnX9yGOrXPGq0pgCghBJ9 K9xn0C0D3UwQpV+j5SIQ5zY= =05rY -----END PGP SIGNATURE-----
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
