I have to implement Paging for keyword search results. The search may return Home results and community results. (This is for a real estate site). So there are 2 types to display. I need to implement paging for the results shown using IPagedList. I see that IPagedList have only one source?
is it possible to have 2 sources and implement paging?
Can some one give idea?
Thanks in advance.
You can make two types implement a common interface and use IPagedList<ISharedInterface> as view model. If you can share what info you want to display from both types it would be more clear.
Creator of the PagedList library here.
You could always make it an IPagedList if you want to go with the nuclear option.
Related
Microsoft graph will provide you with “#odata.nextLink”.
How can I get the “previousLink”. ?
This is a design choice, there is no previous link. When you are enumerating a collection, you always page the collection from the beginning and until the end or until you've found the item you are looking for. If you need a different ordering for various reasons, you should leverage the $orderby command, but those two capabilities (paging and ordering) should be considered distinct, they do not serve the same purpose
I just wanted to give my two cents here and say I am just as confused as you are as to why there is no previous page link.
It's a standard behavior in paginated lists to be able to go forward and back. This really makes no sense at all.
On our website, it is possible to tag content by a country list. This country list could be implemented as a tag control but I'm concerned about mis-spellings creeping in over time. However, the country list is very long (150+) so not ideal for a dropdown multiple control either.
What I'm looking to do is have a control that has the same type + autocomplete functionality as the existing tags control but limit the possible values to those retrieved from a database table.
I also want to be able to list all tags that a piece of content has been tagged against as well as searching for content based on tags e.g. GetNodesWithTags
Has anyone developed anything like this before? I've had a look at packages etc but can't see anything similar. Does anyone have any advice before I start off?
Definitely, using Tags datatype for this may cause a lot of problems :)
In my opinion, the perfect solution will be to use nuPickers (https://our.umbraco.org/projects/backoffice-extensions/nupickers/) package and available there TypeaheadList Picker.
Depending of your additional requirements, you may use Lucene index / C# accessed source (totally custom - db, static, enum etc.) / XML file source as a prevalues for your control.
Then, you'll be able to create logic which will enable you to perform search based on this field as it will be a typical property with value on the nodes. Once again - suggested way is to use Lucene Examine index as it's tailored to be fast with searching. You can read more about searching with Examine here: https://our.umbraco.org/documentation/reference/searching/examine/.
Hopefully it will solve your problem.
I need to create filter like below link
https://paytm.com/shop/g/paytm-home/incredible-offers/smartphones-flat-20-cashback
When i click the smart phone on Landing page then filter show based on smart phone
Like camera color sim internal memory external memory .. etc
Current i have list of productViewmodel which contain the product and product variant only
Please guide me
Thanks in Advance :)
The search term you are looking for is faceted search.
One option to implementing it is using a faceted search engine, such as Bobo-Browse.Net (which is implemented as an extension to the Lucene.Net search engine). It is a .NET port of the Java version, meaning it is a 100% .NET solution.
See the faceted search prototype and car demo for some examples of how to implement it in MVC.
Full Disclosure: I am a major contributor to the Bobo-Browse.Net project.
Another option is to use solr, which runs as a separate process than the web site that uses it. It is a Java-based solution.
Either way, the best solution from a web site is to use AJAX so the drill-down happens without reloading the entire page.
Is it possible to find out the total no of layouts (templates) used within a website.
For example:-
Suppose i want to know how many types of layouts www.flipkart.com uses.
Answer will be like:-
Landing page or Home page
Category Page e.g http://www.flipkart.com/mobiles?_l=GIuT6NCRsZbfL9ID9ZKHNQ--&_r=hCno5y6eFUI8C0iWzaQbAg--&ref=cef19a11-4ebc-4f8e-a0dc-401c2d55de3e&_pop=brdcrumb
This is a category page. All such pages will have same layout only the inner content will be different.
Product Pages like http://www.flipkart.com/htc-sensation-mobile-phone/p/itmczbrsnwphgbnw?pid=MOBCYW9HXBUDYJPH&_l=sXQjsX87GxqrvKzhjuOrkw--&_r=n_2yuAC4xgh0SZTuulvAtw--&ref=9305103f-6fc1-497c-807a-8f30ee30c13c is a product page.
All the product pages will have same layout like they have buy now option. Multiple images will be there. So Is there any existing tool to find out this.
I hope i am clear in my question. I just want to classify the site pages into some buckets.
Well I don't think there exists some kind of tool or algorithm now upto my knowledge but yes you can write some. Try to find out some attributes of these pages and set them as benchmarks. Now whenever you encounter a url and you want to identify its category just find out the attributes again and compare against the benchmarks set.
Its not generic though but will work for specific websites :)
Where can I find a basic example of using QuantumGrid 6 of Developer Express in a Master-detail relation.
Thanks in advance.
The DevExpress QuantumGrid page have a very complex and large collection of samples that you can use.
Visit the Knowledge Base section and search for your question.
it's sure that you find somethig usefull.
Regards.
Are you aware of the Master-Detail Tutorial in the help file?
You should find it in "$(DXVCL)\ExpressQuantumGrid 6\Help\EXPRESSQUANTUMGRID6.HLP" I guess.
You need just add a level to your marter data and a sub-level to your detail data.
After do that, select your detail level and set DataControler's properties to:
1- MasterKeyFieldNames to PK of master data;
2- DetailKeyFieldNames to FK of detail data.
If you want handle records you still need define KeyFieldNames with the PK to both levels.
To see a detailed explanation about how do it, open EXPRESSQUANTUMGRID6.HLP e search for "master-detail".