Lines Matching refs:page

21  * url path: name for ns + slug (title) + page id
23 * url path: canonical path + page id
25 * url path: page path + page id
30 * - permanent canonical path (page id)
32 * - permanent page path (page id)
33 * - page path
35 * This is not the URL of the page but of the generated HTML web page (Ie {@link MarkupPath}) with all pages (slots)
42 * The page id is separated in the URL with a "-"
47 * The name would be the short page id `22h2s2j4`
51 * we can see then a page description, even order on it
55 * The canonical page for the page url
57 public const CANONICAL = "page:url";
58 const PROPERTY_NAME = "page-url-path";
60 public static function createForPage(MarkupPath $page): PageUrlPath
63 ->setResource($page);
83 $page = $this->getResource();
84 if (!($page instanceof MarkupPath)) {
85 throw new ExceptionNotFound("The Url Path is not implemented for the resource type (" . $page->getType() . ")");
91 $pageUrlType = PageUrlType::createFromPage($page);
119 return "The path used in the page url";
167 * to verify that this is a page id abbr
174 $page = $this->getPage();
175 if ($page->getPageIdAbbr() == null) return null;
176 $abbr = $page->getPageIdAbbr();
181 * Add a checksum character to the page id
182 * to check if it's a page id that we get in the url
193 * @return string|null return the decoded page id or null if it's not an encoded page id
208 * @return string|null - the checksum letter or null if this is not a page id
244 $page = $this->getResource();
245 $pagePath = $page->getPathObject()->toAbsoluteId();
246 if ((!$page instanceof MarkupPath)) {
247 $message = "The url path is only for page resources";
261 return Canonical::createForPage($page)->getValueOrDefault()->toAbsoluteId();
267 return $this->toPermanentUrlPath($page->getCanonicalOrDefault());
269 return $this->toPermanentUrlPath($page->getSlugOrDefault());
271 $urlPath = $page->getSlugOrDefault();
272 $parentPage = $page;
285 $urlPath = $page->getSlugOrDefault();
287 $parentPage = $page->getParent();
292 // no parent page