Melly ॐ (8_daze_a_week) wrote in component_help,
Melly ॐ
8_daze_a_week
component_help

  • Mood:

Where to put new code??

I'm new to this so I'm sorry if I'm missing something simple...what I want to do is add another component box to the ones I already have, and I want it to show my weather pixie. I looked through the tutorial on how to add a component, and from what I saw there my code should look like this correct?

function print_free_text(Page p) {

print_comp_header($*free_text_text);
"""$*free_text""";
print_comp_footer();

print_comp_header("Weather");
"""

code for my weather pixie

""";
print_comp_footer();

}

If that's wrong please let me know. I already have a theme layer b/c I used the tutorial to add a banner to the top of my layout. What I can't figure out is where in that code that's already there do I insert this new section? I tried just putting it at the bottom but I got errors. I would really appreciate any help. Thanks!!
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 7 comments