We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19777
    • 35 Posts
    I’m also wondering if it’s possible to use Newslisting to create a summary list of all pages written by a particular author? So that I can have an author home page that lists all articles written by that author.

    And is it possible to assign multiple categories to articles and then have Newslisting type summary list based on a specific category?

    Again, in Textpattern (sorry to go on about this, but still getting my head around modX) it is simply a case of typing <txp:article_custom category="photos" offset="0" limit="2" listform="excerptlist" /> or <txp:article_custom author="John" offset="0" limit="2" listform="excerptlist" /> inside a template and an article list by category or author is created.

    Cheers

    mark j

      • 33114
      • 518 Posts
      Quote from: Mark at May 01, 2006, 03:38 AM

      Can you provide both calls?

      I am unable to duplicate the symtoms you describe on any of my testing servers.


      here are the calls:
      [!NewsListing? &tpl=`af` &dateformat=`%d.%m.%Y` &truncText=`подробно` &paginate=1!]
      and
      [!NewsListing? &startID=`1` &tpl=`news_left` &dateformat=`%d.%m.%Y` &total=`5` &summarize=`5` &sortby=`createdon`!]


      I know that &sortby=`createdon` is by default... thats some kind of silly debuggin of mine smiley
      I will remind the error output:
      Fatal error: Cannot redeclare customsort() (previously declared in /home/prsound/public_html/manager/includes/document.parser.class.inc.php(691) : eval()'d code:145) in /home/prsound/public_html/assets/snippets/newslisting/functions.php on line 60

      this message appears unless the page is not cached yet... after page refreshing (and caching I think) - this message won’t appear and everything works ok (excluding some bug in IE).

      string 60 in functions.php is
      function customSort(&$data, $fields, $order) {
      and string 145 in document.parser.class.inc.php is
      function fetchRow($rs, $mode='assoc') {


      Updated: OMG! now I saw that error on a single NL-call page: http://www.promosound.org/128 ...that is completely strange.
        http://modx.ru - российская поддержка MODx
        http://newscup.ru - экспериментальный проект
        http://yentsun.com - персональный сайт
        • 18397
        • 3,250 Posts
        MARKSVIRTUALDESK Reply #33, 18 years ago
        Are you running with stop on notice turned on? If you have never heard the term before then you can safely assume you are not.

        Otherwise, I am still unable to duplicate the problem.
          • 33114
          • 518 Posts
          Quote from: Mark at May 02, 2006, 02:23 AM

          Are you running with stop on notice turned on? If you have never heard the term before then you can safely assume you are not.

          Otherwise, I am still unable to duplicate the problem.

          nope... never heard sad
          Am I unlucky then?
          well I got a solution to call ChildDocMapper instead of duplicated NL calls, though I can’t understand how to get a human formatted createdon date there.
            http://modx.ru - российская поддержка MODx
            http://newscup.ru - экспериментальный проект
            http://yentsun.com - персональный сайт
            • 18397
            • 3,250 Posts
            MARKSVIRTUALDESK Reply #35, 18 years ago
            Hmmm. Could you try installing a default content modx install on your server, upgrading to 6.4.2 and seeing if that works? If not, if you PM me login details I can take a look.
              • 33114
              • 518 Posts
              SOVED! Upgraded MODx to 0.9.2.1 smiley

              though IE bugs remain - i guess its not NL smiley

              Thank you Mark very much for supporting me here smiley

              Cheers
                http://modx.ru - российская поддержка MODx
                http://newscup.ru - экспериментальный проект
                http://yentsun.com - персональный сайт
                • 33114
                • 518 Posts
                doh! forgive me...but its not over yet.
                Got another problem:

                I still have two NL calls on a page: http://www.promosound.org/news (works fine in Firefox now).
                The NL call to the right has pagination which is now two pages.
                The NL cal to the left has no pagination - it only displays 3 latest posts.
                Now, when we load http://www.promosound.org/news?start=0 (right NL call, page 1) - everything is ok.
                But when we load http://www.promosound.org/news?start=3 (right NL call, page 2) - we don’t see that left NL call as if it also has pagination and its page 2 would be empty.

                Is this normal or a bug?
                  http://modx.ru - российская поддержка MODx
                  http://newscup.ru - экспериментальный проект
                  http://yentsun.com - персональный сайт
                • That’s a problem with NL not being a true class, which I understand to be a work in progress.
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 18397
                    • 3,250 Posts
                    MARKSVIRTUALDESK Reply #39, 18 years ago
                    Actually, this should not be happening as pagination is off by default. Can you provide the two calls?
                      • 18397
                      • 3,250 Posts
                      MARKSVIRTUALDESK Reply #40, 18 years ago
                      Can you try changing this line:
                      if ($paginate == 1 && isset($_GET['start'])) {	
                      


                      to just
                      if ($paginate == 1 && $_GET['start'] !=0) {