Jump to content
Askancy

Nome categoria

Recommended Posts

Askancy

Ciao dovrei inserire nella home accanto ad ogni articolo la sua categoria di appartenenza, purtroppo sul "block tags" non ho trovato niente.. solo $r['category_id'] ma io ho bisogno del nome, ho provato pure con {$r['category_name']} e  {$data['category_name']} ma niente, come posso fare?

Share this post


Link to post
Share on other sites
BomAle
<php>$database_id = 3;$catclass = $this->registry->ccsFunctions->getCategoriesClass($database_id, false)->categories;</php><if test="is_array($catclass[$r['category_id']])"><php>array_merge($r,$catclass[$r['category_id']]);</php></if>

cambia database_id in quello che ha il record (dovrebbe essere presente $r['database_id'])

 

aggiungi il codice appena dopo il <foreach loop="... as $r">

 

scusa il ritardo :(

Edited by BomAle

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Crea Nuovo...

Important Information

By using this site, you agree to our Terms of Use.