Posibility to call a getData()-Function on generated Block-Controller

Permalink Browser Info Environment
Hi,

we want to use the Blockdesigner (Pro) to create a Block which creates a custom List. Here our example how it will look like:http://www.creativa-schweiz.ch/de/themenbereiche...

on a different Page we want to create a shortlist of these items:http://www.creativa-schweiz.ch/de... -> search for "Themenbereiche der Creativa". It contains a rounded thumbnail and the title + a link.

For this section we dont want to create another seperate Block. We would like to create a self developed Block, which uses the Data from the Block Designer created Block. For this, we need a kind if generic Funktion in the Blockcontroller to get the entire Data. A function like getData() returning an Array with the entire data of the block-instance.

is that possible? Or another Idea?

best regards
Chris & Marcus

Type: Discussion
Status: Resolved
ngnglobal
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Chris & Marcus,

Not sure what you need here. You already have this functioning in some block (without Block Designer (BD)) and want to create a new block (using BD), and BD needs to grab information from your other block? Can't you just create a new block with BD which does everything, instead of connecting one block with another? Perhaps I'm not fully understanding your question. You can give code examples as well if you'd like. I can understand German too if that's easier for you!

Kind regards,

Ramon
ngnglobal replied on at Permalink Reply
ngnglobal
Hi,

you can resolve the Issue, we dont need a new function. we found a generic way to meet our needs.

best regards
Chris
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Chris,

Is this a workaround or did you find a better way or.. would love to know what you came up with! :)

Kind regards,

Ramon
ngnglobal replied on at Permalink Reply
ngnglobal
Well, we use the record-function of a block to get the data from. So we did a block where u can select a block instance on any page. The block will get the data via record (). We pass this data to a custom template to render the data. With such a block you can render e.g. a testimonial shortlist on any other page based on the testimonial list created with block designer.
ngnglobal replied on at Permalink Reply
ngnglobal
Well, we use the record-function of a block to get the data from. So we did a block where u can select a block instance on any page. The block will get the data via record (). We pass this data to a custom template to render the data. With such a block you can render e.g. a testimonial shortlist on any other page based on the testimonial list created with block designer.
ngnglobal replied on at Permalink Reply
ngnglobal
Well, we use the record-function of a block to get the data from. So we did a block where u can select a block instance on any page. The block will get the data via record (). We pass this data to a custom template to render the data. With such a block you can render e.g. a testimonial shortlist on any other page based on the testimonial list created with block designer.
ramonleenders replied on at Permalink Reply
ramonleenders
Chris,

OK, makes sense. Good you found a way! Don't hesitate to ask again if you need anything.

Kind regards,

Ramon

concrete5 Environment Information

C5 5.7.5.2

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.99 Safari/537.36

Hide Post Content

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

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.