• <tfoot id='KJmS8'></tfoot>
    <legend id='KJmS8'><style id='KJmS8'><dir id='KJmS8'><q id='KJmS8'></q></dir></style></legend>

      <bdo id='KJmS8'></bdo><ul id='KJmS8'></ul>

      <i id='KJmS8'><tr id='KJmS8'><dt id='KJmS8'><q id='KJmS8'><span id='KJmS8'><b id='KJmS8'><form id='KJmS8'><ins id='KJmS8'></ins><ul id='KJmS8'></ul><sub id='KJmS8'></sub></form><legend id='KJmS8'></legend><bdo id='KJmS8'><pre id='KJmS8'><center id='KJmS8'></center></pre></bdo></b><th id='KJmS8'></th></span></q></dt></tr></i><div id='KJmS8'><tfoot id='KJmS8'></tfoot><dl id='KJmS8'><fieldset id='KJmS8'></fieldset></dl></div>
    1. <small id='KJmS8'></small><noframes id='KJmS8'>

        Joomla 3.1 介绍图片作为阅读更多链接

        Joomla 3.1 intro image as read more link(Joomla 3.1 介绍图片作为阅读更多链接)

        <small id='d0qQK'></small><noframes id='d0qQK'>

          <bdo id='d0qQK'></bdo><ul id='d0qQK'></ul>

            • <tfoot id='d0qQK'></tfoot>
                <legend id='d0qQK'><style id='d0qQK'><dir id='d0qQK'><q id='d0qQK'></q></dir></style></legend>
                  <tbody id='d0qQK'></tbody>

                <i id='d0qQK'><tr id='d0qQK'><dt id='d0qQK'><q id='d0qQK'><span id='d0qQK'><b id='d0qQK'><form id='d0qQK'><ins id='d0qQK'></ins><ul id='d0qQK'></ul><sub id='d0qQK'></sub></form><legend id='d0qQK'></legend><bdo id='d0qQK'><pre id='d0qQK'><center id='d0qQK'></center></pre></bdo></b><th id='d0qQK'></th></span></q></dt></tr></i><div id='d0qQK'><tfoot id='d0qQK'></tfoot><dl id='d0qQK'><fieldset id='d0qQK'></fieldset></dl></div>
                  本文介绍了Joomla 3.1 介绍图片作为阅读更多链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 joomla 3.1 中我编辑了这个文件 componentscom_contentviewsfeatured mpldefault_item.php

                  image_intro) && !empty($images->image_intro)) : ?><?php $imgfloat = (empty($images->float_intro)) ?$params->get('float_intro') : $images->float_intro;?><div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"><img<?php if ($images->image_intro_caption):echo 'class="caption"'.'title="' .htmlspecialchars($images->image_intro_caption) .'"';万一;?>src="<?php echo htmlspecialchars($images->image_intro); ?>"alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>

                  <?php endif;?>

                  到:

                  image_intro) && !empty($images->image_intro)) : ?><?php $imgfloat = (empty($images->float_intro)) ?$params->get('float_intro') : $images->float_intro;?><div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"><a href="<?php echo $this->item->readmore_link;?>"><img<?php if ($images->image_intro_caption):echo 'class="caption"'.'title="' .htmlspecialchars($images->image_intro_caption) .'"';万一;?>src="<?php echo htmlspecialchars($images->image_intro); ?>"alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/></a>

                  <?php endif;?>`

                  但它无法正常工作,因为正在链接到主页......我该如何解决这个问题,我尝试了所有方法,但它不起作用Joomla 介绍图片作为阅读更多链接

                  解决方案

                  首先,你不应该编辑核心文件.与其编辑 componentscom_contentviewsfeatured mpldefault_item.php,您应该复制文件并将其放在此处 - /templates/YOUR TEMPLATE/html/com_content/featured/default_item.php.

                  这将防止 Joomla 在更新/升级时覆盖任何更改.这可能也是您在网站上看不到更改的原因.componentscom_contentviewsfeatured mpldefault_item.php 的模板覆盖很可能已经存在于您的模板文件夹中.如果有,Joomla 将使用该文件而不是您正在编辑的核心文件.在模板覆盖中进行更改,它应该会起作用.

                  In joomla 3.1 I edited in this file componentscom_contentviewsfeatured mpldefault_item.php

                  <?php if (isset($images->image_intro) && !empty($images->image_intro)) : ?>
                      <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
                      <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <img
                      <?php if ($images->image_intro_caption):
                          echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
                      endif; ?>
                      src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/> </div>
                  <?php endif; ?>
                  

                  to:

                  <?php if (isset($images->image_intro) && !empty($images->image_intro)) : ?>
                      <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
                      <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"><a href="<?php echo $this->item->readmore_link; ?>"> <img
                      <?php if ($images->image_intro_caption):
                          echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
                      endif; ?>
                      src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/></a> </div>
                  <?php endif; ?>`
                  

                  but its not working correct, because is linking to the main page... how I can fix this, I tried everything from this, but it does not work Joomla intro image as read more link

                  解决方案

                  First of all, you should never edit a core file. Instead of editing componentscom_contentviewsfeatured mpldefault_item.php, you should make a copy of the file and place it here - /templates/YOUR TEMPLATE/html/com_content/featured/default_item.php.

                  This will prevent Joomla from overwriting any changes when there is an update/upgrade. This is probably also why you are not seeing the change on your site. There is very likely a template override for componentscom_contentviewsfeatured mpldefault_item.php already in your template folder. If there is, Joomla will use that file instead of the core file you are editing. Make your changes in your template override and it should work.

                  这篇关于Joomla 3.1 介绍图片作为阅读更多链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                  <small id='sdZQd'></small><noframes id='sdZQd'>

                  • <bdo id='sdZQd'></bdo><ul id='sdZQd'></ul>
                  <legend id='sdZQd'><style id='sdZQd'><dir id='sdZQd'><q id='sdZQd'></q></dir></style></legend>
                  <i id='sdZQd'><tr id='sdZQd'><dt id='sdZQd'><q id='sdZQd'><span id='sdZQd'><b id='sdZQd'><form id='sdZQd'><ins id='sdZQd'></ins><ul id='sdZQd'></ul><sub id='sdZQd'></sub></form><legend id='sdZQd'></legend><bdo id='sdZQd'><pre id='sdZQd'><center id='sdZQd'></center></pre></bdo></b><th id='sdZQd'></th></span></q></dt></tr></i><div id='sdZQd'><tfoot id='sdZQd'></tfoot><dl id='sdZQd'><fieldset id='sdZQd'></fieldset></dl></div>

                    <tfoot id='sdZQd'></tfoot>