Page 1 of 1
Search module doesn´t work on tables in Photo albums
Posted: Sat May 23, 2009 8:19 pm
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
Re: Search module doesn´t work on tables in Photo albums
Posted: Sat May 23, 2009 8:25 pm
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?
Re: Search module doesn´t work on tables in Photo albums
Posted: Tue May 26, 2009 7:52 pm
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...
Re: Search module doesn´t work on tables in Photo albums
Posted: Wed May 27, 2009 6:39 am
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?
Re: Search module doesn´t work on tables in Photo albums
Posted: Fri May 29, 2009 10:58 pm
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.
Re: Search module doesn´t work on tables in Photo albums
Posted: Sat May 30, 2009 8:39 am
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