Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
  1.  # 1
    Hey Wally.
    I'm having trouble making the pagination work postbackaction
    right now it generates links of this form
    http://localhost/vanilla/extension.php?page=2&PostBackAction=Blog
    which works fine, but its wrong. the postbackaction needs to be before the &page=2. It also not working with friendlyurls either.
    the code is the same as from Discussion grid
    $CategoryID = ForceIncomingInt('CategoryID', 0);
    if ($CategoryID == 0) $CategoryID = '';
    $pl = $this->Context->ObjectFactory->NewContextObject($this->Context, 'PageList', 'CategoryID', $CategoryID);
    $pl->NextText = $this->Context->GetDefinition('Next');
    $pl->PreviousText = $this->Context->GetDefinition('Previous');
    $pl->CssClass = 'PageList';
    $pl->TotalRecords = $this->DiscussionDataCount;
    $pl->CurrentPage = $this->CurrentPage;
    $pl->RecordsPerPage = $this->Context->Configuration['BLOG_PER_PAGE'];
    $pl->PagesToDisplay = 10;
    $pl->PageParameterName = 'page';
    $pl->DefineProperties();
    $PageDetails = $pl->GetPageDetails($this->Context);
    $PageList = $pl->GetNumericList();


    Its part of the blog extension
    u can download it from here, if u want give it a try
    http://lussumo.com/community/?CommentID=66933

    thanks in advance :)
Add your comments
    Username Password
  • Format comments as