-
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
Description
Question
How can i print content for each field using PHP?
There is my code:
// Get Entry
$enties = Entry::findOne(['id' => 1525, 'siteId' => 7])->contentBlocks->all();
// Get SuperTable block types
$stFields = Craft::$app->getFields()->getAllFields(
'superTableBlockType:' .
SuperTable::$plugin->getService()->getBlockTypesByFieldId($field->id)[0]->uid
);
// Print each SuperTable fielId and fieldHandle
foreach ($stFields as $stField) {
print $stField->id . " " . $stField->handle . "\n";
}
Thaks.
Additional context
No response