cb_categorie variable (Field Manager)

15 years 2 months ago #10169 by Jacob
Replied by Jacob on topic Re:cb_categorie variable (Field Manager)
Mikko,

Not sure if you saw my comment about the code but it did not work, after I tried to echo the value of $cat (which is obtained by the query) yet nothing is shown.

I just stuck that code as you see it on my template, should it have worked or am I missing something?

Jacob

Joomla Development and Support since 2005

Please Log in to join the conversation.

15 years 2 months ago #10183 by mikko
Replied by mikko on topic Re:cb_categorie variable (Field Manager)
Ah, you need to add

$database->setQuery($sql);

before the line where you fetch the result.

mikko

Please Log in to join the conversation.

15 years 2 months ago #10234 by Jacob
Replied by Jacob on topic Re:cb_categorie variable (Field Manager)
That did it thanks!

I had to change $sql in your line to $query

Much appreciated.

Joomla Development and Support since 2005

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.620 seconds

Facebook Twitter LinkedIn