Permalink

Aus Data-Wiki
<dfl:part name="Permalink">
			<!-- Noch anpassen. Auch Unterblöcke des OBJ sollen Permalink haben. -->
			<li class="Bausteine Permalink">
				<span class="gridLeft">
					<dfl:text>Link zu dieser Seite:</dfl:text>
				</span>
				<span class="gridRight">
					<a>
						<dfl:attribute name="href">
							<dfl:webrootbaseurl/>
							<dfl:text>document/</dfl:text>
							<dfl:value-of select="ancestor::document/@docType"/>
							<!--<dfl:text>/</dfl:text>-->
							<dfl:value-of select="ancestor::document/@docNumber"/>
							<dfl:if test="normalize-space(/root/command/parameter[@var='part']) and /root/command/parameter[@var='part']!='0'">
								<dfl:text>?part=</dfl:text>
								<dfl:value-of select="/root/command/parameter[@var='part']"/>
							</dfl:if>
						</dfl:attribute>
						<dfl:webrootbaseurl/>
						<dfl:text>document/</dfl:text>
						<dfl:value-of select="ancestor::document/@docType"/>
						<!--<dfl:text>/</dfl:text>-->
						<dfl:value-of select="ancestor::document/@docNumber"/>
						<dfl:variable name="partNum">
							<dfl:blocknumber/>
						</dfl:variable>
						<dfl:if test="$partNum!='0'">
							<dfl:text>?part=</dfl:text>
							<dfl:value-of select="$partNum"/>
						</dfl:if>
					</a>
				</span>
			</li>
		</dfl:part>