New problem found.
I tried to make a structure like this:
Code: Select all
<h1>DOCUMENTS</h1>
{{{expand}}}
<h2>Optional</h2> //hidden
{{{PLUGIN:wdir('downloads', '*.pdf');}}}
<h2>Mandatory</h2> //hidden
{{{expand}}}
<h3>Document 1</h3> //hidden
{{{pdfviewer("document-1.pdf");}}}
<h3>Document 2</h3> //hidden
{{{pdfviewer("document-2.pdf");}}}
<h3>Document 3</h3> //hidden
{{{pdfviewer("document-3.pdf");}}}
Doing this I get
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 69632 bytes) in /Users/msereday/Sites/Zusnobela/cmsimple/functions.php on line 1471
Any hint how to avoid this?
Another problem:
I have changed the structure to:
Code: Select all
New problem found.
I tried to make a structure like this:[code=php]<h1>DOCUMENTS</h1>
{{{submenu();}}}
<h2>Optional</h2> //hidden
{{{PLUGIN:wdir('downloads', '*.pdf');}}}
<h2>Mandatory</h2> //hidden
{{{expand}}}
<h3>Document 1</h3> //hidden
{{{pdfviewer("document-1.pdf");}}}
<h3>Document 2</h3> //hidden
{{{pdfviewer("document-2.pdf");}}}
<h3>Document 3</h3> //hidden
{{{pdfviewer("document-3.pdf");}}}
Doing this each subsequent expanded page opens the viewer smaller. Only the first is opened in its full size. The second is then only about 75%, the third and the rest only 50% wide. One of the files is not found.
Also I think the plugin has problem with file names if they use CEE characters (accented or with special markers: ľščťžýáíéúäňô and their capitals), regardles of $tx['urichar']['new'] or $tx['urichar']['old'] definition.
Have a look at
http://nobela.cmsimple.sk/?Documents/