diff --git a/.gitignore b/.gitignore index 1dd9d21664697f9214e6ce750511e887460502a0..3bc58fcba846eeac7e751425d6e6ef9c4dacefd7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ build/ test/ local.build.properties +expath-pkg.xml diff --git a/docs/forking.md b/docs/forking.md index 3fa3569c632c797cfbcfe0499c18713098778e71..92efd7059971c44a14e46d3aa79fe0a3f60354f4 100644 --- a/docs/forking.md +++ b/docs/forking.md @@ -14,16 +14,9 @@ in the first panel (1).  and wait until you get redirected to your own instance. -[Enter a new secure password!] -To continue you have to enter new credentials to the SADE Plugin configuration: - -* URL: append -ProjectName to "/sade -* User: ProjectName -* Password: - -The username will be the same as the project name and you have to enter the -formerly typed password here as well. +The resulting view should present new credentials at the top. Again you have to +set these credentials in the [preferences in TextGridLab](publish.md#configuration). # Download & Tracking changes You can download any application by clicking on the download button at the SADE diff --git a/modules/app.xqm b/modules/app.xqm index 5a3a7d17472097f2fd5644b103b1d829fca7c7c3..394395f109e696d8cc146a0d6a7415def721e322 100644 --- a/modules/app.xqm +++ b/modules/app.xqm @@ -28,6 +28,15 @@ declare function app:title($node as node(), $model as map(*)) { config:get("project-title") }; +(:~ + : Get the target of this app by using the repo.xml. + : @param $node the HTML node with the attribute which triggered this call + : @param $model a map containing arbitrary data - used to pass information between template calls + :) +declare function app:target($node as node(), $model as map(*)) { + config:repoget("target") +}; + (:~ : Provides dynamic CSS based on the requested resource name :) declare function app:css-injection($node as node(), $model as map(*), $exist-resource) { @@ -380,3 +389,15 @@ element { node-name($node) } { $model("function")/xqdoc:comment/xqdoc:return/text() } }; + +declare function app:fork-successfull($node as node(), $model as map(*), $newpw as xs:string?) { +if(not($newpw)) then () else +