Closed (fixed)
Project:
MySite
Version:
5.x-1.2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2009 at 10:59 UTC
Updated:
25 Feb 2009 at 09:36 UTC
Hi, first of all sorry about my english and my ignorance. My question is simple. How can I search on mysite module? I have the search module but when I submit a search it only finds the keywords of my content out of mysite module...
I've find this line in the search module
$node_regexp = '@href=[\'"]?(?:'. preg_quote($base_url, '@') .'/|'. preg_quote(base_path(), '@') .')(?:\?q=)?/?((?![a-z]+:)[^\'">]+)[\'">]@i';
I supposed that looks in that direction for all the nodes that it finds. I should change than url? or that is not the problem
Thanks!
Comments
Comment #1
agentrickardI do not understand the question.
You want search results to link to a user's MySite page? Why?
I do not think that is possible, or advisable, for two reasons:
1) The MySite page is an aggregate of content found elsewhere on the site.
2) Normally, the MySite page content is different for each user, so you cannot guarantee that the contents of one user's page will be the same as another user's.
Those issues aside, this is really a search question, I think, better stated as:
"Can the Drupal search system index pages that are not nodes? If so, how?"
Comment #2
kikolabiano commentedThanks for the reply. Actually the question you have said is more correct than mine
"Can the Drupal search system index pages that are not nodes? If so, how?"
Thank you very much
Comment #3
agentrickardI don't know the answer to that. Try the API docs or the forums.
Comment #4
kikolabiano commentedThanks