Osclass Support Forums
General osclass questions => General discussion => Topic started by: rooman on July 03, 2022, 01:03:53 PM
-
I want to fetch ads from a subcategory
to a Custom page
Is there a way to do that?
-
Yes but you need to build page (if you mean static one) as PHP and then use ie osc_query_items() function
-
Yes but you need to build page (if you mean static one) as PHP and then use ie osc_query_items() function
Thank you very much
But the problem is that not all data is displayed
only 10 items
I want all the data
Thanks
-
Yes but you need to build page (if you mean static one) as PHP and then use ie osc_query_items() function
Thank you very much
But the problem is that not all data is displayed
only 10 items
I want all the data
Thanks
I found the solution, thank you very much
osc_query_item(array('category' => '96', 'results_per_page' => 5, 'premium' => true))
-
This page is fixed and there are 15 pages of it
How do I make the code fetch data?
By category selected on this same page
Until 15 pages are not used
Like the item page idea
All data is fetched on one page
thank you
-
@rooman
What about parameter you have in code?
'results_per_page' => 5
-
@rooman
What about parameter you have in code?
'results_per_page' => 5
You didn't understand what I mean
what i mean
I have 15 custom pages all with the same design but the difference is in the data
Why not combine them into just one custom page
Then 15-page data is called from a base on demand by city, for example
Each page has its own data separate from the other
-
@rooman
...Why not combine them into just one custom page...
Because most osclass users has 0.