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
Search module doesn´t work on tables in Photo albums
-
- Forum Members
- Posts: 27
- Joined: Fri Aug 15, 2008 5:12 am
Re: Search module doesn´t work on tables in Photo albums
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?
-
- Forum Members
- Posts: 27
- Joined: Fri Aug 15, 2008 5:12 am
Re: Search module doesn´t work on tables in Photo albums
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...
*******************************************************
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
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?
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?
-
- Forum Members
- Posts: 27
- Joined: Fri Aug 15, 2008 5:12 am
Re: Search module doesn´t work on tables in Photo albums
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.
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
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
Although I see no need for tables here??
or
or
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
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>
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>
Code: Select all
<p>Bahia Yanten</br>
$870,000 USD</br>
3 Large master bdrm</br>
Single Story</br>
Residential</br>
Marina</p>
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>
Pasting from Word is never a good idea in my opinion. Keep you code clean

Hope this helps,
Russ