template inheritance and default content
Posted: Fri May 23, 2014 3:52 am
i started playing with template inheritance and am trying to move my default {content} block to a different tab (in admin).
the master has this:
the below does not work, but it explains the idea (for sub-templates):
Is this at all possible?
----------------------------------------------
Cms Version: 1.11.10
Installed Modules:
CMSMailer: 5.2.2
MenuManager: 1.8.6
News: 2.14.2
CGSmartImage: 1.16.1
Search: 1.7.11
TinyMCE: 2.9.12
CGSimpleSmarty: 1.7.2
CGExtensions: 1.38.6
CGBlog: 1.12.1
CGFeedback: 1.6.5
Captcha: 0.4.6
FormBuilder: 0.7.3
Showtime: 3.4
JQueryTools: 1.2.6
GBFilePicker: 1.3.3
Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 2000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
Php Information:
phpversion: 5.4.4-14+deb7u9
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 2048
E_DEPRECATED: 8192
memory_limit: 128M
max_execution_time: 30
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: apache2handler
Server Db Type: MySQL (mysql)
Server Db Version: 5.5.37
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found
----------------------------------------------
the master has this:
Code: Select all
{block name="top"}
{content label="Main Content of Page - cannot be empty" assign=bigContentBlock}
{/block}
Code: Select all
{block name="top"}
{content label="Main Content of Page - cannot be empty" assign=bigContentBlock tab=options}
{/block}
----------------------------------------------
Cms Version: 1.11.10
Installed Modules:
CMSMailer: 5.2.2
MenuManager: 1.8.6
News: 2.14.2
CGSmartImage: 1.16.1
Search: 1.7.11
TinyMCE: 2.9.12
CGSimpleSmarty: 1.7.2
CGExtensions: 1.38.6
CGBlog: 1.12.1
CGFeedback: 1.6.5
Captcha: 0.4.6
FormBuilder: 0.7.3
Showtime: 3.4
JQueryTools: 1.2.6
GBFilePicker: 1.3.3
Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 2000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
Php Information:
phpversion: 5.4.4-14+deb7u9
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 2048
E_DEPRECATED: 8192
memory_limit: 128M
max_execution_time: 30
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: apache2handler
Server Db Type: MySQL (mysql)
Server Db Version: 5.5.37
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found
----------------------------------------------