Results 1 to 7 of 7

Thread: Pagination on Catalog Reference

  1. #1
    User PaoloB's Avatar
    Join Date
    06-19-09.
    Location
    Italy
    Posts
    238

    Default Pagination on Catalog Reference

    Hi
    i have create a catalog and catalog reference
    In the catalog reference is not possible the pagination the list...

    i have edit the tl_module and add the perPage parameter, but in the ModuleCatalogReference file i have a problem to add the pagination
    I had add the Split pages code, but i have problem with the query


    thanks
    Paolo B.
    Contao ambassador
    ContaoCms.it - Sito di riferimento per la comunità italiana

  2. #2
    User PaoloB's Avatar
    Join Date
    06-19-09.
    Location
    Italy
    Posts
    238

    Default Re: Pagination on Catalog Reference

    any suggestions?
    Paolo B.
    Contao ambassador
    ContaoCms.it - Sito di riferimento per la comunità italiana

  3. #3
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Pagination on Catalog Reference

    Its NOT possible to have multiple paginations on 1 page, as they interfere with one another. Leo still has to come up with a solution for this.

  4. #4
    User PaoloB's Avatar
    Join Date
    06-19-09.
    Location
    Italy
    Posts
    238

    Default Re: Pagination on Catalog Reference

    Quote Originally Posted by thyon
    Its NOT possible to have multiple paginations on 1 page
    Thanks for the reply Thyon

    I had seen this problem with the page parameter, but this is not in this case.

    On this page have just one module catalog reference.

    I have add the Split pages code on the ModuleCatalogReference but are not able to create the query for the total of the item
    Code:
    $objTotalStmt = $this->Database->prepare("SELECT id AS count FROM ".$this->strTable." WHERE pid=?".$strWhere);
    Paolo B.
    Contao ambassador
    ContaoCms.it - Sito di riferimento per la comunità italiana

  5. #5
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Pagination on Catalog Reference

    Catalog Reference and Catalog Related cannot be used on their own, they MUST be used on a page together with a Catalog Reader. The 2 modules both use the DATA from the single reader item to map these values into queries.

  6. #6
    User PaoloB's Avatar
    Join Date
    06-19-09.
    Location
    Italy
    Posts
    238

    Default Re: Pagination on Catalog Reference

    Quote Originally Posted by thyon
    Catalog Reference and Catalog Related cannot be used on their own, they MUST be used on a page together with a Catalog Reader.
    thanks Thyon, but it works...
    When i put on line the site I'll show you the site

    have a nice day
    Paolo B.
    Contao ambassador
    ContaoCms.it - Sito di riferimento per la comunità italiana

  7. #7
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Pagination on Catalog Reference

    Catalog Reference uses a shared-linked item between the Catalog Reader and the Catalog Reference, e.g. product (in reader) = id (in reference). Without this link the module will return nothing. The ID for the Reader is retrieved by the /items/aliasorid.html, so without that there won't be any item, so no link and then an empty result. The same is for the Catalog Related.

    Catalog Related => expands a matching value into more items of the SAME catalog that share a similar value, e.g. "Listing of More Action DVDs".
    Catalog Reference => expands a matching value into the fields of ANOTHER catalog used as reference, e.g. "Show the details of the Property Salesman (e.g. Name, Phone, e-mail) instead of his linked id".

    Only the Catalog List and Featured Modules can be used on their own.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •