Search module doesn´t work on tables in Photo albums

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
yorchotronic
Forum Members
Forum Members
Posts: 27
Joined: Fri Aug 15, 2008 5:12 am

Search module doesn´t work on tables in Photo albums

Post by yorchotronic »

Hi,

I´ve some tables in the comments fields  on the photo album, the search module  doesn´t find the text into the tables but it find the txto out of the tables.

is there something to do to fix this?


tnx
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Search module doesn´t work on tables in Photo albums

Post by Russ »

Do you have an example yorchotronic we can see? You are saying you have text in tables and text outside tables in a comment field?
yorchotronic
Forum Members
Forum Members
Posts: 27
Joined: Fri Aug 15, 2008 5:12 am

Re: Search module doesn´t work on tables in Photo albums

Post by yorchotronic »

In Album Photos, one album into the Album Photos,  in the main thumbnail  into the the commnes I`ve a table like this:

*******************************************************






Bahia Yanten


$870,000 USD


3 "Large master bdrm"


Single      Story


Residential


Marina





*****************************

cms search don´t find the text on the table like "Bahia Yanten". The text out of the table was just to see if search works in that case. It works.

Any idea...
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Search module doesn´t work on tables in Photo albums

Post by Russ »

Hi yorchotronic, if I understand you right you are adding all this table stuff to a {comment} in the template of an album for each photo?

If so you are going to end up with invalid code, I don't think you can have HTML in comments (title) or alt fields, for alt fields. Do you have a web page we can actually see?
yorchotronic
Forum Members
Forum Members
Posts: 27
Joined: Fri Aug 15, 2008 5:12 am

Re: Search module doesn´t work on tables in Photo albums

Post by yorchotronic »

well, the code for the table is in the field comment, on Album, is a normal field with WYSYSYG option, and  a option to copy from word. this option generate a table on the comment field, uncheking the WYSYWYG you can see the html code. I am not using the template.

I'm uploading a web to the server, by the momento only in local.
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Search module doesn´t work on tables in Photo albums

Post by Russ »

OK, when I stripped the table of all the messy Word style stuff it works fine, I can search for 'Residential' or 'Yanten'.  (Actually with just  a bit of tidy up it works with the code as is.)

Tidy Code

Code: Select all

<table>
<tbody>
<tr>
<td>
<p>Bahia Yanten</p>
</td>
<td>
<p>$870,000 USD</p>
</td>
<td>
<p>3 Large master bdrm</p>
</td>
<td>
<p>Single Story</p>
</td>
<td>
<p>Residential</p>
</td>
<td>
<p>Marina</p>
</td>
</tr>
</tbody>
</table>
Although I see no need for tables here??

Code: Select all

<p>Bahia Yanten</p>
<p>$870,000 USD</p>
<p>3 Large master bdrm</p>
<p>Single Story</p>
<p>Residential</p>
<p>Marina</p>
or

Code: Select all

<p>Bahia Yanten</br>
$870,000 USD</br>
3 Large master bdrm</br>
Single Story</br>
Residential</br>
Marina</p>
or

Code: Select all

<p class="location">Bahia Yanten</p>
<p class="price">$870,000 USD</p>
<p class="bedrooms">3 Large master bdrm</p>
<p class="floors">Single Story</p>
<p class="type">Residential</p>
<p class= "feature">Marina</p>
Or better still create a template with these features with something similar and format with CSS?
Pasting from Word is never a good idea in my opinion. Keep you code clean ;-)

Hope this helps,
Russ
Post Reply

Return to “Modules/Add-Ons”