GetSimple Support Forum
How do i add something (from a plugin) to the template of a page? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: How do i add something (from a plugin) to the template of a page? (/showthread.php?tid=1749)



How do i add something (from a plugin) to the template of a page? - Electabuzz - 2011-05-20

Hello there.
I'm installing the "Events" plugin, and i know how to add it to the sidebar but i couldn't figure out how to add it to an individual page, the official topic says:

Show events on page by editing the template and adding the following:
<?php echo events_list() ?>

But how?

Thank you.


How do i add something (from a plugin) to the template of a page? - polyfragmented - 2011-05-20

Electabuzz,

I think you've got a few options here to achieve your goal:
  • Create an additional template file for the used theme (copy template.php and rename it), place the events list call into the new template file (above, below <?php get_page_content(); ?> or replace it) and assign it to a given page (in page options)
  • Install the Exec-PHP plugin so you can embed the events list call directly into a page via the editor
  • Use the DynPages plugin to embed a placeholder in the page editor which calls upon a component that contains the events list call (may sound more complicated than it is, but it's late here...)

Hope this helps.


How do i add something (from a plugin) to the template of a page? - Electabuzz - 2011-05-20

polyfragmented Wrote:Electabuzz,
...
Hope this helps.

Thank you for your reply. I appreciate your attention.