Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to place user-editable blocks in template
#4
@shawn_a It should be getPageContent, not get_page_content

@trysky This is the way it has been suggested before:

- Create your editable blocks as private pages (take note of their slugs or change them to what you want)
- Insert this code in your template file or component:
Code:
<?php getPageContent('block-slug'); ?>

If you want some block to be shown only on some page, e.g. the index page, use this code instead:
Code:
<?php if (return_page_slug()=='index') { getPageContent('block-slug'); } ?>
Reply


Messages In This Thread
how to place user-editable blocks in template - by Carlos - 2012-08-28, 18:42:04



Users browsing this thread: 1 Guest(s)