2010 at a Glance - top 10 things

Feb 2010 JA Lime Demo and JA Comment Demo

JA Bonus Templates JA Mesolite II & JA Zeolite II



Go Back   JoomlArt Forums JoomlArt Public Forums General Questions

Reply
 
Thread Tools Display Modes
Old 12-07-2008, 11:53 PM   #1
yerg
Unlicensed Member
 
Join Date: Feb 2006
Posts: 65
Downloads: 26
Uploads: 0
Credits: 688
Thanks: 2
Thanked 1 Time in 1 Post
Search Parsing wrong itemid

I have modified 2 of the JA templates colours to give a public view and registered members view

What I'm having major issues with is that when I search as a registered member the search output page is ALWAYS shown in the public template.

Not only is the colour different but all the menus are wrong as are the modules.

Any ideas how to force J! to use a template over ride for the search component.

Last edited by yerg; 12-11-2008 at 09:58 PM. Reason: Changed title for greater clarity
yerg is offline   Report as a Bug or Premium support ticket Reply With Quote
Old 12-08-2008, 09:54 PM   #2
yerg
Unlicensed Member
 
Join Date: Feb 2006
Posts: 65
Downloads: 26
Uploads: 0
Credits: 688
Thanks: 2
Thanked 1 Time in 1 Post
Search parsing wrong itemid

Had a suggestion given to me which highlighted that I'd not provided sufficient information

I've got the following files in /public_html/templates/memberstemplate/html/com_search/search

default.php
default_error.php
default_form.php
default_results.php

The template overrides works until the results page appears and that's when the "public template" default_results.php file is used.

It's in /public_html/templates/publictemplate/html/com_search/search directory and I've tagged it with some text to make sure I know were it's coming from. I thought it was coming from the public_html/components/com_search directory.

---edit ---

I've tried making the "members template" the default ... this resolves the members issue but the "public search" now has no menu at all.

--- edit ---
I checked all the modules to ensure they are assigned correctly and all as they should be.

---- edit ---
More frustration but here goes

Here's the link to the search page via the menu - note the itemid in bold
index.php?option=com_search&Itemid=87

IF I search for xxx and click the search the ouput goes to this link - note the itemid in bold
index.php?searchword=xxx&ordering=newest&searchphr ase=all&areas[0]=content&Itemid=100010&option=com_search#content

This is where the search component changes the template

Itemid=87 is the registered users template menu id for the search component
Itemid=100010 is the public users template menu id for the search component

Why is J! changing the menu id on search?

How do I force J! to do as it's told

Last edited by yerg; 12-11-2008 at 09:55 PM. Reason: yet more clarification!!!
yerg is offline   Report as a Bug or Premium support ticket Reply With Quote
Old 12-18-2008, 09:27 PM   #3
yerg
Unlicensed Member
 
Join Date: Feb 2006
Posts: 65
Downloads: 26
Uploads: 0
Credits: 688
Thanks: 2
Thanked 1 Time in 1 Post
Ok I've found a resolution ... not a solution

Create a menu (called invisible) and assign it to a position not used
Create a menu link to the Search component ... same as the existing search in the registered menu/template.

Resolved ... why adding the second menu link to the search component resolves this I really don't know

Last edited by yerg; 12-19-2008 at 01:30 AM. Reason: Partial Solution
yerg is offline   Report as a Bug or Premium support ticket Reply With Quote
Reply

Bookmarks

Tags
itemid, overrides, parsing, problem, search, template overrides, work, wrong

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:01 PM.


vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios