Document Manage your pages

Manage your pages

Full guide on managing pages, SEO meta tags, custom code, and URL structures in Nilead — the all-in-one CMS and website platform.

Table of content

TL;DR / Overview

Every Nilead website is made up of Pages that control the content users see at specific URLs. This guide walks you through how to manage these pages, edit their meta information, customize their URLs, and add per-page custom code. It includes advanced uses like dynamic routing, SEO Twig syntax, and canonical URL logic — plus safety notes to avoid breaking your site.

Prerequisites

  • Admin access to your Nilead dashboard

  • Your site must have at least one existing page

  • Familiarity with using the Visual Editor

  • Optional: Understanding of Twig (templating language used in Nilead)

Walkthrough

What is a Page?

A Page is a visual and logical content unit in your site that is accessible via one or more URLs. A website can have one or more pages, for example, if you have a website with the domain abc.com, you have may several pages:
Example:

  • abc.com → Homepage

  • abc.com/contact → Contact Page

Important: One page can serve multiple URLs if it uses dynamic content.
Example for a Product Detail layout:

  • abc.com/product/product-1-name

  • abc.com/product/product-2-name

  • ...

  • abc.com/product/product-10-name

All these URLs can be served by a single ProductDetail page.

NOTE: Page is associated with `Layout` to instruct how the content of the page should be displayed.

Accessing and Managing Pages

To manage your pages:

  1. Go to Visual Editor in your Nilead Admin Panel

  2. Click Pages

  3. Find and click the page name to edit its content, layout, SEO, and settings

click-visual-editor-page_1628745731_big

Managing Page Meta Tags

Meta tags help search engines understand your page content. Nilead keeps this system flexible yet beginner-friendly.

a. Enable Global Meta Fields

  1. Open Quick Menu → search for Meta

  2. Turn on the fields you want to manage globally
    (e.g., meta title, meta description, canonical URL, etc.)

quick menu - metas - Nilead platform

seo meta config

b. Edit Per-Page Meta Tags

Go back to each Page → You'll now see editable meta tag fields (enabled from global step).

  • Accepts plain text or Twig code

  • Has access to currentResource — a dynamic object of current page data

Example:

{{ currentResource.name }}

⚠️ Twig errors can break your site. If unsure, reach out to Nilead Support — it's FREE.

page meta seo

Editing Page URLs

Yes, you can change a page’s URL — but with caution.

Safe to change:

  • Static page URLs (e.g., /about, /contact)

  • Root path of dynamic pages (e.g., /products/)

Avoid altering:

  • Slug structure of dynamic entries (e.g., individual blog posts or products)

⚠️ URL misconfigurations may break your site or hurt SEO. When in doubt, Nilead Support is here to help — for FREE.

5. Adding Custom Code to Pages

Nilead lets you insert custom HTML, CSS, or JavaScript on a per-page basis.

Supported Tags:

  • <link>: Connect external resources

  • <meta>: Inject metadata (in <head>)

  • <style>: Inline CSS

  • <script>: Embed JavaScript

Insertion Options:

  • Header Custom Code → inserted before </head>
    (good for meta tags, preloaders, fonts, etc.)

  • Footer Custom Code → inserted before </body>
    (ideal for scripts that can be delayed like analytics)

You can use HTML and Twig here, for example:

<meta name="author" content="{{ currentResource.author }}" />

Caution:

Do not add Google Analytics, Meta Pixel manually here.
Use Nilead’s Plugin system — safer and easier.

Canonical URLs

Helps search engines avoid indexing duplicate versions of the same content.

Basic Example:

<link rel="canonical" href="{{ nl_current_path() }}" />

Paginated Listings (Advanced):

{% set page = app.request.query.get('page', 1) %}
{% if page == 1 %}
  <link rel="canonical" href="{{ nl_current_path() }}" />
{% else %}
  <link rel="canonical" href="{{ nl_current_path({'page': page}) }}" />
{% endif %}

You can paste the code into the custom code section like this:
page - custom code - header - Nilead platform

Easier Alternative:

Alternatively, you can also utilize the twig helper nl_canonical_url which is designed for this purpose:

<link rel="canonical" href="{{ nl_canonical_url({'page': 1}) }}" />

This logic ensures that:

  • Page 1 omits query string (/articles)

  • Page 2+ includes it (/articles?page=2)

Global Custom Code

If you want custom code applied across all pages:

→ Use Plugins > Global Custom Code
(See separate documentation: “Managing Global Custom Code via Plugins”)


FAQs

1. Can a page serve multiple URLs?
Yes, dynamic pages like product or blog detail pages do this by design.

2. What is currentResource in Twig?
It refers to the current page’s underlying data object (e.g., product, article).

3. Can I use Twig in custom code blocks?
Yes — both header and footer custom code sections fully support Twig.

4. Should I manage SEO via plugins or manually with custom code?
Use plugins for global tools (e.g., Google Analytics). Use custom code for per-page customization like canonical URLs.

5. Is it safe to change URLs or Twig code myself?
Only if you're confident. Errors in either can break your site. Nilead Support will help you for free.

Discord chat

We're available Monday–Friday, security and critical bug fixes are available 24/7.

Facebook page

Get the latest news and updates regarding Nilead platform and services.