The Empire CMS itself does not have this function, but the empire is very scalable and can add this feature to itself. I after a period of groping, in the Imperial CMS 6.5 (6.6 is also applicable) on the implementation of the article signature function. g7x Love design Studio
First, the article sign to realize the basic function g7x love design Studio
1, the administrator to increase the article can choose whether the article needs to sign, can easily select the users need to sign. g7x Love design Studio
2, the article page can show the need to sign the user, has signed the user and sign the time, and according to the user whether login make corresponding prompt and operation. g7x Love design Studio
Second, to achieve the signing step:g7x love design Studio
1, modify the article System data table (if the use of news system data table method similar), add three fields, respectively for the record "whether signed, need to sign the user, has signed the user", the first two fields set as acquisition items, the length of the field based on the number of users decided. g7x Love design Studio
g7x Love Design Studio
2, modify the member table, add a field, used to record the user did not sign the article IDg7x love design Studio
3. Add a schedule to member to record the time each user signed each article g7x love design Studio
4, will sign the content page of the column to set the dynamic page, add a sign for the content of the article template, write signed part of the code.
Third, the realization of the effect g7x love design Studio
1, sign information input in the background to increase the completion of the article, the following figure, only check "need to sign" when the "select" button is available. g7x Love design Studio
g7x Love Design Studio
Select Signature user interface g7x love design Studio
g7x Love Design Studio
2, the user sign in the rear can be signed. g7x Love design Studio
3, need to sign the user click on the sign button can realize g7x love design Studio
g7x Love Design Studio
4, sign the article, at the same time show "signed" words, in the signed list can show the user's signature time, sign time can be used to display the list, this example uses the mouse to point to have signed the user display. g7x Love design Studio
g7x Love Design Studio
Iv. Perfect Sign-off function g7x love design Studio
The above implementation is only the most basic signature function, in the actual use of the following issues should also be considered:g7x love design Studio
1, because the article may be edited after the addition, or even delete, sign the relevant information may change, so it is necessary to the system from the function of the appropriate modification, in order to add, modify, delete articles on the database and sign the relevant fields for the corresponding operation. g7x Love design Studio
2, for logged-in users, it is best to have more user-friendly tips, the following figure, prompted the user has 2 articles need to sign, click to enter the need to sign the article page. g7x Love design Studio
g7x Love design studio