1. New arrivals >>> "Awesome" JA Social Preview! - "Awesome" JAT3 Videos 06 videos!

+ Reply to Thread
 
Results 1 to 3 of 3
  1. #1
    Unlicensed Member
    Join Date
    Feb 2006
    Posts
    65
    Points
    688.10
    Downloads
    26
    Uploads
    0
    Thanks
    2
    Thanked 1 Time in 1 Post
    Please login to vote

    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 08:58 PM. Reason: Changed title for greater clarity

  2. #2
    Unlicensed Member
    Join Date
    Feb 2006
    Posts
    65
    Points
    688.10
    Downloads
    26
    Uploads
    0
    Thanks
    2
    Thanked 1 Time in 1 Post
    Please login to vote

    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 08:55 PM. Reason: yet more clarification!!!

  3. #3
    Unlicensed Member
    Join Date
    Feb 2006
    Posts
    65
    Points
    688.10
    Downloads
    26
    Uploads
    0
    Thanks
    2
    Thanked 1 Time in 1 Post
    Please login to vote
    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 12:30 AM. Reason: Partial Solution

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts