Content Blocks

Posted by Community Admin on 04-Aug-2018 15:22

Content Blocks

All Replies

Posted by Community Admin on 24-Apr-2013 00:00

Hi all
We are currently trying to query Content Blocks by Title, but a better approach for us would be to get each Content Block by it's guid. How can we find the Guid on the content block, is it stored somewhere that we can read, best would be in the Sitefinity backend, or as a workaround in the database.

Thanks in advance
Henrik

Posted by Community Admin on 25-Apr-2013 00:00

Henrik,

As far as I know, there is no way to get the ID of a content block from the administration. However, you can find the ID from the database in the table "sf_content_items". When you browse that table, you will see all of the Content Blocks in the system. The column that holds the ID you'd like is "content_id".

Thanks!

Chris

Posted by Community Admin on 26-Apr-2013 00:00

Hallo Chris
Many thanks for your answer, we will try the table method :-).

Best regards
Henrik

Posted by Community Admin on 29-Apr-2013 00:00

Hello guys,

Another way to get the item's Id is to use dev tools like Firebug or hitting F12 on Chrome. Inspect the Network tab and find the ContentItemService.svc call, then switch to Preview tab. From there you can expand the Items collection and see the Id for each item that you want. Take a look at this video

This approach is valid for each type of content items e.g. News, Events, Blogs etc.

Regards,
Pavel Benov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed