Adding "global" fields for a DCP block.

Permalink Browser Info Environment
Hi!

I'd like to add a couple of fields to a DCP block that shouldn't get repeated for each item. Instead, they should be entered once independent of the items. Is there a way for me to do that?

I'm aware that I can use custom templates, but what I'm trying to is let the user select a background image, and some other fields, for each item listing.

Thanks

Type: Discussion
Status: New
baringo
View Replies:
theblockery replied on at Permalink Reply
theblockery
Hi,
Unfortunately right now there is no way to add "global" fields to Designer
Content Pro blocks. It is definitely on our radar, but it's a decent amount
of effort so it will probably be another couple of months before we're able
to get that built.

In the meantime, I think custom templates are going to be the best
solution. Another alternative would be to make a custom attribute that is
set at the page level, then retrieve that in the block view via some code
like this:

$attr = Page::getCurrentPage()->getAttribute('your_attribute_handle');
if ($attr == 'green') {
//user entered "green", do something here...
}

Hope that helps.

-Jordan
baringo replied on at Permalink Reply
baringo
Alright, thanks Jordan. I'm looking forward to that update.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.