Skip to content

How to let multiple models share one counter? #15

Answered by hasezoey
Yiak asked this question in Q&A
Discussion options

You must be logged in to vote

I thought trackerModelName should do the trick but it didn't. So how can I make it work? Any suggestions would be appreciated.

trackerModelName sets the name for the model that stores the counter, not the modelName property (this is what the documentation is trying to say, but may be not enough on second looks)
as a side note, all properties that start with tracker affect the tracker schema / model itself, not the data inside

currently it is not possible to share a counter for multiple models (though on request i may look into adding such a option to overwrite the modelName)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Yiak
Comment options

@hasezoey
Comment options

@Yiak
Comment options

Answer selected by Yiak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants