404 Component not found when performing search using embedded sidebar in Joomla
|
warnett17
![]()
Joined: 2009-02-16
Posts: 5 |
Posted: Wed, 2009-02-18 21:57
|
|
I'm trying to gather predetermined search results to hard code into a jump menu in the "our portfolio" section of the site. When turning on the sidebar (which will eventually be turned off) I enter a search for a known keyword (in my case, "mob") but get a "404 -Component Not Found" error. I'm only guessing this might have something to do with gallery embedded in Joomla but I cannot figure out at all how to make this work. I appreciate any help... I've been searching online for 9 hours now lol. The link is: http://www.bcsitedev.com/cooperdev. The Gallery is linked under "our portfolio." Thanks again!! |
|


Posts: 2
Hi Will,
I have this same issue with the search within the embedded sidbar in Joomla. Did you ever fix the problem?
-Cory
Posts: 6138
Many gallery generated urls require an $authToken
I once handcoded a gallery search:
G2_init(); global $gallery; $session =&$gallery->getSession(); $authToken = $session->getAuthToken(); echo <<<EOT <!-- Start gallery search form --> <div style="background-color:#f1f1f1;"> <form id="SearchScan" action= "http://www.yoursite.com/gallery2/main.php" method= "post" onsubmit= "return (this.g2_form[searchCriteria].value != '');"> <div id="gsContent" class="gcBorder1"> <input type="hidden" name="g2_returnName" value=""> <input type="hidden" name="g2_return" value= "http://www.yoursite.com/gallery2/main.php?g2_view=search.SearchScan"> <input type="hidden" name="g2_formUrl" value= "http://www.yoursite.com/gallery2/main.php?g2_view=search.SearchScan"> <input type="hidden" name="g2_authToken" value= "$authToken"> <input type="hidden" name= "g2_controller" value="search.SearchScan"> <input type="hidden" name="g2_form[formName]" value="SearchScan"> <script type="text/javascript"> // <![CDATA[ function setCheck(val) { document.getElementById('cb_GalleryCoreSearch_descriptions').checked = val; document.getElementById('cb_GalleryCoreSearch_keywords').checked = val; document.getElementById('cb_GalleryCoreSearch_summaries').checked = val; document.getElementById('cb_GalleryCoreSearch_titles').checked = val; document.getElementById('cb_comment_comments').checked = val; document.getElementById('cb_CustomField_customfield').checked = val; document.getElementById('cb_MultiLang_title').checked = val; document.getElementById('cb_MultiLang_summary').checked = val; document.getElementById('cb_MultiLang_description').checked = val; document.getElementById('cb_tags_tags').checked = val; } function invertCheck() { var o; o = document.getElementById('cb_GalleryCoreSearch_descriptions'); o.checked = !o.checked; o = document.getElementById('cb_GalleryCoreSearch_keywords'); o.checked = !o.checked; o = document.getElementById('cb_GalleryCoreSearch_summaries'); o.checked = !o.checked; o = document.getElementById('cb_GalleryCoreSearch_titles'); o.checked = !o.checked; o = document.getElementById('cb_comment_comments'); o.checked = !o.checked; o = document.getElementById('cb_CustomField_customfield'); o.checked = !o.checked; o = document.getElementById('cb_MultiLang_title'); o.checked = !o.checked; o = document.getElementById('cb_MultiLang_summary'); o.checked = !o.checked; o = document.getElementById('cb_MultiLang_description'); o.checked = !o.checked; o = document.getElementById('cb_tags_tags'); o.checked = !o.checked; } // ]]> </script> <div class="gbBlock"> <input id="gallery-search-textbox" type= "text" name="g2_form[searchCriteria]" maxlength="255" value="Search" title= "Search" onfocus= "if (this.value=='Search')this.value='';" onblur= "if(this.value=='')this.value='Search';"> <input type="submit" name= "g2_form[action][search]" value= "Search Media"> <div style="margin: 0.5em 0"> <input type="checkbox" id= "cb_GalleryCoreSearch_descriptions" name= "g2_form[options][GalleryCoreSearch][descriptions]" checked="checked"> <label for= "cb_GalleryCoreSearch_descriptions">Search descriptions</label> <input type= "checkbox" id= "cb_GalleryCoreSearch_keywords" name= "g2_form[options][GalleryCoreSearch][keywords]" checked="checked"> <label for= "cb_GalleryCoreSearch_keywords">Search keywords</label> <input type="checkbox" id="cb_GalleryCoreSearch_summaries" name= "g2_form[options][GalleryCoreSearch][summaries]" checked="checked"> <label for= "cb_GalleryCoreSearch_summaries">Search summaries</label> <input type= "checkbox" id= "cb_GalleryCoreSearch_titles" name= "g2_form[options][GalleryCoreSearch][titles]" checked="checked"> <label for= "cb_GalleryCoreSearch_titles">Search titles</label> <input type="checkbox" id="cb_comment_comments" name= "g2_form[options][comment][comments]" checked="checked"> <label for= "cb_comment_comments">Search comments</label> <input type="checkbox" id="cb_CustomField_customfield" name= "g2_form[options][CustomField][customfield]" checked="checked"> <label for= "cb_CustomField_customfield">Search custom fields</label> <input type= "checkbox" id="cb_MultiLang_title" name= "g2_form[options][MultiLang][title]" checked="checked"> <label for= "cb_MultiLang_title">Search titles (English (UK))</label> <input type= "checkbox" id="cb_MultiLang_summary" name= "g2_form[options][MultiLang][summary]" checked="checked"> <label for= "cb_MultiLang_summary">Search summaries (English (UK))</label> <input type= "checkbox" id= "cb_MultiLang_description" name= "g2_form[options][MultiLang][description]" checked="checked"> <label for= "cb_MultiLang_description">Search descriptions (English (UK))</label> <input type="checkbox" id= "cb_tags_tags" name= "g2_form[options][tags][tags]" checked= "checked"> <label for= "cb_tags_tags">Search Tags</label> </div> <div> <a href="javascript:setCheck(1)">Check All</a> <a href= "javascript:setCheck(0)">Uncheck All</a> <a href= "javascript:invertCheck()">Invert</a> </div> </div> </div> </form> </div> <!-- End gallery search form --> EOT;-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 6138
I also have another way to embed a gallery searchblock
http://gallery.menalto.com/node/94321
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 36
Does anyone have a clue about how to fix this issue? I got the same problem