{"id":178,"date":"2008-08-16T13:10:30","date_gmt":"2008-08-16T12:10:30","guid":{"rendered":"https:\/\/drugprevent.org.uk\/ppp\/?page_id=178"},"modified":"2008-08-19T22:44:31","modified_gmt":"2008-08-19T21:44:31","slug":"guide","status":"publish","type":"page","link":"https:\/\/drugprevent.org.uk\/ppp\/contact\/guide\/","title":{"rendered":"Guide"},"content":{"rendered":"<dt class=\"wp-caption-dt\">This guide is intended to help you manage the content of the NDPA website. First I&#8217;ll show you how to <\/dt>\n<dt class=\"wp-caption-dt\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-181\" style=\"border: 0pt none; margin: 0px; float: right;\" title=\"ndpa-scrns\" src=\"https:\/\/drugprevent.org.uk\/ppp\/wp-content\/uploads\/2008\/08\/ndpa-scrns.png\" alt=\"New NDPA-PPP website\" width=\"155\" height=\"117\" \/>access the new website both for viewing and editing. Then we&#8217;ll cover the structure of the site before leading you through practical examples showing you how to add new content, edit content, delete content and reclassify (move) content.<\/dt>\n<h3>Accessing the new site<\/h3>\n<p>The new website can be <strong>viewed<\/strong> at: <a href=\"http:\/\/www.drugprevent.org.uk\/ppp\">http:\/\/www.drugprevent.org.uk\/ppp<\/a><\/p>\n<p>This will eventually be linked to from the<strong> splash page<\/strong> at: <a href=\"http:\/\/www.drugprevent.org.uk\">http:\/\/www.drugprevent.org.uk<\/a>, but for now you can only reach it using the link above.<\/p>\n<p>To be able to <strong>edit the website<\/strong>, you&#8217;ll need to use the admin section which can be found at the following address:<\/p>\n<p><a href=\"http:\/\/www.drugprevent.org.uk\/ppp\/wp-admin\">http:\/\/www.drugprevent.org.uk\/ppp\/wp-admin<\/a><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-193\" style=\"border: none; float: right;\" title=\"logout\" src=\"https:\/\/drugprevent.org.uk\/ppp\/wp-content\/uploads\/2008\/08\/logout.png\" alt=\"\" width=\"228\" height=\"182\" \/><\/p>\n<p>You will then need to enter your username and password which should have been emailed to you. Be sure to log out (top-right) when you&#8217;ve finished if you are using a public computer.<\/p>\n<h3>Content, Categories, Posts and Pages<\/h3>\n<p>Throughout this guide I will be using certain terms to describe the content we&#8217;ll be managing. These are described below and in the diagramme. You can also get an idea about how these terms fit together by looking at what is already on the website.<\/p>\n<p><strong>Posts:<\/strong> Most of the content on the website will be in the form of posts. These are individual articles which are likely to be added most regularly.<\/p>\n<p><strong>Pages (<em>Static<\/em> and <em>Dynamic<\/em>):<\/strong> Each item in the website&#8217;s main menu is a page. This guide is also a page.<\/p>\n<p><em>Static pages<\/em> simply contain whatever content is put on it. A static page must be edited individually and is a bit like a special post with its own link from the front page. Examples include the <em>Home<\/em> and <em>Cannabis Info<\/em> pages.<\/p>\n<p><em>Dynamic pages<\/em> list posts in the specified categories. The lists of posts are updated automatically as new posts are added, so there is usually no need to directly edit a dynamic page. In reality some dynamic pages will have a bit of static content at the top which can be edited separately. Examples include the <em>International News<\/em> and <em>Research<\/em> pages.<\/p>\n<p>Note: <strong>You should not need to create any new pages!<\/strong> If you do, they will appear automatically in the main menu!<\/p>\n<p><strong>Categories:<\/strong> All posts need to be allocated to at least one category. You can tell what categories a <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-199\" style=\"border: none; float: right;\" title=\"categories\" src=\"https:\/\/drugprevent.org.uk\/ppp\/wp-content\/uploads\/2008\/08\/categories.png\" alt=\"\" width=\"205\" height=\"166\" \/>post is in by viewing it on its own. Beneath the post will be the words &#8220;Filed under&#8221; followed by the categories of which it is a member. See <a href=\"https:\/\/drugprevent.org.uk\/ppp\/2008\/07\/italy-approves-new-marijuana-law\/\">this example<\/a>.<\/p>\n<p>The categories a post is in decide which dynamic pages it appears on.<\/p>\n<p>For example, any post given the category &#8220;Australia&#8221; will be automatically added to the <em>International News<\/em> page under the heading <em>Australia<\/em>. Removing the post from this category will remove it from this section. Note that posts can be added to more than one category, as in the Research section where a post may belong to the categories, <em>Cocaine<\/em>, <em>Alcohol<\/em> and <em>Prevention Works Volume 1 Issue 1<\/em>, which would cause it to automatically appear in all these sections. There is then no need to edit the <em>Cocaine<\/em>, <em>Alcohol<\/em> and <em>Prevention Works Volume 1 Issue 1<\/em> pages to add the new post, just tick the required categories when adding or editing the post.<\/p>\n<h3>Example: Adding a post<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-208\" style=\"border: none; float: right;\" title=\"write-post\" src=\"https:\/\/drugprevent.org.uk\/ppp\/wp-content\/uploads\/2008\/08\/write-post.png\" alt=\"\" width=\"128\" height=\"169\" \/>Once you&#8217;ve logged into the admin section, you&#8217;ll see a medium blue bar across the top with the website&#8217;s title. Under the title are a number of tabs. Click on the &#8220;Write&#8221; tab. Below it you&#8217;ll see a line of sub-options in white. Click on &#8220;Post&#8221;.<\/p>\n<p>You&#8217;ll now be presented with a form for entering the post. There are many options towards the bottom of this form that you can ignore. The essential bits are the <strong>Title<\/strong>, <strong>Post<\/strong>, <strong>Categories<\/strong> and <strong>Published Status<\/strong>.<\/p>\n<p><strong>Title:<\/strong> This will appear above the post when it is viewed and also forms the text of the link when the post is listed on dynamic pages. You can only use plain text with no formatting for the title.<\/p>\n<p><strong>Post:<\/strong> The body of the post itself can be given basic formatting using the buttons (Bold, Italic, Bullet <a href=\"https:\/\/drugprevent.org.uk\/ppp\/wp-content\/uploads\/2008\/08\/post-add-image.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-196\" style=\"border: none; float: right;\" title=\"post-add-image\" src=\"https:\/\/drugprevent.org.uk\/ppp\/wp-content\/uploads\/2008\/08\/post-add-image.png\" alt=\"\" width=\"225\" height=\"187\" \/><\/a>points, Headings, etc) at the top. More formatting options can be shown by clicking the &#8220;Kitchen Sink&#8221; button below &#8220;Add media&#8221;. Images can be added using the rectangular button next to &#8220;Add media:&#8221;. See the <a href=\"https:\/\/drugprevent.org.uk\/ppp\/contact\/guide-to-adding-images\">Guide to adding images<\/a> for more information.<\/p>\n<p>When pasting text into a post from another website or document the formatting of that webpage or document can sometimes come along too, which can look messy and inconsistent with the rest of the website. For this reason I suggest the following method:<\/p>\n<ol>\n<li>Start a new post, and type in the title.<\/li>\n<li>Open <strong>Notepad<\/strong> (Start -&gt; Run -&gt; type Notepad.exe, Press OK)<\/li>\n<li>Open the <strong>source<\/strong> webpage or document.<\/li>\n<li>Highlight and <strong>copy the text<\/strong> your wish to use.<\/li>\n<li>Switch back to the empty <strong>Notepad<\/strong> window and <strong>paste the text<\/strong> into it.<\/li>\n<li>In Notepad press CTRL+A to <strong>select all<\/strong> the text.<\/li>\n<li>In Notepad press CTRL+C to <strong>re-copy<\/strong> the text.<\/li>\n<li>Switch back to your new post.<\/li>\n<li>Press CTRL+V to <strong>paste the text into the body of your post<\/strong>. This will remove all formatting.<\/li>\n<\/ol>\n<p>To <em><strong>add a link<\/strong><\/em>, first select\/highlight the text you wish to form the link, then click the link button (which is only enabled when you select something). In the form which appears, type or paste in the full link (eg: http:\/\/www.google.com) and click insert.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-197\" style=\"border: none; float: left;\" title=\"make-link\" src=\"https:\/\/drugprevent.org.uk\/ppp\/wp-content\/uploads\/2008\/08\/make-link.png\" alt=\"\" width=\"178\" height=\"129\" \/><\/p>\n<p>If you wish to add more complicated HTML, such as <strong><em>scrolling text<\/em><\/strong> or <strong><em>links within the page<\/em><\/strong>, you can select the HTML rather than the Visual tab at the top right, but this is somewhat harder.<\/p>\n<p>Once you have finished editing the post, scroll down to below the post text window to the Categories box. You may need to click the arrow on the left to expand this. The website has a large number of categories, so you may need to scroll down this list to find what you want. By default the <em>Uncategorised<\/em> category is selected, so start by un-ticking this (it&#8217;s at the bottom of the list). Remember that the categories you select will affect where this post <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-199\" style=\"border: none; float: right;\" title=\"categories\" src=\"https:\/\/drugprevent.org.uk\/ppp\/wp-content\/uploads\/2008\/08\/categories.png\" alt=\"\" width=\"267\" height=\"217\" \/>appears on the website. So if you want this post to appear on the &#8220;More&#8221; page, select the <em>More<\/em> category.<\/p>\n<p>Also note that some categories are indented, showing that they are sub-categories intended for a particular page. For example, in the image to the right, <em>Australia<\/em>, <em>Canada<\/em>, <em>Europe<\/em>, etc are sub-categories of <em>International News<\/em>. When you have sub-categories,<strong> always select a sub-category<\/strong> (eg: <em>Australia<\/em>), not the top-level one (eg: <em>International News<\/em>). When you have ticked all the categories you want, scroll back up and press the <strong>Save<\/strong> button on the right hand side.<\/p>\n<h3>Example: Deleting a post<\/h3>\n<p>To delete a post, select the Manage tab followed by Posts from the horizontal list that appears beneath it. You&#8217;ll see a list of all posts, separated into pages. As these will be quite numerous, you can use the date (when the post was added) and category filters or Search box to find one(s) you&#8217;re looking for.<\/p>\n<p>To <strong>permanently remove<\/strong> a post or posts from this list, tick the box to the left of the post (selecting as many as you wish), then click the Delete button at the top of the list.<\/p>\n<p>You can also <strong>make a post invisible<\/strong> to visitors, while keeping it for later use. To do this, click on the Title of the post to show the editing view. On the right hand side there is a &#8220;<em>Published Status<\/em>&#8221; drop-down box. Select <strong>Unpublished<\/strong> from this and click <strong>Save<\/strong>.<\/p>\n<h3>Example: Editing a page<\/h3>\n<p>To edit a page, select the <strong>Manage<\/strong> tab followed by the <strong>Pages<\/strong> link below it. Then find the page in the multi-page list (you can use the filter or search options) and click on its title. Make whatever changes you want and remember to click the <strong>Save<\/strong> button.<\/p>\n<h3>Example: Moving a post<\/h3>\n<p>Follow the instructions above for editing a page, but select a post. Scroll down below the post body to the <strong>Categories<\/strong> box. Un-tick the post&#8217;s current category and tick the new one. Press <strong>Save<\/strong>. When you reload the website, the post will have moved to the dynamic page showing the new category.<\/p>\n<h3>Example: Adding links<\/h3>\n<p>The Links page available from the main menu is dynamically generated from the list of links stored by the content management system. These can be added by clicking on the <em><strong>Write<\/strong><\/em> tab as you did for writing a post or page, then selecting <em><strong>Link<\/strong><\/em> from the horizontal list below. A simple form will be displayed requiring a <em>Name<\/em> to be used as the link text, the <em><strong>Web Address<\/strong><\/em> including the http:\/\/ and the category for the link. Be sure to select the <strong><em>External Links<\/em><\/strong> category or the link will not be shown on the Links page.<\/p>\n<h3>Features we don&#8217;t use<\/h3>\n<p><strong>Tags: <\/strong>Tags are similar to categories, but more numerous and can be used in a greater variety of ways. For our purposes categories meet all our needs.<\/p>\n<p><strong>Comments:<\/strong> Some WordPress websites allow visitors to comment on posts and pages. This feature has been completely disabled on the NDPA website, although you may still see the options relating to Comments in the admin section. This also simplifies managing and securing the website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide is intended to help you manage the content of the NDPA website. First I&#8217;ll show you how to access the new website both for viewing and editing. Then we&#8217;ll cover the structure of the site before leading you through practical examples showing you how to add new content, edit content, delete content and [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":3,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-178","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/drugprevent.org.uk\/ppp\/wp-json\/wp\/v2\/pages\/178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/drugprevent.org.uk\/ppp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/drugprevent.org.uk\/ppp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/drugprevent.org.uk\/ppp\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/drugprevent.org.uk\/ppp\/wp-json\/wp\/v2\/comments?post=178"}],"version-history":[{"count":0,"href":"https:\/\/drugprevent.org.uk\/ppp\/wp-json\/wp\/v2\/pages\/178\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/drugprevent.org.uk\/ppp\/wp-json\/wp\/v2\/pages\/3"}],"wp:attachment":[{"href":"https:\/\/drugprevent.org.uk\/ppp\/wp-json\/wp\/v2\/media?parent=178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}