Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • dpchap015 Friend
    #190794

    I have notices that all articles in the Event category appear with the “Create Date” on the timeline and the home menu upcoming event slider.
    Suppose i want to put an event that is coming in on 25th December 2013 and some more which are in 2014; how do i get them on timeline and the content slider?

    pavit Moderator
    #506601

    Hi

    The solution is giving to the articles belonging to the events category a custom order and then from ja_content slider module choose the Sort Order By = Ordering

    dpchap015 Friend
    #506639

    <em>@pavit 390559 wrote:</em><blockquote>Hi

    The solution is giving to the articles belonging to the events category a custom order and then from ja_content slider module choose the Sort Order By = Ordering</blockquote>

    Hi,
    I did what you instructed.

    Here what i have:
    => this fixed the home page content slider. 🙂 =>

    But if you look at my “Event” menu (the category blog layout) i am not able to get this page working properly.
    & ==>

    The event page still shows content based on the date of Publishing rather than the date of creation or the ordering as in the case of the content slider where its showing the “date of creation” in the box.

    My event menu settings are: <blockquote>Please refer the next post as i can only attach 5 images</blockquote>


    1. img3
    2. img1
    3. img4
    4. img5
    5. img2
    dpchap015 Friend
    #506640

    Here is the menu config:

    Thanks.


    1. img1
    MoonSailor Friend
    #506671

    Hi,

    It seems to be a bug of this template.

    Try to open file “templates/ja_muzic/html/com_content/category/event.php”

    Find :


    $itemcreated = JHtml::_('date', $item->publish_up, $this->params->get('group_by'));

    then change to


    $orderdate = $this->params->get('order_date');
    $itemcreated = JHtml::_('date', $item->$orderdate, $this->params->get('group_by'));

    Regards

    dpchap015 Friend
    #506689

    <em>@MoonSailor 390651 wrote:</em><blockquote>Hi,

    It seems to be a bug of this template.

    Try to open file “templates/ja_muzic/html/com_content/category/event.php”

    Find :


    $itemcreated = JHtml::_('date', $item->publish_up, $this->params->get('group_by'));

    then change to


    $orderdate = $this->params->get('order_date');
    $itemcreated = JHtml::_('date', $item->$orderdate, $this->params->get('group_by'));

    Regards</blockquote>

    This totally worked.. 😀

    dpchap015 Friend
    #506734

    Also, is there any way to get years listed along with the date and month in the Content Slider here:

    MoonSailor Friend
    #506837

    Hi dpchap015,
    <blockquote>Also, is there any way to get years listed along with the date and month in the Content Slider here: Attachment 30282
    </blockquote>

    You need customize it. Open file “templates/ja_muzic/html/mod_jacontentslider/default.php”, find code


    <div class="created-date">
    <span class="day"><?php echo JHtml::_('date', $contn->created, JText::_('TPL_DATE_FORMAT_DAY'));?></span>
    <span class="month"><?php echo JHtml::_('date', $contn->created, JText::_('TPL_DATE_FORMAT_MONTH'));?></span>
    </div>

    :

    And you can add year as


    <span class="year"><?php echo JHtml::_('date', $contn->created, 'Y');?></span>

    Regards.

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 3 voices, and was last updated by  MoonSailor 11 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum