Hi, I have crated a Hubdb with 331 items. I am looking to create a glossary page that is built by pulling in the data from this tabel.
I have coded the from A to L:
<div class="a-z">
<div class="set">
<h3 class="letter">A</h3>
<ul class="word">
{% set glossary = hubdb_table_rows(module.hubdb_id, queryparam= "letter=A") %}
{% for glossary in glossary %}
<li><a href="">{{ glossary.name }}</a></li>
{% endfor %}
</ul>
</div>
<div class="set">
<h3 class="letter">B</h3>
<ul class="word">
{% set glossary = hubdb_table_rows(module.hubdb_id, queryparam= "letter=B") %}
{% for glossary in glossary %}
<li><a href="">{{ glossary.name }}</a></li>
{% endfor %}
</ul>
</div>
<div class="set">
<h3 class="letter">C</h3>
<ul class="word">
{% set queryparam = "letter=C" %}
{% set glossary = hubdb_table_rows(module.hubdb_id, queryparam= "letter=C") %}
{% for glossary in glossary %}
<li><a href="">{{ glossary.name }}</a></li>
{% endfor %}
</ul>
</div>
<div class="set">
<h3 class="letter">D</h3>
<ul class="word">
{% set queryparam = "letter=D" %}
{% set glossary = hubdb_table_rows(module.hubdb_id, queryparam= "letter=D") %}
{% for glossary in glossary %}
<li><a href="">{{ glossary.name }}</a></li>
{% endfor %}
</ul>
</div>
<div class="set">
<h3 class="letter">E</h3>
<ul class="word">
{% set glossary = hubdb_table_rows(module.hubdb_id, queryparam= "letter=E") %}
{% for glossary in glossary %}
<li><a href="">{{ glossary.name }}</a></li>
{% endfor %}
</ul>
</div>
<div class="set">
<h3 class="letter">F</h3>
<ul class="word">
{% set glossary = hubdb_table_rows(module.hubdb_id, queryparam= "letter=F") %}
{% for glossary in glossary %}
<li><a href="">{{ glossary.name }}</a></li>
{% endfor %}
</ul>
</div>
<div class="set">
<h3 class="letter">G</h3>
<ul class="word">
{% set glossary = hubdb_table_rows(module.hubdb_id, queryparam= "letter=G") %}
{% for glossary in glossary %}
<li><a href="">{{ glossary.name }}</a></li>
{% endfor %}
</ul>
</div>
<div class="set">
<h3 class="letter">H</h3>
<ul class="word">
{% set glossary = hubdb_table_rows(module.hubdb_id, queryparam= "letter=H") %}
{% for glossary in glossary %}
<li><a href="">{{ glossary.name }}</a></li>
{% endfor %}
</ul>
</div>
<div class="set">
<h3 class="letter">I</h3>
<ul class="word">
{% set glossary = hubdb_table_rows(module.hubdb_id, queryparam= "letter=I") %}
{% for glossary in glossary %}
<li><a href="">{{ glossary.name }}</a></li>
{% endfor %}
</ul>
</div>
<div class="set">
<h3 class="letter">J</h3>
<ul class="word">
{% set glossary = hubdb_table_rows(module.hubdb_id, queryparam= "letter=J") %}
{% for glossary in glossary %}
<li><a href="">{{ glossary.name }}</a></li>
{% endfor %}
</ul>
</div>
<div class="set">
<h3 class="letter">K</h3>
<ul class="word">
{% set glossary = hubdb_table_rows(module.hubdb_id, queryparam= "letter=K") %}
{% for glossary in glossary %}
<li><a href="">{{ glossary.name }}</a></li>
{% endfor %}
</ul>
</div>
<div class="set">
<h3 class="letter">L</h3>
<ul class="word">
{% set glossary = hubdb_table_rows(module.hubdb_id, queryparam= "letter=L") %}
{% for glossary in glossary %}
<li><a href="">{{ glossary.name }}</a></li>
{% endfor %}
</ul>
</div>
</div>
Unfortunatly nothing is being pulled into K or L so I am assuming that I am hitting the limit for the number of calls to the Hubdb.
Is there a way for me to build this so that I call from the Hubdb once and then display the data via queries for each letter rather than calling the Hubdb for each letter.
The database has a column for item name and a column for the letter that it is grouped to.
Thanks




