test
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • patvandenbosche Friend
    #897628

    Is it possible to change the way an article starts off? Right now it is on the same line with the icons, and then acts like a hanging indent. This leaves a lot of wasted space on the page, where I can’t even put a module. If I do place a side panel module, then the article is very narrow.

    My site is My Development Site and you can see it specifically under any menu link, i.e. Government Links. I have attached a screen capture that shows my question.

    Thanks,
    Pat


    1. screenshot-virtualcountrymall.com-2016-03-09-19-17-20

    Pat Vanden Bosche
    www.patvb.com

    Adam M Moderator
    #898695

    Hi @patvandenbosche,

    I’m afraid that similar as many questions we got with JA Teline V, this part is designed to display social sharing and typo tools so you cannot inject any module position here.

    patvandenbosche Friend
    #898731

    Thank you, Adam. Not the answer I wanted, but I guess I will just turn off the icons, and find another extension to promote articles.

    Do you have any other suggestions, based on your experience with Teline V?

    Pat Vanden Bosche
    www.patvb.com

    Adam M Moderator
    #898734

    Hi @patvandenbosche,

    Great news is I have just checked this matter and you can follow these steps to achieve your goal.

    1. Open file templates/ja_magz_ii/helper.php and look for this line :
      public static function relTime($timespan, $granularity = 1) {

      add 1 more function above it as below (I still keep the line in below code so you can see the position of added code) :

      public static function loadModules($position, $style = 'raw')
      {
      jimport('joomla.application.module.helper');
      $modules = JModuleHelper::getModules($position);
      $params = array('style' => $style);
      foreach ($modules as $module) {
          echo JModuleHelper::renderModule($module, $params);
      }
      }
      public static function relTime($timespan, $granularity = 1) {
    2. Open file templates/ja_magz_ii/html/com_content/article/default.php and look for this block :

      <div class="article-tools">
      <div class="title-reading hide"> <?php echo $this->item->title; ?></div>
      <?php if ($icons): ?>
          <div class="default-tools">
          <?php echo JLayoutHelper::render('joomla.content.magazine_icons', array('item' => $this->item, 'params' => $params)); ?>
          </div>
      <?php endif; ?>
      
      <?php if ($typo_tools): ?>
      <?php echo JLayoutHelper::render('joomla.content.typo_tools', array()); ?>
      <?php endif ?>
      
      <?php if ($sharing_tools): ?>
      <?php echo JLayoutHelper::render('joomla.content.sharing_tools', array()); ?>
      <?php endif ?>
      </div>

      add 1 more line below it :

      <div class="article-tools">
      <div class="title-reading hide"> <?php echo $this->item->title; ?></div>
      <?php if ($icons): ?>
          <div class="default-tools">
          <?php echo JLayoutHelper::render('joomla.content.magazine_icons', array('item' => $this->item, 'params' => $params)); ?>
          </div>
      <?php endif; ?>
      
      <?php if ($typo_tools): ?>
      <?php echo JLayoutHelper::render('joomla.content.typo_tools', array()); ?>
      <?php endif ?>
      
      <?php if ($sharing_tools): ?>
      <?php echo JLayoutHelper::render('joomla.content.sharing_tools', array()); ?>
      <?php endif ?>
      </div>
      <?php JATemplateHelper::loadModules('below-article-tools', 't3xhtml') ?>

      Now you can create new module, in module position, type in below-article-tools then hit enter (this position is not visible so you cannot select it from the drop-down)

    Bad news is you will lost your change everytime you update the template.

    patvandenbosche Friend
    #898784

    Great! I will give this a shot tomorrow to see how well it works. I will just have to keep the original template files that are affected on my computer so I can hopefully restore the template or just not upgrade the template.

    I’ll let you know if there are any problems within a week.

    Thanks!
    pat

    Pat Vanden Bosche
    www.patvb.com

    patvandenbosche Friend
    #899445

    Well, I tried it and it failed… so I’m going back to plan A, removing the icons for mail, print, etc. Thanks for trying, Adam. I really do appreciate your efforts.

    Pat

    Pat Vanden Bosche
    www.patvb.com

    Adam M Moderator
    #899793

    Hi @patvandenbosche,

    If you’re not sure how to edit this part and still want to continue with it, please reply back with a temporary FTP account and admin account via private reply, I would glad to assist you in this matter.

    patvandenbosche Friend
    #900020
    This reply has been marked as private.

    Pat Vanden Bosche
    www.patvb.com

    patvandenbosche Friend
    #900022
    This reply has been marked as private.

    Pat Vanden Bosche
    www.patvb.com

    Ninja Lead Moderator
    #902527

    Hi Pat,

    Have you solved the problem on your site? I checked the URL of your site and see all icons for mail, print, etc have been removed on your site.

    Regards


    1. Screen-Shot-2016-03-21-at-10.11.50
    patvandenbosche Friend
    #902845

    No, I turned them off so the client could view the site. I didn’t want them to get upset. I figured if you were going to work on it, you would turn them back on. If I’m wrong… well, I’ll just turn them back on now.

    Thanks,
    Pat

    Pat Vanden Bosche
    www.patvb.com

    Ninja Lead Moderator
    #903249

    Hi,

    I have been considered the solution with your request and the CSS style below will help you to move print-email icons to top the article.

    Open templates/ja_magz_ii/css/custom.css file and add new rule

    .item-page .item-main .col-lg-3, .item-page .item-main .col-lg-9 {
        width: 100% !important;
    }

    Hope it helps

    Regards


    1. Screen-Shot-2016-03-22-at-16.48.27
    patvandenbosche Friend
    #904064

    Perfect! Thank you!!

    Pat Vanden Bosche
    www.patvb.com

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

This topic contains 12 replies, has 3 voices, and was last updated by  patvandenbosche 8 years, 9 months ago.

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