WebSite X5Help Center

 
Alvin L.
Alvin L.
User

Exclude Objects From Search Results  en

Autor: Alvin L.
Visitado 347, Followers 1, Compartido 0  

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

Publicado en
2 RESPUESTAS - 1 CORRECTO
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 {

}

Leer más
Publicado en de 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

Leer más
Publicado en de Alvin L.