[Register]
Powered by Elgg

Plugins :: Blog :: template_wrapper

April 24, 2007

It is available the template_wrapper plugin. It allows to specify a custom pageshell from some site pages.

 Something like the browse page  (two columns pageshell) in http://www.redreiri.org that looks a little different that the person home page (three columns pageshell).

It hope it would be useful for someone.

Keywords: elgg, plugin, template, wrapper

Posted by Diego Andrés Ramírez Aragón @ Plugins


Comments

  1. Hey Diego - thanks for submitting this, I am sure people will find it useful!

    user iconNews on Tuesday, 24 April 2007, 18:39 UTC # |

  2. this is great. I've done a bit of tinkering at adding some basic page/content management features to my instance of elgg, but put it on the back bruner till i had more time to look at pageshell and how I could do different layouts. With this done now (thanks!) I'll have another go at it...

    Ben/Dave -> the current "content" pages (e.g. /content/terms.php, /content/privacy.php) system seems a bit awkward for a site admin to edit. Would it make sense to fold these into a cms mod that allowed News account to edit the pages???

     ./tim

    user iconTim Hawes on Tuesday, 24 April 2007, 19:20 UTC # |

  3. Hi Deigo,

    I am not very clear on the following instructions:

    - First at all you need to specify the default_template_wrapper for your wrapped
      pages. That its doing by the 'set_default_wrapper' function.
      For example:
        set_default_wrapper($CFG->dirroot."mod/template/templates/Default_Template/searchtemplate");

    Where do I add this too? I am not clear on what page and where to add it on that page. The same goes for adding templates. 

    user iconHeath Moser on Monday, 14 May 2007, 23:39 UTC # |

  4. Hello Diego,

    as this may seem like easy to do, it does'nt seem to work for me....

    so for example if you're going to use a full width template for a specific plugin or content, you need to point it to sometemplate/pageshell? and edit the htaccess? Can you give a specific example? Please? 

    user iconmaida on Thursday, 30 August 2007, 08:34 UTC # |

  5. Diego, could you give an example of how to add a template wrapper to all the users pages? for example http://your.domain/user1/weblog would have the same page template as http://your.domain/user1.  thank you!

    user iconakbass on Tuesday, 13 November 2007, 18:57 UTC # |

You must be logged in to post a comment.

Site supported by Curverider Ltd - powered by the awesome Elgg