Jump to content

Add a content box (important oversight revealed)


Guest ncoredump

Recommended Posts

Guest ncoredump

Hi

It would seem None of the guides re-enforce the importance of having the BEGIN and END tags for the template file.

Also here I will highlight a important connection between template file and php.

eg inside: static_links.tpl

<!-- BEGIN: staticlinksvar -->

... html template code here...

<!-- END staticlinksvar -->




"staticlinksvar" is relevant to the name you perform the following lines of code with located in "yourbox".inc.php: located in SITENAME/include/boxes/.



In our example case static_links.inc.php


$box_content->parse("staticlinksvar");

$box_content = $box_content->text("staticlinksvars");

with out the linkage the box will never render

Hope this helps others, spent 12 hours on it..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...