We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4463
    • 26 Posts
    Using the newslisting snippet When I click in the "read more" link in the newslisting i have the new displayed without the title and with no buttons or links to the next or previous news. Is it possible to show the document title and a next and previous news links in the page we display the entire news content?

    Thanks in advance, great job laugh
    • You would need to use a prev/next snippet on your individual news documents.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 4463
        • 26 Posts
        The problem is how to relate to the next or previous document, It could be by ID sad, assuming the documents are added sequentially, other wise i don’t know how to do it, huh Any Ideas??

        Thanks
          • 33175
          • 711 Posts
          NewsListing creates automatically links with id for next and previous documents.
            Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
            • 4463
            • 26 Posts
            Quote from: Guillaume at Mar 15, 2006, 06:26 PM

            NewsListing creates automatically links with id for next and previous documents.

            I think those links are for other documents (useful when we have lots of documents) we want to list, but what i need is to relate to the next and previous news after we click in any new listed by the NewsListing. I think we could do that checking the creation date of the documents. The previous link would relate to the newest document before the current one and the next the newest after the current doc, I’ll need to study the API to do this... Any one with more skills please help wink

            Thanks
            • An example of this is the MODx documentation. A snippet is used to display links to the previous page, the index page, and the next page.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 33175
                • 711 Posts
                I’m not sure to understand exactly that you want.

                NewsListing can list all documents into one folder. With &sortby (parameter) you can specify to sort by pub_date (publication date) for example. And links will be created.

                If you want to display documents with next and previous link from all your site, see ListIndexer snippet.

                If not, it seems to me that I saw a snippet on the forum to create prev and next links.
                  Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
                  • Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 4463
                    • 26 Posts
                    Quote from: Guillaume at Mar 15, 2006, 06:50 PM

                    I’m not sure to understand exactly that you want.

                    NewsListing can list all documents into one folder. With &sortby (parameter) you can specify to sort by pub_date (publication date) for example. And links will be created.

                    If you want to display documents with next and previous link from all your site, see ListIndexer snippet.

                    If not, it seems to me that I saw a snippet on the forum to create prev and next links.

                    Yes wink, that’s it I want to display documents with next and previous link like the ModX Documentation. can you post the links for the Listindexer and the one to create prev and next links?

                    Thanks
                      • 33175
                      • 711 Posts
                      ListIndexer is installed with Modx. And it is not in the repository

                      PrevNext snippet is available here
                        Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !