Skip to content

Commit

Permalink
Fetch prerendererd metadata dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
Kajetan Dvoracek authored and beatrycze-volk committed Mar 7, 2023
1 parent dec29ad commit c63eeab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Configuration/TypoScript/Plugins/kitodo.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,20 @@ plugin.tx_dlf_metadata {
}
}

plugin.tx_dlf_metadata_prerender < plugin.tx_dlf_metadata
plugin.tx_dlf_metadata_prerender {
settings {
prerenderAllSections = 1
}
}

# --------------------------------------------------------------------------------------------------------------------
# document
# --------------------------------------------------------------------------------------------------------------------
plugin.tx_dlf_document < tt_content.list.20.dlf_document
plugin.tx_dlf_document {
settings {
targetPidMetadata = {$config.prerenderMetadataPid}
}
}

Expand Down
3 changes: 3 additions & 0 deletions Configuration/TypoScript/constants.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ config {
# cat=plugin.tx_dfgviewer/links/050; type=int+; label=Kitodo Page View
kitodoPageView =

# cat=plugin.tx_dfgviewer/links/051; type=int+; label=PID for Prerendered Metadata
prerenderMetadataPid =

# cat=plugin.tx_dfgviewer/piwik/010; type=string; label=Piwik Hostname
piwik_hostname =

Expand Down
1 change: 1 addition & 0 deletions Resources/Private/Templates/MetadataPrerender.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<f:cObject typoscriptObjectPath="plugin.tx_dlf_metadata_prerender" />

0 comments on commit c63eeab

Please sign in to comment.