× 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

Multiple fields to dinamically create a image source

More
5 years 7 months ago #4820 by pellinim@me.com
Dears,
I'm preparing the new version of a website for a volleyball company, using the latest free version of JooDB.

As I've to manage different teams, I was trying to concatenate different DB fields to dinamically build information and retrieving images from the folder.

In a catalog view I wanted to build the srouce images in this way:
<img style="max-width: 35px; width: 95%;" alt="" src="images/{joodb Stagione}/{joodb Campionato}/loghi/{joodb ShortA}.png">

having the following values in my DB:
Stagione="2018-2019"
Campionato="B2FA"
ShortA="TEST"
I expected the url to be filled as follow
<img style="max-width: 35px; width: 95%;" alt="" src="images/2018-2019/B2FA/loghi/TEST.png">

while this is the result I get
/nuovob2/images/2018-2019/<a href='/nuovob2/index.php/serie-b2/calendario-e-risultati-b2-2018-2019/182-b2fa' title='Read more...' class='joodb_titletink'>B2FA</a>/loghi/TEST.png

I really can't understand why the second field is not properly filled.
Please note that /nuovob2/index.php/serie-b2/calendario-e-risultati-b2-2018-2019 is the url of the page where I'd like to show the catalog view...

Do you have any idea what's wrong here?
Thanks in advance for any suggestion.

Please Log in to join the conversation.

More
5 years 7 months ago #4823 by Dirk
Campionato is your probably the title field of your joodb database.

If you enable link titles in your catalog settings (menu settings) the title field is replaced by an anchor to the single view.

Just disable it in the menu settings!

btw.: the correct syntax is {joodb field|Campionato} not just {joodb Campionato}

Please Log in to join the conversation.

More
5 years 7 months ago #4824 by pellinim@me.com
Replied by pellinim@me.com on topic Multiple fields to dinamically create a image source
Hello Dirk,

THANKS A LOT.
The menu link was actually the root cause; I didn't realize it.
However I also add field in front of my field labels.

Again, thanks for your fast and efficient reply!!!

ciao

Please Log in to join the conversation.

Moderators: Dirkjoest