Get all pages for particular page types - episerver

I'm using EPiServer 11 version with EPiServer.Find. I have a requirement to fetch all pages for landingPage type and standardPage types in one query.
Can you suggest if it is possible.

Thanks for suggestions. I managed to solve this as below.
var results = SearchClient.Instance.Search<PageData().FilterForVisitor().FilterOnCurrentSite()
.Filter(x => x.MatchType(typeof(LandingPage)) | x.MatchType(typeof(StandardPage)))
.GetContentResult();
Hope, it helps someone.

The documentation uses searching for pages of specific type as an example so I would recommend reading that.
In your case you would just have to add both page types into the query

You could filter using MatchType or MatchTypeHierarchy.

Related

How to manipulate 2sxc/dnn search result titles?

Does anybody have any idea on how to manipulate 2sxc/dnn search result titles?
Something like si.Title ?
Becuase at the moment search results are showing the page title and not the post title.
si.QueryString = "details=" + article.UrlKey;
si.Title = article.Title;
I tried the above code but it does not work.
2sxc doc: https://docs.2sxc.org/api/dot-net/ToSic.Sxc.Search.ISearchItem.html
Hi #BondLookingForAnswers - welcome to StackOverflow :)
I'm not sure if DNN will prefer your title to the page title, but either way I suggest you check out the latest blog app (https://2sxc.org/en/apps/app/blog-app-v4), which customizes the search results, and see where that gets you.
Good luck!

Accessing compound classes in Selenium on Google search results page

I am trying to access the People also ask panel content on the Google search results page for a given search and to extract the question and answer text of the presented questions. However, when I try to access the compound class, with browser.find_elements_by_class_name("_Tgc _s8w _y9e")I get an error and I've tried to fix it by using browser.find_elements_by_class_name("._Tgc._s8w._y9e") but then I get no results? I can't find out how else to access the HTML text, any help is much appreciated! Thank you!
Figured it out, for anyone else who comes across this question:
browser.find_elements_by_xpath("//*[#class='_Tgc _s8w _y9e']")
by using xpath you can reference compound classes

List style article in drupal 7

I'm trying to create a content type that allows me to post multiple images from an external database in this sort of style: http://www.newageman.co.uk/14-time-travelling-celebrities
In an ideal world this is what I would like my group of fields to look like in the article creation screen.
http://oi57.tinypic.com/wi0z8i.jpg
Any idea how I would achieve this using best practices? To post articles like this I'm currently using a piece of php code but it's confusing for my contributors, so would like to use fields. I've never made a module or custom field before.
Thank you!
I have done something similar using the Field Group module, you may give it a try.

How to remove search feature in inputComboboxListOfValues?

I'm working on Jdeveloper version 11.1.1.7.0. I am using component 'inputComboboxListOfValues'.
For my requirement I do not need the query feature and do not want a link like 'more' or 'search' to appear in the drop down list. Can I remove this search option?
Since I'm not familiar with this component, I searched online. By reading the doc, I guess there is no style attribute to let you simply turn off the search option, but according to this discussion on the oracle forum:
https://community.oracle.com/message/4304673#4304673
It seems you can do some skinning for your component to hide the search option...but I haven't tried it yet.
There is also a link for skinning:
http://jdevadf.oracle.com/adf-richclient-demo/docs/skin-selectors.html
Then search "af:inputComboboxListOfValues".
Not sure if this will work for your jdev version but it works on 11.2.3
http://i.stack.imgur.com/Abwpk.png
Turning off the Search capability for the LOV is done at the View/Attribute level (Select Attribute/List Of Values / UI Hints / Include Search Region = No Search)
set "readOnly=true".
--Peddi
Did you try and set styleclass="noSearch" it should work.

Dynamic exposed filters in Drupal 7

I've got a question in drupal. I have two filters. The values of the 2nd filter depends on what value was chosen in the first filter.
Example.
First filter values : Lakers,Clippers
Second filter values : if Lakers was chosen = KOBE,GASOL
if Clippers was chosen = PAUL,GRIFFIN .
Is there any module that supports this? Or do I have to code this? If I do is there any reference or guide that I could read and follow?
THANKS!
Yes there is
Drupal has a module called hierarchical select.
check this out
https://drupal.org/project/hierarchical_select.
Hope this helps you.
Don't use hierachical select. It is chock full of bugs and since the maintainer went to work for Acquia, he no longer pays any attention to it. You'll have to write some code to make this work using contextual filters.

Resources