test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • loewsadmin Friend
    #198079

    I would like to have two pages on my site that use the “Event Category Blog” format.

    I began by successfully created an “Events” page and populating it. That page is appearing with the red date boxes, center timeline and intro text as expected.

    I then created a second page (called “Films”) by creating “event category blog” menu item, associating it with a new category (Films) and created articles in that category. The page renders but the red date boxes do not appear even though all of the settings for this page match the working one exactly.

    I found the thread below that says sub-categories on event pages are not possible but I am not trying to do sub-categories.

    http://www.joomlart.com/forums/topic/sub-categories-in-events/

    So, does anyone know if two “event category blog” format pages are allowed when using the JA Muzic template? And if they are allowed, if there are any special settings or code modifications required, could you please share those with me?

    Thank you!

    chavan Friend
    #536329

    Check your site now, it is fixed

    Go to this File: templatesja_muzichtmlcom_contentcategoryevent_item.php

    Replaced this code

    <?php if ($params->get('show_create_date')) : ?>
    <?php

    if($event_category == $this->item->catid){ ?>
    <div class="created-date">
    <span class="day"><?php echo JHtml::_('date', $this->item->created, JText::_('TPL_DATE_FORMAT_DAY'));?></span>
    <span class="month"><?php echo JHtml::_('date', $this->item->created, JText::_('TPL_DATE_FORMAT_MONTH'));?></span>
    </div>
    <?php }else{ ?>
    <dd class="create">
    <?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', '<span>'.JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3')).'</span>'); ?>
    </dd>
    <?php }?>
    <?php endif; ?>

    with

    <?php if ($params->get('show_create_date')) : ?>
    <?php

    // if($event_category == $this->item->catid){ ?>
    <div class="created-date">
    <span class="day"><?php echo JHtml::_('date', $this->item->created, JText::_('TPL_DATE_FORMAT_DAY'));?></span>
    <span class="month"><?php echo JHtml::_('date', $this->item->created, JText::_('TPL_DATE_FORMAT_MONTH'));?></span>
    </div>
    <?php //}else{ ?>
    <!-- <dd class="create">
    <?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', '<span>'.JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3')).'</span>'); ?>
    </dd> -->
    <?php// }?>
    <?php endif; ?>

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

This topic contains 2 replies, has 2 voices, and was last updated by  chavan 10 years, 7 months ago.

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