I currently have a website that uses dedecms. however, now I want to revise each template. During the revision, I need to debug the effects. Does dedecms have a function that only provides the temporary preview function for the new template, editors can still send regular articles without affecting the generation of old templates. I currently have a website that uses dedecms. however, now I want to revise each template. During the revision, I need to debug the effects. Does dedecms have a function that only provides the temporary preview function for the new template, editors can still send regular articles without affecting the generation of old templates.
Reply content:
I currently have a website that uses dedecms. however, now I want to revise each template. During the revision, I need to debug the effects. Does dedecms have a function that only provides the temporary preview function for the new template, editors can still send regular articles without affecting the generation of old templates.
Currently, only the database can be downloaded to the local device for further debugging.
I am not very familiar with dedecms, But I can provide an idea: switching between old and new templates is nothing more than an html file in the template directory. You can set two directories and define different version information, when the user selects preview, it directs to the directory of the new template. In addition, templates are not necessarily related to publishing articles. The two should not be affected unless there are obvious syntax errors in the code.
Create a channel, set the template of the homepage, list page, and details page of the channel to your new template, publish several test articles on the channel, and generate Page Preview.