[TYPO3-news] [TYPO3-project-news] to How 1 before and 1 nexone in open single

Lauris Deinis lauris.deinis at gmail.com
Sat Aug 13 17:16:56 CEST 2016


I just registred, so i dont know how to ask new Questions. How i wan to see 1 before an 1 nextone of tt news in open single as 2 news in bottom the code i done is

<div class="news-item text-content col-md-6">
                            <div class="nsn-label">NEXT</div>
                            <n:link class="news-link" newsItem="{newsItem}" settings="{settings}" title="{newsItem.title}">
                                <h4>{newsItem.title}</h4>
                                <hr />
                                <p>{newsItem.bodytext}</p>
                                <div class="news-meta clearfix">
                                    <div class="news-date pull-left">
                                        <f:format.date format="{f:translate(key:'dateFormat')}">{newsItem.datetime}</f:format.date>
                                    </div>
                                    <div class="news-more pull-right">
                                        <n:link newsItem="{newsItem}" settings="{settings}"  class="link-more" title="{newsItem.title}">
                                            <f:translate key="more-link"/>
                                        </n:link>
                                    </div>
                                </div>
                            </n:link>
                        </div>


 tehe template is <div class="news-single-nav">
                <div class="row">
                  <div class="news-item text-content col-md-6">
                    <div class="nsn-label">PREV</div>
                    <h4>Protect your cash flow in these uncertain times</h4>
                    <hr />
                    <p>This is Photoshop's version of Lorem ipsum. Proin gravida nibh vel velit auctor aliquet. Aenean dolor sit sollicitudin, lorem quis bibendum auctor.</p>
                    <div class="news-meta clearfix">
                      <div class="news-date pull-left">06.05.2016</div>
                      <div class="news-more pull-right"><a href="#" class="link-more">Read more</a></div>
                    </div> <!-- .clearfix -->
                  </div> <!-- .news-item -->
                  <div class="news-item text-content col-md-6">
                    <div class="nsn-label">NEXT</div>
                    <h4>Protect your cash flow in these uncertain times</h4>
                    <hr />
                    <p>This is Photoshop's version of Lorem ipsum. Proin gravida nibh vel velit auctor aliquet. Aenean dolor sit sollicitudin, lorem quis bibendum auctor.</p>
                    <div class="news-meta clearfix">
                      <div class="news-date pull-left">06.05.2016</div>
                      <div class="news-more pull-right"><a href="#" class="link-more">Read more</a></div>
                    </div> <!-- .clearfix -->
                  </div> <!-- .news-item -->
                </div> <!-- .row -->
              </div> <!-- .news-single-nav -->

            </div> <!-- .container -->
          </div> <!-- .sp-content-in -->
        </div> <!-- .sp-content -->
      </div> <!-- .page-wrap -->


More information about the TYPO3-project-news mailing list