thisPage object (as thisDocument or thisRow)

Have a thisPage object.

Example use case :
button in a table with multiple views in multiple pages,
Action -> openlink(“coda.io/” + thisDoc + “/” + thisPage.slug + “/” + thisRow.rowID + “modal=True”)

I simplified the code, but you get the idea, it opens the modal view of this page.

1 Like

We would like this as well.

Our use case has to do with template pages that display various tables for a particular topic. The topic key is usually the page slug.

We currently need to manually adjust the filter of a half dozen tables every time we create a new page using this format. We could instead have a template page that would fill based on its page slug reducing the work to almost nothing.

@Blaise_d_Estais — while I see how thisPage could be useful overall and how it could offer a more convenient way to do what you need, FYI here’s the solution that you can use right now:

@Colin_Nickerson in your use case what I’d do is have only ONE page with a view with common settings (and not a separate page per e.g. topic), and implement user-specific filters of a sort (e.g. so that every user can individually look at a different topic, all in the same page)

Thanks for the suggestion Paul, but in our case these are pages of documentation with common attributes like related tasks, documentation status etc.

The page content varies from topic to topic. Also, the pages of documentation are referenced elsewhere and having a link to a single page that uses a filter isn’t sufficient.

At first, I tried working around this by making a documentation table and using a detail view … but inserting images, videos, and other media was too difficult. I also was unable to use a page outline which is important for longform docs