Thanks a lot for recommending this. I have implemented it in my website (blog post example here), including translations like this. Very happy with it so far!
@iaeiou I’m using a Multihost setup in my site and I’ve noticed that, for a given blog post for example, all translated pages, even though they have a different .Permalink (thus different data-page-url), they share the same .File.UniqueID, so that the data-page-id is the same and comments made on one of the pages show up in all translated pages. Do you have an idea how can I solve it?
In those pages, the comment in English was made from the English version, and the Spanish one from the Spanish page, but all comments show in all pages because as I say the .File.UniqueID is the same regardless of the language.
I found this reference in the forum Create a custom id for each post - #6 by Jura - I apparently already struggled with a similar issue (can’t remember in which context exactly) and used .File.UniqueID… My researches ended there at this time
A solution may be to concatenate this .File.UniqueID with another variable to minimize the risk of collision.
Keeping in mind that some variables may vary on purpose, like the file name or post Title. The comments must land in the same queue despite such modifications
I’m not sure how this can help me with my problem. Is there a way I can associate a really unique ID to each of my pages? The problem arises with translations, where each page shares the same path and file name, just changing the folder containing it.
I apparently already struggled with a similar issue (can’t remember in which context exactly) and used .File.UniqueID… My researches ended there at this time
A solution may be to concatenate this .File.UniqueID with another variable to minimize the risk of collision.