Skip to main content

Gives the template variable in page templates a method pt_filled_slots to see which slots are being filled

Project description

This product adds a pt_filled_slots methods to page templates, so it is possible from within or before a filled slot see which slots are filled by the calling page template.

For example “python:’content-core’ in template.pt_filled_slots” could be called to see if content-core is defined.

After discovering some security-related issues with this approach (access denied) I’ve also added the option of setting up the method as an External Method:

ID: pt_filled_slots Module name: Products.PageTemplateFilledSlots.pt_filled_slots Function name: pt_filled_slots

And this is called via for example “python:’content-core’ in context.pt_filled_slots(template)” in a page template.

1.0.1 (2012-03-27)

  • Added patching of ac_permissions for template, as well as an alternative method of applying pt_filled_slots from an External Method.

1.0 (2012-03-21)

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

File details

Details for the file Products.PageTemplateFilledSlots-1.0.1.tar.gz.

File metadata

File hashes

Hashes for Products.PageTemplateFilledSlots-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2d51491208453955bbd6e383537ad9f5b3725a67b824cb02b33c77d6dba5d00c
MD5 a89c7bd367b78236f8974fa09e373fc2
BLAKE2b-256 84d8b13d1abca9a41ea1da1e568a22b2e210ca21cb0af1444a27d53ef559e11b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page