Project

General

Profile

« Previous | Next » 

Revision 246

Added by stefan over 18 years ago

Improved default block content feature. Usage: If a template is used with multiple blocks and a page does not have content in one of the blocks, the content of this block is taken from the default (start) page instead. This behavior can be deactivated by setting ->default_block_content='none' or a specific page can be set using ->default_block_content=%page_id% where page_id stands for the page id of the page to use. This variable can be changed before every page_content call for the specific blocks to allow for complete flexibility.

View differences:

class.frontend.php
41 41
	var $default_link,$default_page_id;
42 42
	// when multiple blocks are used, show home page blocks on 
43 43
	// pages where no content is defined (search, login, ...)
44
	var $no_default_block_content=false;
44
	var $default_block_content=true;
45 45

  
46 46
	// page details
47 47
	// page database row

Also available in: Unified diff