Understanding umbraco's "currentPage"
来源:互联网 发布:关系型数据库rds 编辑:程序博客网 时间:2024/05/16 07:19
Understanding "currentPage"
As mentioned on the previous page, the currentPage parameter is important for us in Umbraco. It is the complete XML document of the published site, and is how we reference the data stored in each document. By default, the context of the XML document is set to the requested page.
In XSLT, to reference the parameter, and other variable types, we use the "$" and the name of the variable or parameter, thus $currentPage. However, before we use this parameter, we need to know what is in the XML document, and how to reference the content.
XML is referenced in XSLT through the use of XPATH, a query syntax that resembles that of DOS file commands. Since XML has the ability to contain various levels of information, XPATH has means to traverse these levels, and retrieve data based upon the current context. But again, before we can use XPATH, we must know what is in the XML document.
The XML document, as mentioned before, contains all the content of the published documents. This data is stored in the XML document structured in the same manner as your tree is laid out in Umbraco. So, documents are nested to create the hierarchy that we can easily use.Each document in
Umbraco consists of several common pieces of data, and they are:
* id
* version
* parentID
* level
* writerID
* creatorID
* nodeType
* template
* sortOrder
* createDate
* updateDate
* nodeName
* urlName
* writerName
* creatorName
* nodeTypeAlias
* path
These are store as attributes of the document, which is called "node". The properties that are added to the document in Umbraco, and what the user edits are referenced as "data". Data consists of a couple common pieces of data, which are attributes on the data elements. These are:
* alias
* versionID
This is structured similar to the following in the XML document.
<!DOCTYPE umbraco [<!ELEMENT nodes ANY><!ELEMENT node ANY><!ATTLIST node id ID #REQUIRED>]><root id="-1"><nodeid="numeric-value"version="guid-value"parentID="numeric-value"level="numeric-value"writerID="numeric-value"creatorID="numeric-value"nodeType="numeric-value"template="numeric-value"sortOrder="numeric-value"createDate="datetime-value"updateDate="datetime-value"nodeName="text-value"urlName="text-value"writerName="text-value"creatorName="text-value"nodeTypeAlias="text-value"path="csv-numeric-value"><dataversionID="guid-value"alias="text-value">field-value or <![CDATA[field-value]]></data><data ...>...</data><node ...>...</node></node><node ...>...</node></root>
- Understanding umbraco's "currentPage"
- Understanding Swing’s Model
- UNDERSTANDING PSQL'S MVCC
- Understanding Python's "for" statement
- Understanding Python's "with" statement
- Understanding Python's "with" statement
- Understanding Python's "with" statement
- Understanding Python's "with" statement
- Understanding Ionic’s Side Menu
- limit "+currentPage* pageSize +" ,"+pageSize
- [ZT]Understanding Python's "with" statement
- FFmpeg Understanding(1. What’s the FFMPEG?)
- Better Understanding PHP’s Garbage Collection
- Understanding CloudStack’s Physical Networking Architecture
- Understanding Chan Chan's in Go
- Umbraco Dynamic
- Understanding
- 理解模拟器的限制(Understanding the Emulator's Limitations)
- C# 导出excel 生成excel
- 【Machine Learning实验5】SVM实验
- Android系统中GC什么情况下会出现内存泄露呢?
- linux中用户组的管理(setuid、setgid)
- 每天读一遍,不久你就会变
- Understanding umbraco's "currentPage"
- Android开发十大必备工具(图文)
- 研究了一段时间siverlight,最近需要实现一个动画,此动画是循环滚动的动画
- BOJ262 Channel Coding DP
- 文件下载
- a different object with the same identifier value was already associated with the session 2
- 关于数字签名挺有意思的解释
- 数据库中的1NF、2NF、3NF,BCNF范式解析1
- 远程控制的安装设置和使用