2013年2月21日 星期四

Joomla 2.5 頁面類別 (Paga Class Suffix)

以下文章參考:
http://cukemark.blogspot.tw/2011/06/joomla-page-class-suffix.html

當想要於Joomla頁面套用不同的CSS樣式時,可透過頁面類別來達成。
方法是
一、修改templates下的index.php:於<head>上方加入
 <?php
   $menu = JSite::getMenu()->getActive();
   $pageclass = '';

   if (is_object($menu))
      $pageclass = $menu->params->get('pageclass_sfx');
?>

二、修改<body >:將原本的<body>標簽修改如下
<body id="<?php echo $pageclass ? htmlspecialchars($pageclass) : 'default'; ?>">

三、於template.css加入對應的CSS樣式:
例如頁面類別名稱為weblink
即可於css樣式表中加入
#weblink th{ border-bottom-style:solid;  border-bottom-color:#bbbbbb;  border-bottom-width:2px; }
#weblink td{ border-bottom-style:solid; border-bottom-color:#bbbbbb;  border-bottom-width:1px; }

Nexus 4 音樂播放器 中文亂碼

打開Play音樂軟體時,發現存在SD卡上的中文歌曲(檔名、資料夾)全變成亂碼。

解決方式:將音樂資料夾剪下,貼回電腦。重開手機,再貼回手機即可。

Nexus 4.2 MPT 模式

最近在做手機的備份,發現備份後的資料接上電腦時看不到資料檔和資料夾。於是Google了一下,發現是因為MTP模式的原因。

簡單說就是在內建的sd卡上做了增刪的動作後,但因為
mpt沒有自動重建文件結構(sync mtp file structure),因此電腦上才會看不到該資料夾。

常見的情況即為,用檔案管理軟體刪除了手機上的資料,但連到電腦上時卻還看的到資料夾,不過卻點不進去。

在參考01上的一篇貼文後,依內容下載"SDrescan"並執行後,電腦上也看的到增刪的檔案了。
http://www.mobile01.com/topicdetail.php?f=565&t=2778379