Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search--'liquid errors' occur in the list of search results #51

Open
lagoan opened this issue Sep 14, 2017 · 2 comments
Open

Search--'liquid errors' occur in the list of search results #51

lagoan opened this issue Sep 14, 2017 · 2 comments

Comments

@lagoan
Copy link
Owner

lagoan commented Sep 14, 2017

No description provided.

@lagoan
Copy link
Owner Author

lagoan commented Sep 15, 2017

I typed "Strathcona" into the search box and got this: https://app.streetprint.org/edmonton/search?utf8=✓&search=strathcona

When a report is listed, the description is nicely filled with the short abstract for each report. For anything else, like an item or place, the description box is empty, so the user does not know what it is.

Anyway, you should see liquid errors at top and bottom of the page.

@lagoan
Copy link
Owner Author

lagoan commented Sep 15, 2017

The following code is used to show the search results

<table class="table-full-width">
<thead>
	<tr>
		<th>Name</th>
		<th>Description</th>
	</tr>
</thead>
<tbody>
	{% for result in results %}
	<tr>
		<td>
			{{ result.name || link_to_show: project, result}}		
		</td>
		<td>
			{{ result.description }}		
		</td>
	</tr>
	{% endfor %} 
</tbody>
</table>

This will sometimes show the information and other times will give the error Liquid error: wrong number of arguments (given 1, expected 2) for both name and description.

@lagoan lagoan added the bug label Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant