Search not working in HTML5 subtheme and layout issue

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
blimk's picture

Hi, not sure if any one encounter something similar to my problem now.

Question 1: Search not working in Omega HTML5
I realise that using the Omega HTML5 sub theme, the search isn't working. I come to this conclusion when I switch to the basic Batik theme and the search is working, and even using the Omega XHTML sub theme the search works too.

I has my setup done using the default English download, and later installed i18n module. The default language is later set to Chinese, Simplified and English remains as 'Enabled'. I'm developing another site where only English is the only language, and search works fine using Omega HTML5. Now I'm not sure if the issue is related to the theme or the language setup. The search also works when the default core theme or alpha core theme is used.

I'm using Omega 7.x-3.0

Question 2: Layout
My site content area layout has a 1st sidebar on the left, main content area in the center, and 2nd sidebar on the right.

When using Omega XHTML subtheme, I have this View page that displays Teaser of a content type (pretty much a basic page with only text content) with its Title and 'Read More' button. When the page is loaded, it will push the 2nd sidebar to the bottom. But if I display content in full (not Teaser), the 2nd sidebar remains on the right. I attempted both to change css and Omega's Zone and region configuration settings but none seems to work.

Earlier when I'm using HTML5 subtheme, this display issue happens only in Windows and certain browsers (IE especially). But now using XHTML subtheme, it's not displaying correctly even in FF, Chrome, Safari browsers in Mac. I'm stuck and not sure how I can resolve this.

Also, when tested with the default Omega Core theme with default css, the 2nd sidebar appears correctly on the right. What can I tell from this?

If anyone here can give me some advice will be great! Thanks so much in advance. :)

Comments

Fix the search

gkunno's picture

When you have enabled the search module, and added content (for testing the search function) it wont find the just added content right away. You have to run cron to get it indexed. The cron default is 100 items/cron, you can easily change this value from: admin/config/search/settings. If a lot of new content is added frequently you can choose the module to index more items/cron. If you are using drush type: drush cron (after this the search should work normally) and if not make the change from the setting page.

Yes the search is indexed

blimk's picture

Thanks gkunno, my initial findings point me to this index setting and I did checked that it's correctly done. The strange thing is with this same index setting, the search isn't working, showing 'Your search yielded no results' comment when the theme is set to HTML5 subtheme. But when I switch the theme to XHTML subtheme, Alpha core theme, or Omega core theme, the search works!

Question 2

JJmonterey's picture

Are you triggering the "teaser view" with Delta and Context? If so, is the context changing the layout? I found when experimenting with context and Delta when I had two Delta/Context layouts that I had created, that I had neglected to check the "Require All Conditions Box" to trigger the layout I wanted. Just a thought that may not apply in your case.

No, didn't use Delta and Context for this page

blimk's picture

Hi JJmonterey, no I didn't use Delta and Context for this page. It's a regular View page. Tried both options, where 1st option is set to FORMAT > Show: Content / Teaser. 2nd option I tried FORMAT > Show: Fields / Settings, where FIELDS > Content: Body is set to Formatter 'Summary or trimmed' Trim Length '300'. Both cases will push the right sidebar bottom. If the body is set to show in full, then right sidebar is ok. (?) :(

Question 2

JJmonterey's picture

I had a similar issue where I created a view and then logged out and the sidebar disappeared and I hadn't set permissions to allow the anonymous user to view the content type that was in the sidebar, but your side bar is still visible but displaced.

Found the cause of question 1

blimk's picture

Like to update the folks here in case ppl come to this thread with similar problem... Cause: I myself created that problem of Question 1 :(

Much earlier in the development, I attempted to customize the search result page and placed a file in subtheme templates folder, didn't know that the codes were screwed (I hv little knowledge of php) and eventually forgotten I did that. I should have visited this templates folder and see what's inside, after I verified that switching the theme to XHTML subtheme, Alpha core theme & Omega core theme, they all worked.

Thanks so much to the folks who helped answering my questions, my apologies to have wasted your time! :(