Search
Other Articles Anywhere questions
Forum

Parent Category

Raul Cazorla's Avatar Raul Cazorla
Hi Again,

Articles anywhere is a really amazing plugin!

I'm learning and changing a lot of things in my web site.

So, I would like to kwow if possible to get category parent of current category.
{articles orden-en-revista=">=' '" category="!Videos del editor"  tags="publicado" dms3-content-type="dms3_article" numero-article = "input:numero" anyo-article =   "input:ano" pagination="false"  
 one_per_category="true" ordering="orden-en-revista ASC" }
   <div class="journal-container">
     <h2>[parent-category]-[category]</h2>
      {articles-nested catid="[catid]" orden-en-revista=">=' '" tags="publicado" dms3-content-type="dms3_article" numero-article = "input:numero" anyo-article =   "input:ano" pagination="false" ordering="orden-en-revista ASC"}
     <div class="journal cat[catid]">
         <h3>[link][title][/link]</h3>
         <div>[dms3-authors-affiliations]</div>
         <p class="doi">DOI: <a href="[dms3-doi]" target="_blank">[dms3-doi]</a></p>
         <p>Disponible <em>online</em> el [publish_up format="j/n/Y"]</p>
      </div>
      {/articles-nested}

   </div> 
{/articles}

As you can see, <h2>[parent-category][category]</h2> is not valid, but I'm trying to get parent category of category (if any)

Thanks in advance for your help
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases

You should now be able to use any data also available for that category by pretending it with 'parent-':
docs3.regularlabs.com/articlesanywhere/d...erview#category-data

Like:
[parent-category] / [parent-category-title]
[parent-category-id]
[parent-category-alias]
[parent-category-description]
[parent-category-url]
...
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription