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.
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)
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.
To manage your pages:
Go to Visual Editor in your Nilead Admin Panel
Click Pages
Find and click the page name to edit its content, layout, SEO, and settings

Meta tags help search engines understand your page content. Nilead keeps this system flexible yet beginner-friendly.
Open Quick Menu → search for Meta
Turn on the fields you want to manage globally
(e.g., meta title, meta description, canonical URL, etc.)


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.

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.
Nilead lets you insert custom HTML, CSS, or JavaScript on a per-page basis.
<link>: Connect external resources
<meta>: Inject metadata (in <head>)
<style>: Inline CSS
<script>: Embed JavaScript
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.
Helps search engines avoid indexing duplicate versions of the same content.
<link rel="canonical" href="{{ nl_current_path() }}" />{% 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:
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)
If you want custom code applied across all pages:
→ Use Plugins > Global Custom Code
(See separate documentation: “Managing Global Custom Code via Plugins”)
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.