Jump to content
  • 0
Askancy

Nome categoria

Question

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

1 answer to this question

Recommended Posts

  • 0
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
Answer this question...

×   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...

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. to insert a cookie message.