2012-03-23, 22:25:06
jysse Wrote:Thanks for your help. I decided to use Dynpages plugin and that plugin works ok.Sorry, this question was not clearly asked by me. Here is more details if someone could help me.
I created a new component with "<?php show_articles(); ?>" inside it. Then i placed a holder in new page.
Result was an empty page. Enabling debug mode shows this error:
Fatal error: Call to undefined function show_articles() in /var/www/clients/client1/web1/web/admin/inc/theme_functions.php(575) : eval()'d code on line 1
If I replace "<?php show_articles(); ?>" for example with "<?php nm_list_recent(); ?>" in component it works ok.
1. DynPages plugin is installed.
2. Created a component called "news". Inside that component is a line:
<?php nm_list_recent(); ?>
3. called that component from a test page like this:
<p>
Some text...</p>
<p>
And now the news:</p>
<p>
{% news %}</p>
<p>
An now back to other topics...</p>
4. That works fine!
What should I insert in component to replace <?php nm_list_recent(); ?> so that all news are visible.
I mean in a same way that they are shown on my index page (which is the page for news manager news..).
Jysse