Webbläsaren som du använder stöds inte av denna webbplats. Alla versioner av Internet Explorer stöds inte längre, av oss eller Microsoft (läs mer här: * https://www.microsoft.com/en-us/microsoft-365/windows/end-of-ie-support).

Var god och använd en modern webbläsare för att ta del av denna webbplats, som t.ex. nyaste versioner av Edge, Chrome, Firefox eller Safari osv.

Content Types

In Drupal, there are several different types of content you can work with. On this page, you will find a summary of all the content types and links to pages where you can learn more about each one.

You use pages to build the website’s information architecture. There are several different types of pages you can use to create content.

There are also a number of pages that Drupal automatically generates to display content in various lists. You can find information about these automatically generated pages under the content type listed on them.

Articles are a dynamic content type used, for example, to present news, features and similar content. Articles can be listed in various types of feeds and can be presented in many different ways, but are not generally used to build the website’s information architecture through navigation and menus. 

Articles are listed on the automatically generated pages, including the News page and the News archive.

Create an article

  1. Go to Content > Add content > Article via the admin menu.
  2. Enter the main title of the article in the 'Title' field.
  3. In the ‘Lead’ field, write your lead paragraph, and in the field below, ‘Short Lead’, you can write a shorter summary (max. 150 characters) that will appear in listings and when articles are displayed.
  4. To add a featured image for the article – which is also the image that appears in listings and on the homepage – click on ‘Add media’ and select an existing image from your media library, or upload a new one. To add a caption, type it into the ‘Local media caption’ field.
  5. Under the heading "Published by", enter the first name, surname and email address of the article's author.
  6. Enter your main text in the "body" field. Make sure you structure your text effectively and format headings and subheadings correctly.
  7. Tag the article so that it is easier to find in the admin interface and so that it can be found more easily by Lund University’s search engine.
  8. If you wish, you can add links to three other articles related to your topic under "related articles", and you can choose whether the article should appear on the news page by ticking the box next to "show as main news article".
  9. Preview your article by clicking "Preview", then choose whether to save it as a draft, schedule its publication, or publish it straight away.
  10. Click Save to save your article.
     

All websites created in Drupal automatically include two news pages. On this website, they are called ‘News’ and ‘News Archive’. Here you can find out what settings you can configure on these pages.
Drupal automatically creates two pages linked to news articles published on the website: 


1.    The News/Latest news page, where selected articles are displayed, at the address xxx.lu.se/news


2.    The 'All News' page, which is an archive where all articles are displayed, at the address xxx.lu.se/news/all.

On this website, we refer to the pages as the News page and the News archive. If you have the role of Site administrator or Site editor, you can make certain changes to customise the appearance of these pages, and if you create articles, you can control which articles appear where.

News archive

The news archive, or "All news" in Drupal, is a page that lists all the news articles published on the website. The articles are listed by publication date, with the most recent one appearing at the top. The news archive looks the same on all websites, but if you have the role of site administrator or site editor, you can customise the page by adding one or more info boxes that appear in the right-hand column of the page (or at the bottom of the page if viewed on smaller screens).

Add one or more info boxes to the news archive page

1.    If you don’t already have a saved info box in your content library, you’ll need to create one. Once you’ve created your info box, or if you already have one, you can move on to the next step.

2.    Go to the admin menu and select Settings > Information on static pages > All news

3.    You will automatically be taken to the "Edit information" section of the page. Add an info box by searching for its name in the field and clicking on the info box you wish to select.

4.    If you want to add more, click on "Add another item" and repeat the previous steps in the new field. Click "Save configuration". If you want to see what it looks like, you can switch to view mode by clicking "View information".

News page

The news page is a page where selected news items are highlighted to make them stand out. Here you can customise the page by selecting which articles to feature at the top, how many articles to display at a time on the page, and you can also add info boxes and contact boxes, for example to provide details of press contacts.

Highlight top stories and set the number of stories displayed on the page

Please note that you must have Site admin permissions for this step.
1.    Go to Settings > Information on static pages > Latest news to access the settings for the news page.

2.    In the "Top articles" fields, select the three articles you want to highlight. Arrange them in order of importance, so that the article you want to display at the top is assigned to "Level 1". The remaining two will both appear under "Level 2" and be displayed side by side on the page, but you should still select the more important of the two and place it under "Article 1" and the other under "Article 2", as on mobile screens they are displayed one at a time from top to bottom in the order you have entered them.

3.    Under "Number of articles in the news list", you can choose how many articles to display on the page by entering the number in the field, or by clicking the up and down arrows to adjust the figure.

4.    If you want to add info boxes and contact boxes, please follow the instructions in the tab below. Otherwise, scroll to the bottom of the page and click Save configuration to save your changes.


Add info boxes and contact boxes for press contacts

1.    If you are not already on the settings page, go to Settings > Information on static pages > Latest news.

2.    To add infoboxes, you must first create them so that they are available in your content library. To select an infobox, search for its name in the search bar and choose the one you wish to add.

Create an infobox

3.    If you want to add more infoboxes, click on "Add another item" and repeat the step above in the new field for each new infobox you wish to add. 

4.    To add press contacts to a contact box, you must first have created one so that it is available in your content library. Just as you would add an info box, you add a contact box by searching for its name in the field. You follow the same procedure if you wish to add more contact boxes, as in step 3.
 

Web forms in Drupal are based on two different components that together make up a complete web form. Web forms are built using the ‘webform’ content type and the ‘webform page’ page type (a page for web forms). 

Events are a content type in Drupal. On the Events page, you will find instructions on how to create events locally and publish them to your website’s calendar. You can also create events using the calendar sharing feature, and you can use this feature to share your events with calendars on other websites. You can find more information about this on the pages about calendar sharing.

In Drupal, you can work with images, videos, documents and other media, such as audio clips and podcasts. Here you will find information and instructions on how to upload or embed media, as well as what you need to bear in mind when doing so. 

Infoboxes are content modules that can be designed in many different ways. You can create infoboxes via the administration menu and then place them on pages in various ways, but you can also create infoboxes directly in the layout tool.

Create an infobox via the administration menu

Contact boxes are content modules used to display contact details. These are separate from personal pages and the listings of these, and may be used to provide press contact details on article listings, or on a manually created subpage intended to present contact details in a different way from that on personal pages. 

In Drupal, there are various types of pages that you can create yourself (depending on your role and permissions). Each page type has a specific function and intended use, which we recommend you follow. A number of pages are also created automatically on your website in the form of various listings. You cannot create such pages yourself, but you can customise them depending on your permissions and role.

Landing pages (Landing pages)

Landing pages are what are known as navigation pages. You use these to create the home page and the entry pages that you place at the top of your navigation structure.

Subpages (Pages)

Subpages are pages where you can add your informative content, and by using subpages you can build your website’s information architecture. 

Personal pages (Personal pages)

You can create personal pages for staff members you wish to feature on your website. You create these pages using the staff member’s Lucat ID, and information from Lucat and Lucris is automatically retrieved for the personal pages.

Web form pages

Web form pages are created when you create web forms, which are a different type of content. To have a web form on your website, you need to create a web form page and then place the form within it.

Drupal also automatically creates a number of pages on your website. These pages contain listings and are used to display your content in a feed. You can customise the automatically generated pages to a certain extent, depending on your role and permissions. This applies to the following pages:

News archive

News page

Calendar

Staff list

Accessibility Statement 

You can find more information about the automatically generated pages on the pages for the content types they list. For example, you can find information about the news archive and the news page on the page about articles.

You can benefit greatly from using landing pages when building your website in Drupal. Use landing pages when creating a home page for your website and when creating entry pages that you want to place at the top of your main menu. Home pages and entry pages are known as navigation pages and serve specific purposes.

Landing pages make it easier for users to find their way around

A landing page is a type of page that is primarily suited to two types of pages: homepages and entry pages. Homepages and landing pages are known as navigation pages. Navigation pages are designed to help users find their way around the website by making the following clear:

  • the user's location
  • what the user can expect to find on the website in general or under a specific menu item in the main menu
  • how the user can navigate further on the website.

When navigation pages achieve their purpose, they also serve as an effective tool for guiding users further through the website.

Create a landing page

Go to the control panel and select the following menu options: 
Manage > Content > Add content > Landing page

In the "Title" field, enter the name of the landing page.

Tap Save. 

You create landing page content in layout mode

When you create a landing page, in "Edit" mode you can’t do much more than enter a title and save your landing page. To build the landing page and fill it with content, you need to work in layout mode instead. You can find information on how to use the layout tool in different ways on the pages about appearance and layout. 

Set the landing page as your home page

Once you have created a landing page and added content to it in layout mode, you may want to use it as your home page. You can do this on the page for basic website settings.

For pages that are purely informational and require more extensive text content, subpages – known as "pages" in Drupal – are the most suitable option. Here you will find information on what a subpage is used for and how to create one in Drupal.

When you want to create pages that are informative in nature, require more text content and are designed to provide users with information on a specific area or topic, subpages are the most suitable option. Subpages are located below the landing pages in the navigation structure. You can also create further subpages under your subpages if you need to provide even more detailed information.

Examples of when subpages are appropriate

If you have a landing page on the topic of "Studying", suitable subpages might include:

  1. Undergraduate education
  2. Postgraduate education
  3. Guidance on study-related matters. 

Instructions on how to create subpages

  1. Go to the admin menu and select Content > Add content > Page
  2. Enter the page title (max. 90 characters) in the mandatory 'Title' field
  3. If necessary, enter a subtitle that briefly explains the page in the 'kicker' field
  4. Write a lead – a short introduction to the page that summarises the key points – in the lead field
  5. In the text editor, enter your main text in the body field. Organise and structure it using correctly formatted headings and subheadings.
  6. Tag your content with relevant tags in the 'free text tags' field.
  7. Specify who is responsible for the page by selecting an existing page manager or by creating a new one.
  8. If you have an English version of the page, enter the link to it in the ‘Link to English page’ field.
  9. If you want to add the page to your menu structure, you can do so under 'Menu settings'. Follow the instructions on how to do this in the section 'Add your subpage to the menu structure'. 
  10. Choose whether you want to save the page as a draft, publish it immediately, or schedule it for publication at a later date. You can find out how to schedule publication in the "Schedule publication" section.
  11. Save the page as a "Draft" or "Published" to publish it immediately, then click Save. If you want to preview your page, click Preview to switch to preview mode.

Add a subpage to the menu structure (menu settings)

  1. Go to the settings menu, which you’ll find on the right-hand side of the page in Edit mode. Tick the box if you want your page to appear in a menu.
  2. The link title is what appears in the menu and should be the same as the page title. It is also preset here. In some cases, it may be appropriate to make the link title slightly shorter than the heading so that it looks good in the menu, but it is best to keep the heading short and clear as well. The heading and link title must never differ completely, as this will confuse the user when navigating the website.
  3. You can also enter a slightly longer description that appears when you hover the mouse pointer over the menu option without clicking. This can be useful on a home page or a collection page, for example.
  4. Under 'Parent Item', select the existing page in the menu structure under which the new page should appear.
  5. Position the page in the correct place by specifying its weight – a menu link with a lower number will appear above one with a higher number.
  6. If you are doing this whilst creating a new page, simply save once you have finished configuring all the settings. If you want to add a page to the menu at a later stage, remember to save again by clicking Save.

Schedule publication (Scheduling options)

  1. Go to the scheduling options, which you’ll find on the right-hand side in Edit mode.
  2. Enter the date and time when you want the page to be published under 'Publish on'.
  3. If you want to schedule an unpublish, select the date and time under ‘Unpublish on’.
  4. If you are carrying out this step whilst creating a new page, save your changes once you have finished configuring all the settings. If you’re returning to a draft and scheduling it, remember to save it again by clicking Save.

A personal page is a page you can use to introduce staff members on your website. Contact details are retrieved from Lucat, and publications are retrieved from the university’s research database, Lucris. Here, we explain how you, as a site administrator, can create a page for an employee, and how you, as an employee, can then edit your personal page.

Only users with the 'site administrator' role can create personal pages. When you create personal pages for employees, they are automatically granted 'staff' access rights and can edit their own pages. All personal pages are then listed under an automatically generated page called 'People list', which you can access by adding "/peoplelist" to the end of your website address, like this: "xxxxx.lu.se/peoplelist". To create a personal page, the employee must be listed in the staff directory in Lucat.

Instructions for creating and editing personal pages


Create a personal page (Site administrator)

  1. Go to Content > Add content > Personal page in your admin menu.
  2. In the LUCAT ID field, enter the LUCAT ID of the person for whom you wish to create a personal page. The person's name automatically becomes the page title and cannot be changed. Please note that an employee must be listed in the LUCAT staff directory in order for a personal page to be created.
  3. As the website administrator, you can fill in the rest of the information on the page, but it is common practice to let the employee do this themselves.
  4. In order for staff to be able to tag their pages with tags and categories, you need to create them. You can find out how to do this on the pages about tags and taxonomies.
  5. Click Save when you’re done. The employee will now automatically be assigned the ‘Staff’ role and can customise their page themselves. The employee’s page will also automatically appear in the list on the People page.

Customise your personal pages

  1. Log in with your Lucat ID and find your personal page by searching for your name and selecting "Personal page" in the content type filter under Content > List all content. 
  2. Click on Edit to enter edit mode for your page.
  3. Your primary role is automatically retrieved from Lucris and displayed in the 'Kicker' field. If you want something else to appear there, you will need to enter it yourself in the field. Please note that your primary business role is not automatically displayed anywhere else on your personal page, so if you want it to appear there, you will need to enter it manually in another section.
  4. In the 'Lead' field, you can write an introduction – for example, a brief summary of your role and where you work.
  5. If you want to add a photo of yourself, upload it by selecting ‘Add new or existing image’ under the ‘Image’ section. You can choose to upload a new image or use one that is already in the website’s image library.
  6. If you want to hide the list of publications from Lucris, you need to tick the ‘Hide publications’ box.
  7. If you wish to change the heading of the publications list, enter the new title in the ‘Title, research outputs’ field. Up to 20 publications are displayed in the publications list.
  8. In the text editor for the 'body' field, you can add text, images and links relevant to your personal page. 
  9. Tag your personal page with relevant tags in the ‘free text tags’ field and select relevant categories in the ‘categories’ field.
  10. You can add existing infoboxes to the page by selecting them under ‘Info box’. The infoboxes will automatically appear in the right-hand column of the page.
  11. Specify who is responsible for the page under ‘Page Manager’, and provide a link to any mirror site under ‘Link to other languages’.
  12.  Click Save to save.

 

Listing of personal pages

The list of people on the 'People List' page is an automatically generated list showing the people for whom you have created personal pages. The page features a built-in search function that allows your visitors to search for staff and filter staff listings by category.

As the site administrator, you create categories that staff members can then choose to use to tag their personal pages. Once you have logged in to the website, you can find the page under Manage > Settings > Information on static pages > Peoplelist.

Select headings for the various categories. You will also find links here to add options to the various categories.

You can create the categories via Taxonomy > Personal page categories > Add term or Taxonomy > Personal page secondary categories > Add term (links to these are also provided directly from the page above). 

In the staff directory, users can then filter employees by selecting categories from a list.
 

Link to the 'People' page in the menu structure

When editing the /peoplelist page, the "Menu settings" option that appears on standard pages in edit mode is not available; therefore, if you wish to link to the page via the menu, you will need to go to the menu settings and add or edit an existing menu link. You can also link to a category within /peoplelist. Click on the category you wish to link to in order to retrieve the correct URL. Instructions on how to do this can be found via the link below.
 

You create contact boxes to display a person’s contact details. You can place contact boxes on product listing pages, but you can also place them on a subpage that you have created as a contact page.

Please note that if your website uses the ‘personal pages’ page type, an automatically generated staff directory will be created at the address xxx.lu.se/peoplelist. Many people choose to create a menu link to this page and to use the categories of the personal pages to automatically create filters for different staff groups within the staff directory. 
The contact forms you create on this page can be used when you want to create a manual contact page using a subpage, which is therefore not linked to personal pages or staff lists.

Create a contact form


1.    Go to the administration menu and select Content > Add content > Contact box. 

2.    In the ‘Administrative title’ field, enter an internal name for your Contact box so that you can easily find it in your content library when you go to add it to the page itself. This will not be visible to visitors.

3.    Enter the name of the contact person in the 'Name' field and their job title in the 'Job title' field. If you are unsure of the job title, please check Lucat.

4.    Enter the person’s email address in the ‘Email’ field and their telephone number in the ‘Telephone/Mobile number’ field.

5.    Enter and select a link in the URL field and enter a link text in the Link text field to create a custom link in your contact box. As you start typing in the URL field, pages on your website will be filtered automatically, but you can also simply enter a web address if you wish to link to an external site.

6.    In the 'Description' text field, you can provide further details about the person and their role.

7.    To add a photo of the person, click on ‘Add new or existing image’ and follow the steps provided.
If you want to control how the image is cropped, make sure to use a square image, but otherwise follow the recommendation for a minimum width of 1500 pixels so that the image can also be used in other contexts within Drupal. If the image has different proportions, you can make use of the Focal point feature, which allows you to specify where the focus in the image should be, so that Drupal crops the image accordingly.

8.    Finally, you can add a background colour to the entire contact box. 

9.    Click Save to save your contact box.