Site maintenance (Drupal, DIY): verschil tussen versies
(15 tussenliggende versies door dezelfde gebruiker niet weergegeven) | |||
Regel 6: | Regel 6: | ||
{| | {| | ||
− | |[[file:20161027-2148.png|thumb|Usually, somewhere there is a link called ''Login'', ''Account'', ''Members'' or something along those lines. In this case, it's the link '' | + | |[[file:20161027-2148.png|thumb|Usually, somewhere there is a link called ''Login'', ''Account'', ''Members'' or something along those lines. In this case, it's the link ''Login'' at the top right corner of the home page]] |
− | |[[file:20161027-2148.png|thumb|Alternatively, you can reach the ''User login''-page by adding <code>?q=user | + | |[[file:20161027-2148.png|thumb|Alternatively, you can reach the ''User login''-page by adding <code>?q=user</code> to the site's address. E.g., if your site is called <code>http://example.com</code>, the address of the login page would be <code>http://example.com/?q=user</code>]] |
|} | |} | ||
== Add a page == | == Add a page == | ||
− | Drupal is a content management system, meaning that it makes it easier to manage content, add pages, etc. In Drupal parlance, a ''page'' is a statical piece of content | + | Drupal is a ''content management system'', meaning that it makes it easier to manage content, add pages, etc. In Drupal parlance, a ''page'' is a more-or-less statical piece of content. E.g., the ''Contact'' page or ''About us'' page. How to add a page: |
{| | {| | ||
|[[file:20161030-1853.png|thumb|Choose ''Content » Add content » Basic page'']] | |[[file:20161030-1853.png|thumb|Choose ''Content » Add content » Basic page'']] | ||
− | |[[file:20161030-1854.png|thumb| | + | |[[file:20161030-1854.png|thumb|A ''teaser'' is the short introduction to an article, that appears on the front page of the site. Usually, teasers are just the first few lines of the article and are automatically generated. However, you can also write the teaser yourself. In that case, click ''Edit summary'', and a text area appears for entering the teaser]] |
− | |[[file:20161030-1855.png|thumb|Check the item ''Provide a menu link'' for creating a link to this item from the site's main menu]] | + | |} |
− | |[[file:20161030-1856.png|thumb|Click ''Publishing options'' and check ''Promoted to front page'']] | + | {| |
+ | |[[file:20161030-1855.png|thumb|Check the item ''Provide a menu link'' for creating a link to this item from the site's main menu. Without such a link, visitors to the site wouldn't be able to find the page through the menu]] | ||
+ | |[[file:20161030-1856.png|thumb|Click ''Publishing options'' and check ''Promoted to front page''. Now the teaser will be added to the front page]] | ||
|} | |} | ||
Regel 32: | Regel 34: | ||
== Change prices == | == Change prices == | ||
+ | |||
+ | Let's discuss various ways to manually change the prices of products on your site. | ||
+ | |||
''' Method 1: Through the gears icon ''' | ''' Method 1: Through the gears icon ''' | ||
− | Probably the easiest way to update prices on your site: | + | Probably the easiest way to update prices on your site, although it may not always work: |
{| | {| | ||
Regel 43: | Regel 48: | ||
''' Method 2: Through the menu ''' | ''' Method 2: Through the menu ''' | ||
+ | |||
+ | A way to change prices which is a bit less intuitive, but more robust: | ||
{| | {| | ||
|[[file:20161027-2151.png|thumb|At the black menu at the top, use <code>Store » Product » All product variations</code>. Select your product. Click ''Edit'', change the price, and click ''Save'']] | |[[file:20161027-2151.png|thumb|At the black menu at the top, use <code>Store » Product » All product variations</code>. Select your product. Click ''Edit'', change the price, and click ''Save'']] | ||
+ | |} | ||
+ | |||
+ | == Upload & use a file == | ||
+ | |||
+ | ''Uploading a file'' and subsequently ''using that file'' in a posting, is a bit convoluted, but nothing that you can't do: | ||
+ | |||
+ | ''' Uploading a file ''' | ||
+ | |||
+ | {| | ||
+ | |[[file:20161030-1932.png|thumb|Go to ''Content'', find item ''Upload-dummy'', and click ''Edit'']] | ||
+ | |[[file:20161030-1933.png|thumb|Scroll down to ''Add a new file''. Click ''Browse'', select a file, and choose ''Upload'']] | ||
+ | |[[file:20161030-1934.png|thumb|I've now uploaded a file named ''Flier-2016.07.31.pdf''. In order to use it, I need to know its URL: Click with the right mouse button on the file, and select ''Copy link location'']] | ||
+ | |} | ||
+ | |||
+ | ''' Use the file ''' | ||
+ | |||
+ | In order to make the file available for site visitors, we have to do something useful with the URL that we just genererated. Here's an example: | ||
+ | |||
+ | {| | ||
+ | |[[file:20161030-1935.png|thumb|This block contains a link to a file. I want to update this link, to point to the newly uploaded file. Click on the gear icon, and select ''Edit'']] | ||
+ | |[[file:20161030-1937.png|thumb|Right-click on the link, and select ''Edit link''. Now this dialog box appears. The old link is <code>/sites/default/files/Flyer-2016.10.30.pdf</code>. Replace this with the URL that we copied to the clipboard. This will be something like <code>http://example.com/sites/default/files/Flyer-2016.07.31.pdf</code>. That will be just fine. However, if you shorten this to <code>/sites/default/files/Flyer-2016.07.31.pdf</code> that would be even slightly better (it makes the site a tiny bit faster, and if you ever move the site from e.g., <code>example.com</code> to something else, this link will still be functioning. However, if such a subtlety is lost on you: just ignore this!). Done? Close the dialog box, and scroll to the bottom of the page to safe the result]] | ||
|} | |} |
Huidige versie van 31 okt 2016 om 06:50
This article discusses several common maintenance tasks that you might come across when managing a Drupal 7 web shop.
Log in as administrator
Before you can do any maintenance work, you first have to log in with your administrator account. This can be done in several ways:
Add a page
Drupal is a content management system, meaning that it makes it easier to manage content, add pages, etc. In Drupal parlance, a page is a more-or-less statical piece of content. E.g., the Contact page or About us page. How to add a page:
Change order on home page
The home page usually containts teasers: Short introductions to a page. These teasers are sorted by publication date, and the easiest way to change the order, is by changing the publication date. As an example:
Change prices
Let's discuss various ways to manually change the prices of products on your site.
Method 1: Through the gears icon
Probably the easiest way to update prices on your site, although it may not always work:
Method 2: Through the menu
A way to change prices which is a bit less intuitive, but more robust:
Upload & use a file
Uploading a file and subsequently using that file in a posting, is a bit convoluted, but nothing that you can't do:
Uploading a file
Use the file
In order to make the file available for site visitors, we have to do something useful with the URL that we just genererated. Here's an example: