Foren
Cannot use custom Application Display Template for article's Display page
Khiem Thien Tran, geändert vor 9 Jahren.
Cannot use custom Application Display Template for article's Display page
New Member Beiträge: 2 Beitrittsdatum: 22.05.14 Neueste Beiträge
Hi all,
I have a page that lists all articles called "list news" page.
I created a page for display article's details called "news details" page.
In each journal article, I specify "news details" for its Display page.
Currently, I create a new Application Display Template for Asset Publisher in journal article's Display page to customize the article details display.
I just test it by display only title of article like the news-details.PNG attached file but it always shows full content like weird-display-page.PNG.
Although in "list-news" page, the article link is URLViewInContext link generated by my code:
#set( $viewURL = $assetPublisherHelper.getAssetViewURL($renderRequest, $renderResponse, $entry))
#if( $assetLinkBehavior != "showFullContent")
#set( $viewURL = $renderer.getURLViewInContext($renderRequest, $renderResponse, $viewURL))
#end
Anyone get the same problem? Please help me out. Thank you!
Attachment files:
I have a page that lists all articles called "list news" page.
I created a page for display article's details called "news details" page.
In each journal article, I specify "news details" for its Display page.
Currently, I create a new Application Display Template for Asset Publisher in journal article's Display page to customize the article details display.
I just test it by display only title of article like the news-details.PNG attached file but it always shows full content like weird-display-page.PNG.
Although in "list-news" page, the article link is URLViewInContext link generated by my code:
#set( $viewURL = $assetPublisherHelper.getAssetViewURL($renderRequest, $renderResponse, $entry))
#if( $assetLinkBehavior != "showFullContent")
#set( $viewURL = $renderer.getURLViewInContext($renderRequest, $renderResponse, $viewURL))
#end
Anyone get the same problem? Please help me out. Thank you!
Attachment files: