How to include a dynamic page contents into a template ?

Posted by Ankit on Stack Overflow See other posts from Stack Overflow or by Ankit
Published on 2010-05-15T08:47:38Z Indexed on 2010/05/15 8:54 UTC
Read the original article Hit count: 208

Filed under:

Hi All,

I have to include a dynamic page content into my template, Say I have a left panel which gets the data dynamically through a view. Now, I have to include this left panel into all my pages but I do not want to duplicate the code for all the pages. Is there any way, I can write a single script and include it in all my templates to display the left panel in all my pages?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about python