select view
CommandOrder by: ⇔  Command

resetbutton

{joodb resetbutton}
thumb

Resetbutton displays an input-button with the classname button reset to clear all search results.

Example

{joodb resetbutton}

Note

Resetbutton is only used if you want do design your own search form. {joodb searchform} includes a reset button already.

resultcount

{joodb resultcount}
thumb

Output of the search result summary. E.g "Element 1-5 of 27".

Example

{joodb resultcount}

Note

Should be placed outside the loop commands

searchbox

{joodb searchbox|[FIELDLIST]}
thumb

Searchbox displays a searchform with an input field for fulltext-searches, search- and resetbuttons and optionally a selector to perform the search only in a special target column.

Parameters 

  • FIELDLIST (optional) - comma separated list of fieldnames

Example

Search in Data

{joodb searchbox|title,value,category}

Code example from the "My Little DB" example database.

Notes

  • Always use real expressions in your language as fieldnames for your database
  • Enter the fieldnames in lowercase
  • The first letter will be transformed to uppercase

 

searchbutton

{joodb searchbutton}
thumb

Searchbutton displays an input-button with the classname button search to submit a search form.

Example

{joodb searchbutton}

Note

Resetbutton is only used if you want do design your own search forms. {joodb Searchform} includes a submit button already.

 

searchfield

{joodb searchfield|FIELDNAME|[cond]} »pro only«
thumb

searchfield is part of the catalog search options. With searchfield you can search in a specific collumn only. You can also combine multiple searchfields for complex searchforms.

Parameters 

  • FIELDNAME - Name of a field in your database
  • cond (optional) - The search condition
    Valid conditions are
    • like (default)  - Match any coincidence
    • exact - Fieldcontent must match 
    • min - Fielvalue is higher or equal (e.G. find all Products more expensive then 4 $)
    • max - Fielvalue is lower or equal
    • start - Fieldcontent starts with (e.G. find entries with date 2014 but not from 2015)
    • end - Fieldcontent ends with

Example

Search by field

{joodb searchfield|title} {joodb searchfield|author} {joodb searchfield|genre|exact}

Search for values in different fields

Notes

  • If you have multiple searchfield the terms are combined by AND.
  • With the fieldlist parameter of searchbox you can outut a select list with fields to search in.
  • You can combine min and max with the same field to find all entries within a range of these two values.

sortlink

{joodb sortlink|FIELDNAME|[linktext]}
thumb

Output of a link to sort the catalogue result to a certain field. The anchor gets the class name order and automatically asc or desc to allow styling of the output. {joodb sortlink} should be outside of the loop declarations.

Parameters 

  • FIELDNAME - Name of a field in your database
  • linktext (optional) - Text of the anchor. E.g. "Sort by headline"

Example

{joodb sortlink|title|Sort by Headline}{joodb sortlink|date|Sort by Date}

submitbutton

{joodb submitbutton}
thumb

Displays a SUBMIT button element using the current language in the form-view. The form will be automatically validated when pressing the button.

Example

{joodb submitbutton}

subtemplate

{joodb subtemplate|TEMPLATENAME} »pro only«
thumb

Subtemplate is replaced with the templateoutput of the subtemplates. Dependent on the type of the relation (1:1,1:n,n:m or n:1) one or more related datasets are displayed.

Parameters

  • TEMPLATENAME - Name of the subtemplate

Example

All movies with {joodb field|actor}
{joodb subtemplate|movies}

.... now the content of your subtemplate ....

	
{joodb field|category}
{joodb field|title} ({joodb field|year})

Notes

thumb

{joodb thumb}
thumb

Displays the thumbnail of the image stored with the dataset. If no image is available the nopic image in /components/com_joodb/assets/images/ is displayed. JooDB automatically adds a modal link to the full-size image.

Example

{joodb thumb}

Notes

Related commands are imagepath2image, path2thumb

You can change the size for thumbnails and images in the options of your JooDB database

See also » about images

translate

{joodb translate|ABBREVIATION}
thumb
translate uses the Joomla language system to translate a language abbreviation to the current site language. This is usefull if you dont want to create a template for every language but tanslate certain terms.

Parameters 

  • ABBREVIATION a Joomla language abbreviation.

Example

Print Joomla offline message (sensless)

{joodb trandlate|JOFFLINE_MESSAGE}

Notes

  • Wit the language Manager in Joomla 2.5+ you can add new terms and abbreviations to the language file by using the language override system.

Page 4 of 4 Results 31 - 40 of 40