導航:首頁 > 萬維百科 > magentocmspage

magentocmspage

發布時間:2020-08-27 03:02:47

1、magento網站首頁源文件在哪裡

你是說Title吧?
先去後台的System->Configuration->General->Web->Default Page看你的首頁是什麼page。如果是cms PAGE就去對應的CMS PAGE修改就可以了

2、magento怎麼調用cms

1.寫到phtml文件里的的PHP代碼如下:
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('your_block_Identifier')->toHtml() ?>

其中setBlockId(『your_block_Identifier』)的參數your_block_Identifier,為你在後台創建static block時填的Identifier值,如下圖

2.在magento後台的CMS中如果要在一個block或page中調用另一個static bloc

3、怎樣在magento加一個新的Layout到CMS頁

1.寫到phtml文件里的的PHP代碼如下: 其中setBlockId(『your_block_Identifier』)的參數your_block_Identifier,為你在後台創建static block時填的Identifier值,如下圖 2.在magento後台的CMS中如果要在一個block或page中調用另一個static bloc

4、magento1.9主題開發用哪個模板為基礎好?

不同於其他簡單模板主題(WordPress主題)Magento模板(Magento主題)在布局上都不同Magento模板布局取決於如下四個要素:1、布局(Layout) – (app/design/frontend/your_interface/new_theme/layout/)2、模板(Templates) – (app/design/frontend/your_interface/new_theme/template/)3、皮膚(Skins) – (skin/frontend/your_interface/new_theme/)4、語言環境(Locale) – (app/design/frontend/your_interface/new_theme/locale/)為了安裝和集成一個新的Magento模板,您需要遵循幾個步驟:如果你已經下載您喜歡的Magento主題,那麼這里教你如何安裝已下載的Magento主題並整合到現有的Magento網站中。1、解壓Magento主題模板zip文件(可以使用winrar或WinZip來Windows機器上解壓縮或解壓縮zipfilename.zip使用解壓縮文件到Linux上的文件伺服器)2、復制您的app文件夾至整個應用程序的新的主題下/app/design/frontend/default/像這樣:/app/design/frontend/default/new_theme3、復制skin文件夾至您的新主題下/ skin/frontend/default/new_theme像這樣:/ skin/frontend/default/new_themeMagento模板路徑
4、Magento商店加入新的Magento主題後,需要登錄到Magento後台設置網店的Magento布局。Magento網站後台管理
5、有時Magento會有緩存所以你不會立刻看到Magento模板安裝後的效果。為了測試你的新的主題是否已經安裝成功,你需要臨時禁用Magento緩存。進入「System > Cache Management 「選擇」Disable」,然後點擊「Save Cache」。一旦你完成了所有步驟再次啟用緩存即可。Magento設置緩存
6、進入System -> Configuration(系統>設置),並選擇Design7、輸入您的Magento模板的名稱,復制的皮膚文件(skin/ CSS)名稱,然後點擊「Save Config」(保存配置)Magento模板設置
8、(可選)如果你的Magento網站上需要顯示一個模塊,像Maagento模板主題演示的模塊。進入CMS -> Static Blocks ,並點擊」Add New Block「。根據您的安裝模塊說明添加新的模塊並激活,使用這種新的模塊。最後選擇「Enable」並點擊「Save Block」。轉到並選擇「Custom Design」標簽,並在布局選擇「Home Page」,否則你主頁將會是空白的。Magento CMS Block
9、(可選)默認的Magento商店頁面是一個CMS block,所以你必須要寫一段自定義代碼,以便在主頁上顯示內容。CMS- > Manage Pages 選擇 「Home page」,在內容區域中填寫主頁內容代碼,來完成您的新主題。您也可以改變首頁的布局。Magento CMS Page 首頁管理
10、所有設置完成後,在瀏覽器新窗口中輸入您的域名,您的Magento模板就安裝成功了。我已經安裝了一個新的Magento模板主題,但我看不到任何產品,無法顯示,為什麼?那麼,這樣的情況一般發生在新安裝模板後。您需要遵循幾個步驟來解決此問題1、進入目錄 – > 管理類別 「Catalog -> Manage Categories」2、選擇你想顯示在您的主頁上的產品類別(Category),旬找它的ID3、回到「CMS -> Manage Pages」4、復制產品顯示在首頁的代碼,選擇正確的ID號。Magento關閉緩存
以上Magento模板安裝教程,希望能夠幫助大家正確的使用Magento。

5、magento 默認的首頁控制器文件是那一個

對應的layout文件聲明文件是cms.xml

Xml代碼
<cms_page>
<reference name="content">
<block type="cms/page" name="cms_page"/>
</reference>
</cms_page>

6、請問 Magento首頁顯示homepage 怎麼去掉?

這個默認的模板是要在布局文件xml中處理找到模板文件夾下面的layout-->cms.xml 文件找到下面的代碼 CMS Pages (All) CMS Content Wrapper std CMS Home Page 將其中的CMS Home Page替換為 CMS Home Page 問題就解決了。

7、如何修改Magento模板的底部鏈接

下面教程是教你怎樣去修改magento的底部鏈接,包括
About
Us,
Customer
Service
,Site
Map
,Search
Terms,
Advanced
Search,
Contact
Us
,RSS
,copyright
notic
等等。
1、關於我們和客戶服務(About
Us
|
Customer
Service)
這兩個鏈接主要由
cms.xml
文件進行調用。
修改這兩個鏈接的URL你可以去magento管理後台CMS=>
Static
Blocks
=>Footer
Links
<li><a
href=”{{store
direct_url=”about-us”}}”>About
Us</a></li>
<li><a
href=”{{store
direct_url=”customer-service”}}”>Customer
Service</a></li>
修改其內容你需打開magento後台CMS
=>
Pages
,然後找到
About
Us
和Customer
Service
的CMS頁,打開進行編輯。
2、網站地圖(Site
Map)
magento
的sitemap是由catalog.xml
文件進行調用的。
<reference
name=”footer_links”>
<action
method=”addLink”
translate=”label
title”
mole=”catalog”
ifconfig=”catalog/seo/site_map”><label>Site
Map</label><url
helper=”catalog/map/getCategoryUrl”
/><title>Site
Map</title></action>
</reference>
3、搜索條目和高級搜索(Search
Terms
|
Advanced
Search)
這兩個是由catalogsearch.xml
文件控制的
<reference
name=”footer_links”>
<action
method=”addLink”
translate=”label
title”
mole=”catalogsearch”
ifconfig=”catalog/seo/search_terms”>
<label>Search
Terms</label>
<url
helper=”catalogsearch/getSearchTermUrl”
/>
<title>Search
Terms</title>
</action>
<action
method=”addLink”
translate=”label
title”
mole=”catalogsearch”>
<label>Advanced
Search</label>
<url
helper=”catalogsearch/getAdvancedSearchUrl”
/>
<title>Advanced
Search</title>
</action>
</reference>
4、聯系我們(Contact
Us)
magento
的contact
us
可修改contacts.xml
文件
<reference
name=”footer_links”>
<action
method=”addLink”
translate=”label
title”
mole=”contacts”
ifconfig=”contacts/contacts/enabled”><label>Contact
Us</label><url>contacts</url><title>Contact
Us</title><prepare>true</prepare></action>
</reference>
5、RSS
找到
rss.xml文件
<reference
name=”footer_links”>
<action
method=”addLink”
translate=”label
title”
mole=”rss”
ifconfig=”rss/config/active”><label>RSS</label><url>rss</url><title>RSS
testing</title><prepare>true</prepare><urlParams/><position/><li/>
<a>class=”link-feed”</a>
</action>
</reference>
6、修改magento底部默認的message
Report
All
Bugs
(ver.
1.2.1.2)©
2008
Magento
Demo
Store.
All
Rights
Reserved
找到
/app/design/frontend/default/default/template/page/html/footer.phtml
文件進行編輯。
7、修改copyright
notice
也是修改footer.phtml文件
/app/design/frontend/default/default/template/page/html/footer.phtml
原文地址:http://www.caier.org/how-to-change-the-footer-links-in-magento.html

8、magento cms page保存在哪個文件

CMS PAGE當中的保存的都是在資料庫裡面的,一般來說,除了像ABOUT US等靜態頁面還有靜態塊,像首頁不要放在CMS裡面,資料庫出了點問題就壞了,

9、magento前台更換語言,導致首頁報錯:There was no Home CMS page configured or found

這個報錯是說找不到這個cms block。
方法一:你把Template-hint打開就知道了。
方法二:Home page cms的設置在System->Configuration->Design->的前幾個。忘記名字了,可是把首頁設置成某個CMS PAGE. 你去找找就知道了。

與magentocmspage相關的知識