Origin of component shortcode

Let’s say I have exported a component, and I use it somewhere on a page in an element in the following format:
[cs_component id=“RHkNmWsFHzQyZ4HT87”]
Is there a way to find out from which component this shortcode is coming from, when I come back to that page a year later?

1 Like

That’s a good question.

The wp_options option_name cs_component_cache will have the component data by ID. "RHkNmWsFHzQyZ4HT87": { "docId": 299 } It would look something like that with the docId being the component workspace ID.

It would be useful to have some way to debug that and get the data you are looking for. [cs_component debug=true] something like that. So I’ll add it to our feature requests. It might not be solved that way, but we can figure something out. I’m curious on your thoughts on how you think we could help you find that data easier?

It would be good for ANY component that is being used (in shortcode form, or as a component element) to have a link in the UI that brings you to the component page where it originates. Ideally even opening the Component-document UI at that very element. That link (or button) can have information printed next to it, such as the component document name or such, because it may be sufficient to just know that, and then you don’t have to click the link to find out.

Hi @striata,

That is also a great suggestion, we will check if that can be implemented as a feature in the future.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.