Menu

Add template in the top

Help
iddqd_tuna
2009-04-19
2013-05-13
  • iddqd_tuna

    iddqd_tuna - 2009-04-19

    How could I add templates not in bottoms of pages, but in tops?
    Thanks in advance!

     
    • CodeDriller

      CodeDriller - 2009-04-19

      That's easy, just do:

        p.text = "{{MyTemplate}}\n" + p.text;

      "Page.text" field contains text of the page after loading.

       
    • iddqd_tuna

      iddqd_tuna - 2009-04-20

      thanks! =)
      sorry for stupid question =)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.