Skip to main content
UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
  • Platform
  • Resources
  • Community
  • Pricing
Public content by author Comment
    •  ·  LeonidS
    •  ·  2021-01-20T20:22:44+0000

    Hello Scholar !

    Sorry, but there is no ready method to show only the public posts from the author. It will require to write a new one.

    • See older replies...
    • S

      •  ·  Scholar
      •  ·  In reply to

        S

        Scholar
      •  ·  2021-01-26T20:10:36+0000

      LeonidS 

        •  ·  LeonidS
        •  ·  In reply to

          S

          Scholar
        •  ·  2021-01-27T16:19:39+0000

        If you're OK tomodify this code then you may add the following line:

        $this->aCurrent['restriction'] ['public'] => array('value' => BX_DOL_PG_ALL, 'field' => 'allow_view_to', 'operator' => '=');

        after this one:

        if(!empty($aParams['per_page'])) $this->aCurrent['paginate']['perPage']

        • S

          •  ·  Scholar
          •  ·  In reply to
            LeonidS
          •  ·  2021-01-31T01:24:26+0000

          If you're OK tomodify this code then you may add the following line:

          $this->aCurrent['restriction'] ['public'] => array('value' => BX_DOL_PG_ALL, 'field' => 'allow_view_to', 'operator' => '=');

          after this one:

          if(!empty($aParams['per_page'])) $this->aCurrent['paginate']['perPage'] 

          that worked great, but I had to put it in the else statement to allow owners to view their non-public posts.

        See more...
        • Features
        • Pricing
        • Forum
        • Blog
        • Market
        • About
        • Copyright
        • Contact
        • Terms
        • Privacy
        • 𝕏
        Search
        UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
      • Platform
        • Features
        • Core CMS
      • Resources
        • Documentation
        • Marketplace
        • Discussions
        • Support Groups
        • API Reference
        • UNA CMS on GitHub
        • Webinars
        • Blog
      • Community
        • Discussions
        • Groups
        • Webinars
      • Pricing
      • Are you sure?
        Please, enter a value here