WebSite X5Help Center

 
Alvin L.
Alvin L.
User

Exclude Objects From Search Results  en

Autor: Alvin L.
Besucht 349, Followers 1, Geteilt 0  

Is there a way to exclude objects like the HTML Code object from search results when using the built in Search?

Gepostet am
2 ANTWORTEN - 1 KORREKT
Alvin L.
Alvin L.
User
Autor

I would really like to exclude all of the "HTML Code" objects from the WX5 built in Search object results.  Is there something that can be added to the code segment to make it hidden from the search?  Maybe something that can be configured here:

#imHTMLObject_74_81 {

}

Mehr lesen
Gepostet am von Alvin L.
Alvin L.
Alvin L.
User
Autor

In case anyone wants to do this in the future, I did figure out how to exclude my HTML Code segments from the built in X5 Search function.  This is a very simple solution.  All you need to do is wrap your segment of code between two comments like this:

<!-- UNSEARCHABLE -->
    ...put your code here...
<!-- UNSEARCHABLE END -->

I hope this helps someone or atleast keeps you from spending several hours digging through PHP script to figure it out.

Alvin

Mehr lesen
Gepostet am von Alvin L.