Skip to content

Commit 5bd274f

Browse files
committed
feat(readme): Add maxContentlets display for containers in README
- Included a line to echo the maximum contentlets for each container, enhancing documentation clarity.
1 parent a913be6 commit 5bd274f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ echo "Layout header: " . $page->layout->header . "\n";
232232
// Access containers and contentlets
233233
foreach ($page->containers as $containerId => $container) {
234234
echo "Container ID: " . $containerId . "\n";
235+
echo "Max Contentlets: " . ($container->maxContentlets ?? 0) . "\n";
235236

236237
if (!empty($container->contentlets)) {
237238
foreach ($container->contentlets as $uuid => $contentletArray) {

0 commit comments

Comments
 (0)