zen cart 關於頁面 title

2021-06-08 06:31:16 字數 1137 閱讀 1564

頁面 title 具體一些有助於 seo 。

zc-v-1.39 的新聞外掛程式所有的新聞title都是一樣的。現在將其改為與新聞標題一致。

修改 include/modules/meta_tags.php

在 case 'page': 之前(大概在314行左右)新增:

//---bof:get news title by xiang

case 'news_article':

//echo '';

$sql = 'select news_article_name from '. table_news_articles_text . ' where article_id = "' . $_get['article_id'] . '" and language_id = "' . (int)$_session['languages_id'] . '"';

$news_article = $db->execute($sql);

if ($news_article->eof) else

break;

//---eof:get news title by xiang

完成。--------------------------------2012 05 10-------------

//---bof:get news title by xiang

case 'news_article':

//echo '';

$sql = 'select news_article_name, news_article_shorttext from '. table_news_articles_text . ' where article_id = "' . $_get['article_id'] . '" and language_id = "' . (int)$_session['languages_id'] . '"';

$news_article = $db->execute($sql);

if ($news_article->eof) else

break;

//---eof:get news title by xiang

// ez-pages:

zen cart 關於頁面 title

頁面 title 具體一些有助於 seo zc v 1.39 的新聞外掛程式所有的新聞title都是一樣的。現在將其改為與新聞標題一致。修改 include modules meta tags.php 在 case page 之前 大概在314行左右 新增 bof get news title by...

python抽取指定url頁面的title

今天簡單使用了一下python的re模組和lxml模組,分別利用的它們提供的正規表示式和xpath來解析頁面原始碼從中提取所需的title,xpath在完成這樣的小任務上效率非常好,在這裡之所以又使用了一下正規表示式是因為xpath在處理一些特殊的頁面的時候會出現亂碼的情況,當然這不是xpath的原...

Vue router2 0設定頁面的title

今天在用vue2.0 vue router2.0寫spa的時候,遇到乙個功能 在跳到乙個文章詳情頁的時候,此時頁面的title要是文章的title,並且這個文章的title是非同步獲取的 在vue router1.0的時候,還可以在router配置各個路由的時候給每個路由加上title屬性,就可以改...