News Manager: Layout blocks (components)

NOTE: This information is no longer valid

(Since 2.5)

The following GS components are loaded (if they exist):

- Before the news/post content:

  • nm-init (loaded in all news pages) <-- use it for your default settings
  • nm-top-pagetype (pagetype can be single, tag, archive or search); if it doesn't exist, the default nm-top component is loaded.

- After the news/post content:

  • nm-bottom-pagetype (pagetype can be single, tag, archive or search); if it doesn't exist, nm-bottom is loaded
  • nm-end (for all news pages)


For example, if we're on a single/full post page the following components will be executed, in this order:

  • nm-init
  • nm-top-single / nm-top
  • ... post content ...
  • nm-bottom-single / nm-bottom
  • nm-end

You can also insert any html/PHP code you wish (e.g. some header, footer, banner...) in those components.

You would normally only create nm-init, unless you want to define specific settings (or code) for some news page type (e.g. nm-top-single for single/full post pages).