Get actual block content on a page or uniqe id for a block
Permalink
Hello,
I want to program a function for taged custum blocks. If I write the tag and the block id in a table (every time I save the block), I'll have the problem that I get every time I set the page active I get a new version of the block and a new entry in the table.
If I make a sql to the table to get all blocks, taged as news, I get all versions of all blocks, taged as news.
How can I get the active version of this block or how can I set a uniqe ID for a block (changing the ID by duplicating and not by making a new version).
Thanks in advance
Gunter
I want to program a function for taged custum blocks. If I write the tag and the block id in a table (every time I save the block), I'll have the problem that I get every time I set the page active I get a new version of the block and a new entry in the table.
If I make a sql to the table to get all blocks, taged as news, I get all versions of all blocks, taged as news.
How can I get the active version of this block or how can I set a uniqe ID for a block (changing the ID by duplicating and not by making a new version).
Thanks in advance
Gunter