× If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html

first view catalog template

More
10 years 2 months ago #2721 by imperore
first view catalog template was created by imperore
Hi all! joodb is very fantastic for joomla site!
i've just one question for the catalog template.
Is possible to show first view (before search or before using alfabox) empty?
Thank you for replies!

anyway joodb is a very fantastic component

Please Log in to join the conversation.

More
10 years 2 months ago #2723 by Dirk
Replied by Dirk on topic first view catalog template

imperore wrote: Hi all! joodb is very fantastic for joomla site!
i've just one question for the catalog template.
Is possible to show first view (before search or before using alfabox) empty?
Thank you for replies!


The only solution right now is to take the empty search form and copy the html into a blank article. If the form action in the article points/redirects to your database you will see the result after sending the form.
joodb.feenders.de/db-example.html?search=tomato

But because you're not the first who wants this feature there will configuration-switch in the catalog menu-paramters in one of the next versions.
The following user(s) said Thank You: imperore, baenialtnau

Please Log in to join the conversation.

More
10 years 2 months ago #2728 by imperore
Replied by imperore on topic first view catalog template
thank you for reply!
but how can i do it?
i'm in joodb backend, and i've a menu button that call catalog view. if i use a external url link with "xxxx" param to view my table i lost all data link... ho can i resolve this problem?
sorry for my english.... :)
thank you for collaboration!

Please Log in to join the conversation.

More
10 years 2 months ago #2729 by imperore
Replied by imperore on topic first view catalog template
THANKKKKKKKKK YOUUUUU!
Fantastic! your solution is ok!
Now I try to explain to all those who have the same problem:
1 create new blank article
2 view the html source of the sample link
3 copy,paste and adapt the form code to your database
4 save the article
5 create a button menu in joomla that point to your article
Thank you to Moderator: dirk that has suggested the solution!

Please Log in to join the conversation.

More
10 years 2 months ago #2733 by william.kcperformance
Replied by william.kcperformance on topic first view catalog template
Funny, I asked this several times...
I came up with an alternative method: I used is the {joodb ifis} function.
Make sure you know what item is the first, because the menu item uses "sort by id" in this case...
I stripped my template, maybe it's useable or points you in the right direction.

<!--NAVIGATION-->
<div>
<h2>NAVIGATION LAYER</h2>
</div>
<!--NAVIGATION END-->
<!--FIRST PAGE-->
{joodb loop}
{joodb ifis|id|1|eq}
<div style="width: 100%; float: left; clear: left;">
<hr />
<h2>FIRST PAGE</h2>
<hr />
</div>
{joodb endif}
<!--DATABASE-->
{joodb ifis|id|1|gt}
<div style="width: 100%; float: left; clear: left;">
<h2>DATABASE CONTENT, FILL WITH JOODB DATA</h2>
</div>
{joodb endif}
<!--DATABASE-->
{joodb endif}
{joodb loop}

Good luck!
The following user(s) said Thank You: imperore

Please Log in to join the conversation.

More
10 years 2 months ago #2735 by imperore
Replied by imperore on topic first view catalog template
Ok, my first solution has some problem: lost link on every entry only the button read more is active... i don't understand why...., and i belive that the solution suggested by william is too complex for me, sorry.... anyway I solved the problem this way:
1_create a new menu in joomla and i don't assign in to any module (so it's "invisible"...)
2_in the "hidden" menu create the "joodb catalog view" (it's invisible too)
3_create a button or link in another menu that point to catalog view to one blank entry in my db (the result when you click it is the default error message when no value is found).... :)
3_use the default search box in joodb catalog to find every entries...
to think of it is the solution suggested by dirk....
thank you!
expect, however, that this option is included in the configuration menu of one of the next versions of joodb.
Have fun and thank you for collaboration!

Please Log in to join the conversation.

Moderators: Dirkjoest