MODx Revo |
|
Site —> Clear Cache
Security —> Flush All Sessions
core/cache
SSH UNIX :
tar -czf /path/to/backups/modx_revo_site.tar.gz /path/to/modx_doc_root/
.
gunzip modx_revo_site.tar.gz
tar xvf modx_revo_site.tar
phpMyAdmin, SSH:
mysqldump -u username -p your_revo_db > /path/to/backups/my_revo_db.sql
phpMyAdmin, SSH:
mysql -u username -p target_db < my_revo_db.sql
core/config/config.inc.php
/* PATHS */ $modx_core_path= '/path/to/modx_doc_root/core/'; $modx_processors_path= '/path/to/modx_doc_root/core/model/modx/processors/'; $modx_connectors_path= '/path/to/modx_doc_root/connectors/'; $modx_manager_path= '/path/to/modx_doc_root/manager/'; $modx_base_path= '/path/to/modx_doc_root/'; $modx_assets_path= '/path/to/modx_doc_root/assets/'; /* HOST (used for command-line PHP stuff) */ $http_host='yoursite.com';
UPDATE `your_revo_db`.`workspaces` SET path='/path/to/modx_doc_root/core/' WHERE id='1
: MODx |
Disqus MODx |
|
Disqus MODx
DISQUS, JavaScript . . DISQUS . Tools->install Other or Custom - Universal code. :
<div id="disqus_thread"></div>
<script type="text/javascript">
/**
* var disqus_identifier; [Optional but recommended: Define a unique identifier (e.g. post id or slug) for this thread]
*/
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://....disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=...">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
<script type="text/javascript">
//<! [ CDATA [
(function() {
var links = document.getElementsByTagName('a');
var query = '?';
for(var i = 0; i < links.length; i++) {
if(links[i].href.indexOf('#disqus_thread') >= 0) {
query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
}
}
document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/.../get_num_replies.js' + query + '"></' + 'script>');
})();
// ] ] >
</script>
, . - MODX CDATA - ( , ) . JS-, .
{ { disqus } } . / . TV comments drop down list, "0||1" 0.
Phx :
[ + phx:if=`[ * comments * ]`:is=`1`:then=`{ { disqus } }`+ ]
, Phx . .
: MODx |
google sitemap MODx |
|
, , , , . Wayfinder, :
[[Wayfinder? &startId=`0` &level=`0` ]]
Wayfinder CMS . , , « » . , Wayfinder &ignoreHidden=1:
[[Wayfinder? &startId=`0` &level=`0` &ignoreHidden=`1` ]]
sitemap :
[[sitemap? &format=`ulli`]]
, HTML , .. Wayfinder.
google sitemap
, Ditto sitemap. , , .
, :
1) TV sitemap_changefreq sitemap_priority
sitemap_changefreq
: DropDown List Menu
: always||hourly||daily||weekly||monthly||yearly||never
: .
sitemap_changefreq
: DropDown List Menu
: .1||.2|| .3|| .5|| .6|| .7|| .8|| .9 || 1
: .5 ( ).
2)
3) “” = sitemap.xml( URL )
4) “(blank)” -
5) HTML- ,
6) “text/xml’
7) “ ”
8) [[sitemap]]
9) .
: google sitemap . sitemap :
- TV-
TV- sitemap_exclude DropDown List Menu 0||1 0 . 1 , .
-
, . :
[[sitemap? &excludeTemplates=`myTemplateName,3,4`]]
, , - . SEO
: modx |
ModX CMS |
|
MODx - , (cmf), (cms). , 2.0
1. Ajax
2. (SEF)
3.
4.
5. HTML-,
6. SEO ( -)
7. - (cms)
8. ( , )
9.
: modx |
MODx. |
|
- . . .
(TV) - , . (, , , , ..). .
- , - ( ), ( eForm, Ditto ..). , () .
- . (, ) (, , ). (Wayfinder), (Ditto), (eForm). .
- , - . , (Search Highlighting) . .
.
[(site_name)] -
/ [(site_url)] -
[(modx_charset)] -
[^qt^] -
[^q^] -
[^p^] - PHP
[^t^] -
[^s^] - ( )[pagetitle*] -
[longtitle*] -
[description*] -
[introtext*] -
[content*] -
[alias*] -
[id*] - ()
0 -
[unpub_date*] -
[createdby*] -
[createdon*] -
[editedby*] -
[editedon*] -
[~~] - URL[type*] - (, )
[contentType*] - (, text/html)
[published*] - (1|0)
[parent*] - (ID)
[isfolder*] - (1|0)
[richtext*] -
[template*] - (ID)
[menuindex*] -
[searchable*] - (1|0)
[cacheable*] - (1|0)
[deleted*] - (1|0)
[deletedby*] -
[menutitle*] - . ,
[donthit*] - (1|0)
[haskeywords*] - (1|0)
[hasmetatags*] - (1|0)
[privateweb*] - (1|0)
[privatemgr*] - (1|0)
[content_dispo*] - (1 - | 0 - )
[hidemenu*] - (1|0)TV,
[TV*] - .
{{}} - .
[[]] - . , - [[? &1=`1` &2=`2` &N=`N`]
[++] - , (Ditto, eForm ..). . , -, .1) :
[[]] -
[!!] -
2) , . , .
.
TV, .
, TV .
, PHP.
//TV.
<html>
<head>
<title>[(site_name)] | [pagetitle*]</title>
<meta http-equiv="Content-Type" content="text/html; charset=[(modx_charset)]" />
<base href="[(site_url)]"></base>
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="[(site_url)][~11~]" />
</head>
<body>
<div id="header">
<h1><a id="logo" href="[~[(site_start)]~]" title="[(site_name)]">[(site_name)]</a></h1>
<div id="ajaxmenu"> [[Wayfinder?startId=`0` &outerTpl=`mh.OuterTpl` &innerTpl=`mh.InnerTpl` &rowTpl=`mh.RowTpl` &innerRowTpl=`mh.InnerRowTpl` &firstClass=`first` &hereClass=``]] </div>
</div>
<h2>News:</h2>
[[Ditto? &startID=`2` &summarize=`2` &total=`20` &commentschunk=`Comments` &tpl=`nl_sidebar` &showarch=`0` &truncLen=`100` &truncSplit=`0`]]
<div id="content">
<h2>[longtitle*]</h2>
[#content*]
</div>
</body>
</html>
.
: http://www.modx-cms.ru/
: modx |
: | [1] |