Some publicly available examples/projects that are implementing similar functionality (such as 1-1 multilingual example) also use these obsolete classes.
Although not a real future proof approach, I am also not aware of any serious issues that make it risky. So as long as there are no alternatives, I assume it's ok to use them as long as you keep in mind that the code will need to be changed in the (maybe near) future.
Of course, feedback about potential risks and possible alternatives are still very welcome!
Alternatives for PreviewContent
The PreviewContent class provides very interesting functionality but unfortunately uses some obsolete code.
For example:
where both User and Document are deprecated.
Looking at the source code of PreviewContent (namespace umbraco.presentation.preview) , it starts with:
Are there already plans for implementing a new API for PreviewContent within the near future?
Are there alternatives available that would work without having to use obsolete classes?
Is there an answer to this yet?
Hi Gordon,
So far, I did not hear of any alternatives.
Some publicly available examples/projects that are implementing similar functionality (such as 1-1 multilingual example) also use these obsolete classes.
Although not a real future proof approach, I am also not aware of any serious issues that make it risky. So as long as there are no alternatives, I assume it's ok to use them as long as you keep in mind that the code will need to be changed in the (maybe near) future.
Of course, feedback about potential risks and possible alternatives are still very welcome!
is working on a reply...