[Register]
Powered by Elgg

Plugins :: Blog :: Template wrapper problems

May 09, 2007

Can someone talk me through using this plugin please? I have no idea where to put the set_default_wrapper and add_template_wrapper lines? Which file do they go in.

Thank you

Posted by Chris @ Plugins


Comments

  1. You can add those lines in the init() method of any plugin (included the template_wrapper itself).

    user iconDiego Andrés Ramírez Aragón on Wednesday, 09 May 2007, 07:58 UTC # |

  2. You've lost me? I've never come across init()

    user iconChris on Wednesday, 09 May 2007, 07:59 UTC # |

  3. So its not in the config.php then? I've got no idea at all about this one? So confusing.

    user iconChris on Wednesday, 09 May 2007, 11:44 UTC # |

  4. Every plugin (call it "foo") should have a function foo_init() defined in elgg/mod/foo/lib.php. You can put those lines inside that function.

    user iconRenato on Wednesday, 09 May 2007, 13:22 UTC # |

  5. OK, I want the homepage to not be affected by people choices of themes, where is the lib.php file for the homepage?

    user iconChris on Wednesday, 09 May 2007, 17:23 UTC # |

  6. You can set the homepage template in the 'index.php' file.

    user iconDiego Andrés Ramírez Aragón on Wednesday, 09 May 2007, 19:32 UTC # |

Add a comment

Your comment text

Your name

 

Site supported by Curverider Ltd - powered by the awesome Elgg