The Joomla! Forum ™






Post new topic Reply to topic  [ 14 posts ] 
Author Message
PostPosted: Fri Mar 09, 2012 2:15 am 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 02, 2012 6:36 am
Posts: 98
ธีมBeez5 ปรับให้ Content เรียงแถวเดียวและมีปุ่มReadmore ยังไงคัฟ

รูปตัวอย่าง
Image

บนเรียง 1
ล่างเรียง 3

ตัวอย่างโค้ด ล่าง Header ก่อนจะถึง foot

Code:
    <?php endif; ?>
    <div id="<?php echo $showRightColumn ? 'contentarea2' : 'contentarea'; ?>">
          <div id="breadcrumbs">

              <jdoc:include type="modules" name="position-2" />

          </div>

          <?php if ($navposition=='left' and $showleft) : ?>

            <?php if(!$this->params->get('html5', 0)): ?>
              <div class="left1 <?php if ($showRightColumn==NULL){ echo 'leftbigger';} ?>" id="nav">
            <?php else: ?>
              <nav class="left1 <?php if ($showRightColumn==NULL){ echo 'leftbigger';} ?>" id="nav">
            <?php endif; ?>

                <jdoc:include type="modules" name="position-7" style="beezDivision" headerLevel="3" />
                <jdoc:include type="modules" name="position-4" style="beezHide" headerLevel="3" state="0 " />
                <jdoc:include type="modules" name="position-5" style="beezTabs" headerLevel="2"  id="3" />

            <?php if(!$this->params->get('html5', 0)): ?>
              </div><!-- end navi -->
            <?php else: ?>
              </nav>
            <?php endif; ?>

          <?php endif; ?>

          <div id="<?php echo $showRightColumn ? 'wrapper' : 'wrapper2'; ?>" <?php if (isset($showno)){echo 'class="shownocolumns"';}?>>

            <div id="main">

            <?php if ($this->countModules('position-12')): ?>
              <div id="top"><jdoc:include type="modules" name="position-12"   />
              </div>
            <?php endif; ?>

              <jdoc:include type="message" />
              <jdoc:include type="component" />

            </div><!-- end main -->

          </div><!-- end wrapper -->

        <?php if ($showRightColumn) : ?>
          <h2 class="unseen">
            <?php echo JText::_('TPL_BEEZ5_ADDITIONAL_INFORMATION'); ?>
          </h2>
          <div id="close">
            <a href="#" onclick="auf('right')">
              <span id="bild">
                <?php echo JText::_('TPL_BEEZ5_TEXTRIGHTCLOSE'); ?></span></a>
          </div>

        <?php if (!$templateparams->get('html5', 0)): ?>
          <div id="right">
        <?php else: ?>
          <aside id="right">
        <?php endif; ?>

            <a id="additional"></a>
            <jdoc:include type="modules" name="position-6" style="beezDivision" headerLevel="3"/>
            <jdoc:include type="modules" name="position-8" style="beezDivision" headerLevel="3"  />
            <jdoc:include type="modules" name="position-3" style="beezDivision" headerLevel="3"  />

        <?php if(!$templateparams->get('html5', 0)): ?>
          </div><!-- end right -->
        <?php else: ?>
          </aside>
        <?php endif; ?>
      <?php endif; ?>

      <?php if ($navposition=='center' and $showleft) : ?>

        <?php if (!$this->params->get('html5', 0)): ?>
          <div class="left <?php if ($showRightColumn==NULL){ echo 'leftbigger';} ?>" id="nav" >
        <?php else: ?>
          <nav class="left <?php if ($showRightColumn==NULL){ echo 'leftbigger';} ?>" id="nav">
        <?php endif; ?>

            <jdoc:include type="modules" name="position-7"  style="beezDivision" headerLevel="3" />
            <jdoc:include type="modules" name="position-4" style="beezHide" headerLevel="3" state="0 " />
            <jdoc:include type="modules" name="position-5" style="beezTabs" headerLevel="2"  id="3" />

        <?php if (!$templateparams->get('html5', 0)): ?>
          </div><!-- end navi -->
        <?php else: ?>
          </nav>
        <?php endif; ?>
      <?php endif; ?>

          <div class="wrap"></div>

        </div> <!-- end contentarea -->


ขอบคุณคัฟ


Top
 Profile  
 
PostPosted: Fri Mar 09, 2012 3:50 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Mar 07, 2011 5:25 am
Posts: 27
เดาว่า ในรูปนั้นตอนนี้อยู่ หน้า Home
เพราะฉะนั้น Menu ที่ใช้อยู่ ปัจุบันเป็น home และ Menu Item Type น่าจะเป็น Featured Articles
ถ้าเป็น Featured Articles ให้ปรับเป็นแบบนี้

# Leading Articles 0
# Intro Articles 6
# Columns 1
# Links 0

"ธีมBeez5 ปรับให้ Content เรียงแถวเดียวและมีปุ่มReadmore ยังไงคัฟ"

ในกรณีนี้ไม่เกี่ยวกับธีม นะครับมันอยู่ที่ component ตั้งหาก


Top
 Profile  
 
PostPosted: Fri Mar 09, 2012 4:22 am 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 02, 2012 6:36 am
Posts: 98
Image

รบกวนอธิบายเพิ่มอีกสักนิดได้ไหมคัฟ


Top
 Profile  
 
PostPosted: Fri Mar 09, 2012 4:35 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Wed Mar 07, 2007 6:19 am
Posts: 1878
Location: Online marketing in Thailand.
leading = ข้อความเต็มๆ กว้างเต็ม
intro = ข้อความ intro เท่านั้น
columns = แบ่งคอลัมของ intro
links = หัวข้อที่เหลือที่ไม่ใช่ leading + intro

_________________
Tel 085-073-6776 ติดปัญหา Joomla ตรงไหนรับปรึกษาฟรี โทรมาเถอะครับ.
http://www.apartment.in.th ค้นหาให้เช่าที่พักของประเทศไทย.
http://www.jwebengine.com/freeweb UnlimitedSpace+FreeHost+FreeDomain ขอทดลองใช้ได้


Top
 Profile  
 
PostPosted: Fri Mar 09, 2012 8:40 am 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 02, 2012 6:36 am
Posts: 98
gamaza wrote:
เดาว่า ในรูปนั้นตอนนี้อยู่ หน้า Home
เพราะฉะนั้น Menu ที่ใช้อยู่ ปัจุบันเป็น home และ Menu Item Type น่าจะเป็น Featured Articles
ถ้าเป็น Featured Articles ให้ปรับเป็นแบบนี้

# Leading Articles 0
# Intro Articles 6
# Columns 1
# Links 0

"ธีมBeez5 ปรับให้ Content เรียงแถวเดียวและมีปุ่มReadmore ยังไงคัฟ"

ในกรณีนี้ไม่เกี่ยวกับธีม นะครับมันอยู่ที่ component ตั้งหาก


ปรับ 0 6 1 0 ตามแล้ว

แต่รูปแบบหน้าแรกยังแสดง 1 นอนและตามด้วย 3 คอลัมแบบเดิมคัฟ

กด Ctrl + F5 ก็ไม่เปลี่ยนแปลง หรือ ต้องเคลียคุกคัฟ


Top
 Profile  
 
PostPosted: Sun Mar 11, 2012 3:07 pm 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 02, 2012 6:36 am
Posts: 98
ใครทราบ รบกวนตอบหน่อยนะคัฟ


Top
 Profile  
 
PostPosted: Mon Mar 12, 2012 7:59 am 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 02, 2012 6:36 am
Posts: 98
ผมปรับ config แบบนี้
html version = html5

ธีม Beez5 v2.5.2 คัฟ


Top
 Profile  
 
PostPosted: Mon Mar 12, 2012 5:31 pm 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 02, 2012 6:36 am
Posts: 98
ลองปรับ Category

Layout = list (เดิม Blog)

ก็ไม่เปลี่ยนอ่ะคัฟ


Top
 Profile  
 
PostPosted: Tue Mar 13, 2012 3:06 pm 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 02, 2012 6:36 am
Posts: 98
ปุ่ม Read more เจอการสร้างแล้วคัฟ

ตอนเขียนบทความให้เกริ่นนำก่อนสักนิดแล้วกด Read more ที่เครื่องมือได้เลย
จากนั้นก็เขียนบทความที่เหลือต่อ....

ส่วนปุ่มนั้นจะเป็น Eng นะคัฟปรับภาษาไทยให้ไปที่ database

ใช้ phpmyadmin กดเข้าไปยังฐานข้อมูลจูมล่า

รันคำสั่ง

Code:
SELECT *
FROM `#_overrider`
where string like 'read more:'


จากนั้นก็ปรับภาษาตรง String ได้เลยคัฟ

ไม่รู้เหมือนกันใครมาทำ overrider ไว้ตรงนี้ ??
2,182 กว่าจุดด (ผมเปล่านะ มันทำเองออโต้)


Top
 Profile  
 
PostPosted: Tue Mar 13, 2012 3:10 pm 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 02, 2012 6:36 am
Posts: 98
เริ่มไม่แน่ใจว่า overrider เกิดได้ไง

อาจเพราะผมเปิด Cacahe ไว้

ปรับเองที่ไฟล์ > en-GB.com_content.ini

COM_CONTENT_READ_MORE="อ่านต่อ: "
COM_CONTENT_READ_MORE_TITLE="อ่านต่อ..."

กรณีไม่ได้ลงไทยไว้


Top
 Profile  
 
PostPosted: Tue Mar 13, 2012 3:13 pm 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 02, 2012 6:36 am
Posts: 98
ใน Articles Option
Read More Text ผมปล่อยว่างไว้

แล้วทำไมมันเขียน Overrider เองอ่ะ ????


Top
 Profile  
 
PostPosted: Fri Mar 16, 2012 1:14 pm 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 02, 2012 6:36 am
Posts: 98
ปรับที่ Menu Manager > Edit Menu Item > Featured Articles > Layout Options

ผ่านแล้วคัฟ


Top
 Profile  
 
PostPosted: Sat Mar 17, 2012 3:51 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Dec 14, 2009 5:43 pm
Posts: 7
ผมใส่ 0 หมดเลย แล้วใช้ aidanew2 สวยกว่าครับ

_________________
http://www.spamassagethai.com
สปา นวดแผนไทย สมุนไพรไทย ค้นหาสปาทั่วประเทศ


Top
 Profile  
 
PostPosted: Sat Mar 17, 2012 7:02 am 
Joomla! Intern
Joomla! Intern

Joined: Fri Mar 02, 2012 6:36 am
Posts: 98
อยากได้คอมเม้นแบบฟรี มีไหมคัฟ


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 



Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group