|
| 1 | +--- |
| 2 | +title: Managing Content |
| 3 | +description: A user manual for creating, editing, and deleting content in the web dashboard. |
| 4 | +--- |
| 5 | + |
| 6 | +import { Steps } from '@astrojs/starlight/components'; |
| 7 | + |
| 8 | +This manual provides a step-by-step guide for administrators and publishers on how to manage the content of the news application using the web dashboard. |
| 9 | + |
| 10 | +### Navigating to Content Management |
| 11 | + |
| 12 | +1. After signing in, you will see a navigation menu on the left side of the screen. |
| 13 | +2. Click on the **"Content Management"** item in the menu. |
| 14 | + |
| 15 | +This will take you to the main content management screen, which is organized into three tabs: **Headlines**, **Topics**, and **Sources**. |
| 16 | + |
| 17 | +### How to Create New Content (Headlines, Topics, Sources) |
| 18 | + |
| 19 | +The process for creating a new headline, topic, or source is very similar. |
| 20 | + |
| 21 | +<Steps> |
| 22 | +1. **Select the Correct Tab** |
| 23 | + |
| 24 | + Click on the tab corresponding to the type of content you want to create (e.g., click the "Topics" tab to create a new topic). |
| 25 | + |
| 26 | +2. **Click the "Add" Button** |
| 27 | + |
| 28 | + In the top right corner of the app bar, click the **"+"** icon. This will take you to the "Create" page for that content type. |
| 29 | + |
| 30 | +3. **Fill Out the Form** |
| 31 | + |
| 32 | + Complete all the required fields in the form. Each field will have a descriptive label (e.g., "Topic Name," "Description"). |
| 33 | + |
| 34 | +4. **Save Your Changes** |
| 35 | + |
| 36 | + Once you have filled out the form, click the **Save** icon in the top right corner of the app bar. |
| 37 | + |
| 38 | +</Steps> |
| 39 | + |
| 40 | +Your new content item will be created and will now appear in the data table. |
| 41 | + |
| 42 | +### How to Edit Existing Content |
| 43 | + |
| 44 | +<Steps> |
| 45 | +1. **Find the Content Item** |
| 46 | + |
| 47 | + Navigate to the correct tab ("Headlines," "Topics," or "Sources") and find the item you wish to edit in the data table. You can use the pagination controls at the bottom of the table if you have many items. |
| 48 | + |
| 49 | +2. **Open the Edit Page** |
| 50 | + |
| 51 | + Click anywhere on the row of the item you want to edit. This will take you to the "Edit" page for that specific item, with all its current data pre-filled in the form. |
| 52 | + |
| 53 | +3. **Make Your Changes** |
| 54 | + |
| 55 | + Update the fields in the form as needed. |
| 56 | + |
| 57 | +4. **Save Your Changes** |
| 58 | + |
| 59 | + Click the **Save** icon in the top right corner of the app bar to apply your changes. |
| 60 | + |
| 61 | +</Steps> |
| 62 | + |
| 63 | +### How to Delete Content |
| 64 | + |
| 65 | +<Steps> |
| 66 | +1. **Find the Content Item** |
| 67 | + |
| 68 | + Navigate to the correct tab and find the item you wish to delete in the data table. |
| 69 | + |
| 70 | +2. **Click the Delete Icon** |
| 71 | + |
| 72 | + On the far right of the item's row, you will see a set of action icons. Click the **trash can** icon to delete the item. |
| 73 | + |
| 74 | +3. **Confirm Deletion** |
| 75 | + |
| 76 | + A confirmation dialog will appear to prevent accidental deletion. Click "Confirm" to permanently delete the item. |
| 77 | +</Steps> |
0 commit comments