Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ANR_Home
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Everett, Brad
ANR_Home
Commits
02032ed5
Commit
02032ed5
authored
8 years ago
by
Brad
Browse files
Options
Downloads
Patches
Plain Diff
update relationship vars and widget headline var
parent
00b57560
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shared/vtl/widgets/common template/news-listing.vtl
+32
-47
32 additions, 47 deletions
shared/vtl/widgets/common template/news-listing.vtl
with
32 additions
and
47 deletions
shared/vtl/widgets/common template/news-listing.vtl
+
32
−
47
View file @
02032ed5
...
...
@@ -8,35 +8,36 @@
## --------------------------------------------------
## SETTING THE SORT ORDER ---------------------------
## --------------------------------------------------
#set ($sortBy = "Article.datePublished desc")
##set ($sortBy = "Article.datePublished desc")
#set ($sortBy = "Article.datePublished desc, modDate desc")
## --------------------------------------------------
## SETTING RELATIONSHIP FILTERS ---------------------
## --------------------------------------------------
#if($UtilMethods.isSet($organization))
#set($organizationRel = '+Organization-Article:')
#set($organizationID = $organization)
#if($UtilMethods.isSet($organization
Article
))
#set($organization
Article
Rel = '+Organization-Article:')
#set($organization
Article
ID = $organization
Article
)
#end
#if($UtilMethods.isSet($featuredPerson))
#set($featuredPersonRel = '+Featured-Person:')
#set($featuredPersonID = $featuredPerson)
#if($UtilMethods.isSet($featuredPerson
Article
))
#set($featuredPerson
Article
Rel = '+Featured-Person:')
#set($featuredPerson
Article
ID = $featuredPerson
Article
)
#end
#if($UtilMethods.isSet($contentLocation))
#if($UtilMethods.isSet($contentLocation
Article
))
#set($locationRel = '+Location-Content:')
#set($locationID = $contentLocation)
#set($locationID = $contentLocation
Article
)
#end
#if($UtilMethods.isSet($dataset))
#if($UtilMethods.isSet($dataset
Article
))
#set($datasetRel = '+Dataset-Article:')
#set($datasetID = $dataset)
#set($datasetID = $dataset
Article
)
#end
#if($UtilMethods.isSet($series))
#if($UtilMethods.isSet($series
Article
))
#set($seriesRel = '+Series-Article:')
#set($seriesID = $series)
#set($seriesID = $series
Article
)
#end
#if($UtilMethods.isSet($author))
#if($UtilMethods.isSet($author
Article
))
#set($authorRel = '+Author-Article:')
#set($authorID = $author)
#set($authorID = $author
Article
)
#end
## news pull
...
...
@@ -57,50 +58,34 @@
#set($newsListing = $dotcontent.pullPerPage("
+contentType:Article
$!{datasetRel}$!{datasetID}
$!{locationRel}$!{locationID}
$!{organizationRel}$!{organizationID}
$!{authorRel}$!{authorID}
$!{seriesRel}$!{seriesID}
$!{featuredPersonRel}$!{featuredPersonID}
$!{dataset
Article
Rel}$!{dataset
Article
ID}
$!{location
Article
Rel}$!{location
Article
ID}
$!{organization
ArticleArticle
Rel}$!{organization
ArticleArticle
ID}
$!{author
Article
Rel}$!{author
Article
ID}
$!{series
Article
Rel}$!{series
Article
ID}
$!{featuredPerson
ArticleArticle
Rel}$!{featuredPerson
ArticleArticle
ID}
",$!{page}, $!{itemsPerPage},"$!{sortBy}"
))
#else
#set($newsListing = $dotcontent.pull("
+contentType:Article
$!{datasetRel}$!{datasetID}
$!{locationRel}$!{locationID}
$!{organizationRel}$!{organizationID}
$!{authorRel}$!{authorID}
$!{seriesRel}$!{seriesID}
$!{featuredPersonRel}$!{featuredPersonID}
$!{dataset
Article
Rel}$!{dataset
Article
ID}
$!{location
Article
Rel}$!{location
Article
ID}
$!{organization
ArticleArticle
Rel}$!{organization
ArticleArticle
ID}
$!{author
Article
Rel}$!{author
Article
ID}
$!{series
Article
Rel}$!{series
Article
ID}
$!{featuredPerson
ArticleArticle
Rel}$!{featuredPerson
ArticleArticle
ID}
", $!{numberOfResults},"$!{sortBy}"
))
#end
<p>Dataset: $datasetRel $datasetID </p>
<p>Place “contentLocation”: $locationRel $locationID</p>
<p>Organization: $organizationRel $organizationID </p>
<p>Person “author”: $authorRel $authorID </p>
<p>Series: $seriesRel $seriesID</p>
<p>Person “featuredPerson”: $featuredPersonRel $featuredPersonID </p>
<section itemscope itemtype="http://schema.org/Article">
#if ($UtilMethods.isSet($
h
eadline))
#if (!$UtilMethods.isSet($headline
FontSiz
e))
#set ($headline
FontSiz
e = '1')
#if ($UtilMethods.isSet($
widgetH
eadline))
#if (!$UtilMethods.isSet($headline
Typ
e))
#set ($headline
Typ
e = '1')
#end
<h$!{headlineFontSize}>
#if($UtilMethods.isSet($newsHomepageUrl))
<a href="${newssHomepageUrl}">
#end
$!{headline}
#if($UtilMethods.isSet($newsHomepageUrl))
</a>
#end
</h$!{headlineFontSize}>
<h$!{headlineType}>$!{widgetHeadline}</h$!{headlineType}>
#end
#if($newsListing.size() > 0)
<ul class="">
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment