bchauvin / confluence-nxcanonical-manager

Fork from https://bitbucket.org/aragot/confluence-seo-manager/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nuxeo Canonical URL Manager For Confluence

What It Is

This is a fork from the SEO Manager plugin for Confluence: https://marketplace.atlassian.com/plugins/com.playsql.seo-manager

It has been simplified to handle only one thing: Nuxeo documentation's canonical urls management.

How To Use It

In the doctheme's jar, in the doctheme/decorators/main.vmd file, add the following before the /head tag:

$ diff main.vmd.org main.vmd
17c15,23
<     $!sitemeshPage.getProperty("page.canonical")
---
>     <!-- nxcanonical manager -->
>     #if($sitemeshPage && $body && $nxcanonical.canPrintNxCanonical($sitemeshPage))
>       #if($nxcanonical.printNxCanonical($sitemeshPage, $body))
>         <link rel="canonical" href="$nxcanonical.printNxCanonical($sitemeshPage, $body)" />
>         <link rel="shortlink" href="No tiny URL for this page">
>       #else
>         $!sitemeshPage.getProperty("page.canonical")
>       #end
>     #end
127d132
<

About

Fork from https://bitbucket.org/aragot/confluence-seo-manager/

License:Apache License 2.0


Languages

Language:Java 100.0%