fbpx
Introducing JD Builder - Now Beat the unbeatable designsDownload For Free
Welcome, Guest
Username: Password: Remember me

Building something on Astroid?

Submit your site to be featured in our monthly Astroid Site Showcase!

Submit Now

TOPIC: Redefinition of modules under Astroid styles

Redefinition of modules under Astroid styles 3 months 1 week ago #15382

  • Rinat
  • Rinat's Avatar
  • Offline
  • New Member
  • Posts: 13
  • Karma: 0
I've redefined standard modules. Popular materials in a template(mod_articles_popular).
And now I want to bring there the names of the category and the date and the author of the article, under the template styles.
But I know little php and can not withdraw? can you help?
What would these icons be displayed nearby too. Is it possible?

and for other standard material modules how to do if possible? :)
The administrator has disabled public write access.

Redefinition of modules under Astroid styles 3 months 1 week ago #15443

  • nishtha
  • nishtha's Avatar
  • Offline
  • Administrator
  • Posts: 371
  • Thank you received: 42
  • Karma: 7
Hi,

Well we tried cracking up our brains but couldn't really understand your query. Please simplify and tell what are you confused about.

Thanks,
Nishtha
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.

To know more about products check out the their documentation.
The administrator has disabled public write access.

Redefinition of modules under Astroid styles 3 months 5 days ago #15520

  • Rinat
  • Rinat's Avatar
  • Offline
  • New Member
  • Posts: 13
  • Karma: 0
I had to change the standard set of modules - Popular Content Module.
And display there information about the category and the author and the date of publication.
But they already helped me.
It was necessary to take this code and put the right place.
<?php
$qauthor = $item->author;
$qcategory_title = $item->category_title;
$qdatetech = $item->created; // modified
$qdate = JHtml::_('date', $qdatetech, 'd.m.Y', JFactory::getApplication()->getCfg('offset'), true);
?>

<dl class="article-info">

<dd class="category-name">
<i class="far fa-folder"></i>
<?php echo $qcategory_title; ?> </dd>


<dd class="createdby" itemprop="author" itemscope="" itemtype="schema.org/Person">
<i class="far fa-user"></i>
<span itemprop="name"><?php echo $qauthor; ?></span> </dd>

<dd class="create">
<i class="far fa-calendar-alt"></i>
<time datetime="2019-06-09T18:28:39+05:00" itemprop="dateCreated">
<?php echo $qdate; ?> </time>
</dd>
</dl>
The administrator has disabled public write access.

Redefinition of modules under Astroid styles 3 months 3 days ago #15580

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Posts: 2851
  • Thank you received: 439
  • Karma: 91
Thanks for posting it here Rinat.
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.
Time to create page: 0.292 seconds