2014-04-05, 03:08:01
(2014-04-05, 00:44:03)Carlos Wrote:(2014-04-04, 17:13:55)ochsadad Wrote: How can I put the "nm_list_archives" function in a web page (not in a sidebar or template)?
As sbatko says, you can use the Dynpages plugin, create a component named e.g. listarchives with this content:
and call it in your archive page by inserting this in the body:Code:<?php nm_list_archives(); ?>
Code:{% listarchives %}
Another way is inserting this in your template, before or after the <?php get_page_content(); ?> line:
(where archivepage is the slug (page id) of the page where you want the archives to be displayed)Code:<?php if (return_page_slug()=='archivepage') nm_list_archives(); ?>
[edit] I hadn't seen your last post, it seems I was typing while you published it... :-)
Thanks for the other alternatives, Carlos.