$left
$middle

The Masthead

The masthead is of an essential value to the end-user since it makes it possible to navigate to other services provided by Malmö stad and it must be available on all pages.

The asset host provides ready-to-use markup fragments for the mastheads. The masthead should be cached for at least an hour up to 24 hours depending of traffic to your apllication. The markup in the masthead will be formatted with the included core CSS file.

The reason why you should not download the code and add it to your own template is that changes in the masthead will not be reflected in your application if you do so.

The reason why you must cache it in your server application is that the speed of your service will be affected otherwise and a background request to the asset host must be fulfilled for each request before your own server can make the response to the client.

Note: If you for some reason can't include and cache a remote fragment in your application, contact the Central Web Group.

Masthead URL's

The URL's to get the markup fragments for external and internal mastheads respectively are:

http[s]://www.malmo.se/assets-2.0/remote/external-masthead/
http[s]://komin.malmo.se/assets-2.0/remote/internal-masthead/

Use the https: protocol to the remote masthead for pages in your application that are using https: themselves. This will cause the reference to images in the masthead to use the same protocol.

Placement of the Masthead

Include the masthead within the outmost div container that must be the placed as a direct child under the body tag (more about the usage of the wrap-all container).


<div class="wrap-all">
  <!--Include the remote masthead here -->
  <!--Rest of the page markup goes here -->
</div>

Query Parameters For the External Remote Masthead

Name Available Values Explanation
node medborgare
foretagare
turist
kommun-politik
mina-sidor
Makes the corresponding menu item in the top menu to be shown as active.

Examples

This URL will mark the 'Medborgare' top level menu item as active:

http://www.malmo.se/assets-2.0/remote/external-masthead/?node=medborgare

This URL will mark the 'Företagare' top level menu item as active and use https: for the images in the masthead:

https://www.malmo.se/assets-2.0/remote/external-masthead/?node=foretagare

Query Parameters For the Internal Remote Masthead

Name Available Values Explanation
node forvaltning
arbetsfalt
var-kommun
hr
forum
blogg
Makes the corresponding menu item in the top menu to be shown as active.

Examples

This URL will mark the 'Forum' top level menu item as active:

http://komin.malmo.se/assets-2.0/remote/internal-masthead/?node=forum

This URL will mark the 'Blogg' top level menu item as active and use https: for the images in the masthead:

https://komin.malmo.se/assets-2.0/remote/internal-masthead/?node=blogg

Senast ändrad:

en