setBlockWrapperStart applied to Blocks within a Stack
Permalink
I want to wrap a div around ALL blocks. Currently stacks are treated like blocks in the template so a Stack will get the Block Wrapper rather than the blocks it contains:
The above results in the wrapper div appearing once around ALL of the blocks contained within a stack.
This behaviour doesn't make sense - I want to wrap Blocks - not Stacks.
Can anyone help me resolve this problem?
As the end user may create new stacks I can't hard-code a solution into the template for specific Stack names - it needs to be programmatic.
Help!!!
<?php $leftColumn = new Area('Left Column'); $leftColumn->setBlockWrapperStart('<div class="blockWrapper shadowBox">'); $leftColumn->setBlockWrapperEnd('<div class="clear"><!-- --></div></div>'); $leftColumn->display($c); ?>
The above results in the wrapper div appearing once around ALL of the blocks contained within a stack.
This behaviour doesn't make sense - I want to wrap Blocks - not Stacks.
Can anyone help me resolve this problem?
As the end user may create new stacks I can't hard-code a solution into the template for specific Stack names - it needs to be programmatic.
Help!!!
# concrete5 Version
5.6.3.1
# concrete5 Packages
eCommerce (2.8.12), Image Slider (1.1), Login (1.1.1), Pro Events (11.0.1), Pro Forms (7.0.2), reCAPTCHA (0.9.2).
# concrete5 Overrides
blocks/proforms_display, blocks/product, blocks/product_list, blocks/login, blocks/page_list, blocks/content, languages/ja_JP, languages/es_ES, languages/es_AR, languages/cs_CZ, languages/tr_TR, languages/sl_SI, languages/he_IL, languages/fr_FR, languages/el_GR, languages/ar, languages/ru_RU, languages/vi_VN, languages/fa_IR, languages/nb_NO, languages/es_MX, languages/nl_NL, languages/it_IT, languages/de_DE, languages/fi_FI, languages/zh_TW, languages/sk_SK, languages/sv_SE, languages/pt_PT, languages/es_PE, languages/zh_CN, languages/ro_RO, languages/da_DK, models/login_user.php, single_pages/register.php, themes/toshiba
# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
# Server Software
Apache
# Server API
apache2handler
# PHP Version
5.3.10-1ubuntu3.13
# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, json, libxml, mbstring, mcrypt, memcache, memcached, mhash, mysql, mysqli, openssl, pcre, pdf, PDO, pdo_mysql, Phar, posix, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, uuid, wddx, XCache, xml, xmlreader, xmlwriter, zip, zlib.
# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 512M
post_max_size - 32M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 30M
memcache.max_failover_attempts - 20
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH
xcache.var_maxttl - 0