We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40130
    • 4 Posts
    Hey guys,

    please can anyone advise me how to show only content without introtext in "sample.ArticlesLatestPostTpl" chunk?

    I have something like:

    <div class="news-content">
    	<p>[[+introtext:default=`[[+content:striptags:ellipsis=`300`:WholeWords]]`]]</p>
    </div>
    


    but I want to show the full content only...

    And the second question, is somehow possible to display date (month) in other language than english?

    <div class="news-date">
    	[[+publishedon:strtotime:date=`<span>%d.</span> %B`]]
    </div><!-- .news-date -->
    


    Thank you all !!

    t. [ed. note: tibor_us last edited this post 14 years, 4 months ago.]
      • 19369
      • 1,098 Posts
      Hi,

      Wrap your code with the "code" button that you find here in the forum, otherwise it will not show up.
        • 40130
        • 4 Posts
        Thanks microcipcip, updated my post smiley
          • 37131
          • 111 Posts
          Just remove default filter, use
          <div class="news-content">
          	<p>[[+content:striptags:ellipsis=`300`:WholeWords]]</p>
          </div>
          


          Date string is set according to MODX Lexicon and Language system settings (I'm not sure which one, but probably "Locale"); set it to one of PHP international settings.
            ---
            Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding
            • 40130
            • 4 Posts
            Hey khyrlik,

            thanks for your answer. Unfortunately this is not showing the content. I am displaying the articles (outside of Articles plugin) like this:

            [[Articles? &container=`15`]]
            [[+latest_posts]]
            


            with the chunk "sample.ArticlesLatestPostTpl":

                         <div class="news">
            				<div class="news-date">
            					[[+publishedon:strtotime:date=`<span>%d.</span> %B`]]
            				</div><!-- .news-date -->
            				<div class="news-header">
            					<a href="#">[[+pagetitle]]</a>			
            				</div>
            				<div class="news-content">
            					<p>[[+content:striptags:ellipsis=`300`:WholeWords]]</p>
            				</div>
            				<div class="news-more">
            					<a href="#" title="more...">more »</a>				
            				</div><!-- .news-more -->
            			</div>
            


            others like date and header works well, only content not sad

            Thanks again!!
            t.
              • 37131
              • 111 Posts
              Could you show generated HTML?
                ---
                Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding