Welcome, Guest
Username: Password: Remember me
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
  • Page:
  • 1

TOPIC: Multiple fields to dinamically create a image source

Multiple fields to dinamically create a image source 11 months 2 weeks ago #4820

  • pellinim@me.com
  • pellinim@me.com's Avatar Topic Author
  • Offline
  • Posts: 4
  • Thank you received: 0
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 or Create an account to join the conversation.

Multiple fields to dinamically create a image source 11 months 2 weeks ago #4823

  • Dirk
  • Dirk's Avatar
  • Offline
  • Posts: 1031
  • Karma: 21
  • Thank you received: 186
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 or Create an account to join the conversation.

Multiple fields to dinamically create a image source 11 months 2 weeks ago #4824

  • pellinim@me.com
  • pellinim@me.com's Avatar Topic Author
  • Offline
  • Posts: 4
  • Thank you received: 0
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 or Create an account to join the conversation.

  • Page:
  • 1
Moderators: Dirkjoest