Ich würde gerne die kleine nav komplett ausblenden und dafür die Kommentar Sektion unter den eigentlichen Beitrag verschieben. Welchen Teil muss ich dafür verwenden? Denn der Klick auf den Tab Kommentare ist ja nur ein Verweis auf einen Anker.
Kommentar Sektion unter den Eintrag verschieben
-
- News-System
-
peoples -
22. November 2016 um 10:36 -
Geschlossen
Vielen dank.
-
-
Dafür musst du die news.tpl so ändern
Zitat{include file='documentHeader'}
<head>
<title>{$news->getTitle()} - {PAGE_TITLE|language}</title>
{include file='headInclude'}<script data-relocate="true">
//<![CDATA[
$(function () {
WCF.Language.addObject({
'wcf.user.objectWatch.manageSubscription' : '{lang}wcf.user.objectWatch.manageSubscription{/lang}',
'wcf.message.bbcode.code.copy' : '{lang}wcf.message.bbcode.code.copy{/lang}',
'wcf.message.error.editorAlreadyInUse' : '{lang}wcf.message.error.editorAlreadyInUse{/lang}',
'wcf.message.share' : '{lang}wcf.message.share{/lang}',
'wcf.message.share.facebook' : '{lang}wcf.message.share.facebook{/lang}',
'wcf.message.share.google' : '{lang}wcf.message.share.google{/lang}',
'wcf.message.share.permalink' : '{lang}wcf.message.share.permalink{/lang}',
'wcf.message.share.permalink.bbcode' : '{lang}wcf.message.share.permalink.bbcode{/lang}',
'wcf.message.share.permalink.html' : '{lang}wcf.message.share.permalink.html{/lang}',
'wcf.message.share.reddit' : '{lang}wcf.message.share.reddit{/lang}',
'wcf.message.share.twitter' : '{lang}wcf.message.share.twitter{/lang}',
'wcf.moderation.report.reportContent' : '{lang}wcf.moderation.report.reportContent{/lang}',
'wcf.moderation.report.success' : '{lang}wcf.moderation.report.success{/lang}',
'wcf.infraction.warn' : '{lang}wcf.infraction.warn{/lang}',
'wcf.infraction.warn.success' : '{lang}wcf.infraction.warn.success{/lang}',
'wbb.thread.edit.moveThreads' : '{lang}wbb.thread.edit.moveThreads{/lang}',
'wbb.thread.edit' : '{lang}wbb.thread.edit{/lang}',
'wcf.label.none' : '{lang}wcf.label.none{/lang}',
'de.wbb-elite.news.restore' : '{lang}de.wbb-elite.news.restore{/lang}',
'de.wbb-elite.news.delete.complete' : '{lang}de.wbb-elite.news.delete.complete{/lang}',
'de.wbb-elite.news.trash.reason' : '{lang}de.wbb-elite.news.trash.reason{/lang}',
'de.wbb-elite.news.trash.confirmMessage' : '{lang}de.wbb-elite.news.trash.confirmMessage{/lang}',
'de.wbb-elite.news.delete.sure' : '{lang}de.wbb-elite.news.delete.sure{/lang}'
});
new WCF.Message.Share.Content();
new WCF.Moderation.Report.Content('de.wbb-elite.news.report', '.jsReportFile');
{if MODULE_LIKE && $__wcf->getSession()->getPermission('user.like.canViewLike')}new News.Like({if $__wcf->getUser()->userID && $__wcf->getSession()->getPermission('user.like.canLike')}1{else}0{/if}, {@LIKE_ENABLE_DISLIKE}, {@LIKE_SHOW_SUMMARY}, {@LIKE_ALLOW_FOR_OWN_CONTENT});
{/if}
{if $news->canManageNews()}
new News.InlineEditor('.news', '{link application='news' controller='CategoryList'}{/link}', '{link application='news' controller='NewsEdit' object=$news}{/link}');
{/if}
WCF.TabMenu.init();
new News.ImageCalculate();});
//]]>
</script>
{if DE_WBB_ELITE_NEWS_ENABLE_COMMENT}
{include file='__commentJavaScript' commentContainerID='userNewsProfileCommentList'}
{/if}
</head>
<body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
{capture assign='sidebar'}
{include file='sidebarNews' application='news'}
{/capture}{include file='header' sidebarOrientation='right'}
{include file='userNotice'}
<article
class="news newsMessage marginTop{if $news->isDisabled} messageDisabled{/if}{if $news->isDeleted} messageDeleted{/if}"
data-object-id="{$news->newsID}" data-can-delete="{$news->canDelete()}"
data-can-disable="{$news->canEnableNews()}"
data-is-deleted="{if $news->isDeleted}1{else}0{/if}"
data-is-disabled="{if $news->isDisabled}1{else}0{/if}"
data-like-liked="{assign var='getLikeData' value=$news->getLikeData()}{if $getLikeData != null}{@$getLikeData->liked}{/if}"
data-like-likes="{if $getLikeData != null}{@$getLikeData->likes}{else}0{/if}"
data-like-dislikes="{if $getLikeData != null}{@$getLikeData->dislikes}{else}0{/if}"
data-like-users='{ {if $getLikeData != null}{implode from=$getLikeData->getUsers() item=likeUser}"{@$likeUser->userID}": { "username": "{$likeUser->username|encodeJSON}" }{/implode}{/if} }'
data-object-type="de.wbb-elite.news.likeableNews" data-user-id="{@$news->userID}">
<header class="boxHeadline messageHeader">
<nav class="jsMobileNavigation buttonGroupNavigation" style="float: right">
<ul id="fileButtonContainer" class="buttonGroup jsFileInlineEditorContainer" data-file-id="1242">
<li class="Link jsReportFile jsOnly" data-object-id="{@$news->newsID}"><a
title="{lang}wcf.moderation.report.reportContent{/lang}" class="button jsTooltip"><span
class="icon icon16 icon-warning-sign"></span> <span
class="invisible">{lang}wcf.moderation.report.reportContent{/lang}</span></a></li>
{if $news->canManageNews()}
<li><a class="button noChangeColor jsInlineNewsButton" title="{lang}wcf.global.button.edit{/lang}">
<span class="icon icon16 icon-pencil"></span>
<span>{lang}wcf.global.button.edit{/lang}</span></a></li>{/if}
</ul>
</nav>
<h1><a class="permalink"
href="{link application='news' controller='News' object=$news}{/link}">{$news->getTitle()}</a></h1>
{assign var='user' value=$news->getUser()}
<p>Von <a href="{link controller='User' object=$user}{/link}">{$user->username}</a>, {@$news->time|time}</p>
</header>
<div class="jsOnly tabMenuContainer">
<nav class="tabMenu jsOnly">
<ul>
<li id="newsTab"><a href="{@$__wcf->getAnchor('news')}"
title="{lang}de.wbb-elite.news.tab{/lang}">{lang}de.wbb-elite.news.tab{/lang}</a>
</li>
{event name='tabMenu'}
</ul>
</nav>
<div id="news" class="jsOnly tabMenuContent container containerPadding">
<section class="messageContent">
<div>
{if $news->getNewsImage()}
<header class="messageHeader">
<div class="messageHeadline" style="max-width: 100%">
<img src="{@$news->getNewsImage()->getURL()}"
alt="{@$news->getNewsImage()->getTitle()}" style="max-width: 100%;">
</div>
{event name='messageHeader'}
</header>
{/if}
<div class="messageBody">
<div>
<div class="messageText">
{@$news->getFormattedMessage()}
{event name='messageText'}
</div>
</div>{include file='attachments'}
<div class="messageFooter">
{event name='messageFooterNotes'}
</div>{if DE_WBB_ELITE_NEWS_SOURCE_ENABLE && $news->getSources()|count}
<div class="attachmentThumbnailList">
<fieldset>
<legend>{lang}de.wbb-elite.news.sources.title{/lang}</legend>
<ol class="nativeList">
{foreach from=$news->getSources(true) item=source key="sourceID"}
<li id="newsSource{@$sourceID}">
<ul>
{if $source["source"]}
<li><strong>{@$source["source"]}</strong></li>
{/if}
</ul>
</li>
{/foreach}
</ol>
</fieldset>
</div>
{/if}
</div>
</div>
</section>
{if DE_WBB_ELITE_NEWS_ENABLE_COMMENT}
<div id="comments" class="jsOnly tabMenuContent container containerPadding">
{if $commentCanAdd}
<ul id="userNewsProfileCommentList" class="commentList containerList" data-can-add="true"
data-object-id="{@$objectID}" data-object-type-id="{@$commentObjectTypeID}"
data-comments="{@$commentList->countObjects()}" data-last-comment-time="{@$lastCommentTime}">
{include file='commentList'}
</ul>
{else}
{hascontent}
<ul id="userNewsProfileCommentList" class="commentList containerList" data-can-add="false"
data-object-id="{@$objectID}" data-object-type-id="{@$commentObjectTypeID}"
data-comments="{@$commentList->countObjects()}"
data-last-comment-time="{@$lastCommentTime}">
{content}
{include file='commentList'}
{/content}
</ul>
{hascontentelse}
<div class="containerPadding">
{lang}de.wbb-elite.news.comments.noEntry{/lang}
</div>
{/hascontent}
{/if}
</div>
{/if}
</div>
{event name='tabMenuContainer'}
</div>
</article>{if ($nextNews $previousNews) && DE_WBB_ELITE_NEWS_SHOW_NEXT_PREVIOUS}
<div class="newsNavigationButtons">
<nav>
<ul>
{if $previousNews}
<li class="newsPreviousNewsButton">
<a href="{@$previousNews->getLink()}" >
<span>{lang}de.wbb-elite.news.previousNews{/lang}</span>
<span>{$previousNews->subject}</span>
</a>
</li>
{/if}{if $nextNews}
<li class="newsNextNewsButton">
<a href="{@$nextNews->getLink()}" rel="next">
<span>{lang}de.wbb-elite.news.nextNews{/lang}</span>
<span>{$nextNews->subject}</span>
</a>
</li>
{/if}
</ul>
</nav>
</div>
{/if}{hascontent}
<div class="container marginTop">
<ul class="containerList infoBoxList">
{content}
{if ENABLE_SHARE_BUTTONS}
<li class="box32 jsOnly shareInfoBox">
<a href="{link application='news' controller='News' object=$news}{/link}"
class="jsTooltip jsButtonShare" title="{lang}wcf.message.share{/lang}"
data-link-title="{$news->getTitle()}"><span class="icon icon32 icon-link"></span></a><div>
<div class="containerHeadline">
<h3>{lang}wcf.message.share{/lang}</h3>
</div>
{include file='shareButtons'}
</div>
</li>
{/if}
{if $tags|count}
<li class="box32 tagsInfoBox">
<span class="icon icon32 icon-tags"></span><div>
<div class="containerHeadline">
<h3>{lang}wcf.tagging.tags{/lang}</h3>
</div><ul class="tagList">
{foreach from=$tags item=tag}
<li>
<a href="{link controller='Tagged' object=$tag}objectType=de.wbb-elite.news.tag{/link}"
class="badge tag jsTooltip"
title="{lang}de.wbb-elite.news.tag.title{/lang}">{$tag->name}</a>
</li>
{/foreach}
</ul>
</div>
</li>
{/if}
{/content}
</ul>
</div>
{/hascontent}
{include file='footer'}
</body>
</html>Das ganze kann man natürlich auch verschönern aber das sollte genau das machen was du möchtest
-
Vielleicht könnte man das in den Optionen einbinden? Das jeder die Position selbst aussuchen kann?
Ps. Funktioniert der BBCode Code bei dir etwa nicht?
-
Danke @Cyperghost, bist ein Schatz
Und was meinst du @T1N0 ?
-
Ich meine das man im ACP - System - Optionen - News-System eine Option hinzufügt und das man dort Einstellen kann, wo die Kommentare dargestellt werden
-
Das ist mit Absicht so gewählt wurden, da es so übersichtlicher ist.
Sollte es jemand anders haben wollen kann er es jeder Zeit im Template selbst ändern, dafür aber eine Option zu machen finde ich etwas unnötig. -
Cyperghost
27. Mai 2018 um 12:40 Hat das Thema geschlossen. -
Cyperghost
15. August 2019 um 22:08 Hat das Thema geschlossen.