Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

sitemap.html 5.9 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>5. Generating Sitemaps &mdash; Documentation</title>
  7. <link rel="stylesheet" href="_static/sphinxdoc.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '',
  12. VERSION: '',
  13. COLLAPSE_MODINDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="_static/jquery.js"></script>
  19. <script type="text/javascript" src="_static/doctools.js"></script>
  20. <link rel="top" title="Documentation" href="index.html" />
  21. <link rel="next" title="Glossary" href="glossary.html" />
  22. <link rel="prev" title="Page Structure and Navigation" href="navigation.html" />
  23. </head>
  24. <body>
  25. <div style="background-color: #FFF; text-align: left; padding: 8px 0px"><img src="_static/banner300910.gif"></div>
  26. <div class="related">
  27. <h3>Navigation</h3>
  28. <ul>
  29. <li class="right" style="margin-right: 10px">
  30. <a href="genindex.html" title="General Index"
  31. accesskey="I">index</a></li>
  32. <li class="right" >
  33. <a href="modindex.html" title="Global Module Index"
  34. accesskey="M">modules</a> |</li>
  35. <li class="right" >
  36. <a href="glossary.html" title="Glossary"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="navigation.html" title="Page Structure and Navigation"
  40. accesskey="P">previous</a> |</li>
  41. <li><a href="index.html">Documentation</a> &raquo;</li>
  42. </ul>
  43. </div>
  44. <div class="sphinxsidebar">
  45. <div class="sphinxsidebarwrapper">
  46. <h3><a href="index.html">Table Of Contents</a></h3>
  47. <ul>
  48. <li><a class="reference external" href="">5. Generating Sitemaps</a><ul>
  49. <li><a class="reference external" href="#example">Example</a></li>
  50. </ul>
  51. </li>
  52. </ul>
  53. <h4>Previous topic</h4>
  54. <p class="topless"><a href="navigation.html"
  55. title="previous chapter">Page Structure and Navigation</a></p>
  56. <h4>Next topic</h4>
  57. <p class="topless"><a href="glossary.html"
  58. title="next chapter">Glossary</a></p>
  59. <h3>This Page</h3>
  60. <ul class="this-page-menu">
  61. <li><a href="_sources/sitemap.txt"
  62. rel="nofollow">Show Source</a></li>
  63. </ul>
  64. <div id="searchbox" style="display: none">
  65. <h3>Quick search</h3>
  66. <form class="search" action="search.html" method="get">
  67. <input type="text" name="q" size="18" />
  68. <input type="submit" value="Go" />
  69. <input type="hidden" name="check_keywords" value="yes" />
  70. <input type="hidden" name="area" value="default" />
  71. </form>
  72. <p class="searchtip" style="font-size: 90%">
  73. Enter search terms or a module, class or function name.
  74. </p>
  75. </div>
  76. <script type="text/javascript">$('#searchbox').show(0);</script>
  77. </div>
  78. </div>
  79. <div class="document">
  80. <div class="documentwrapper">
  81. <div class="bodywrapper">
  82. <div class="body">
  83. <div class="section" id="module-sitemap">
  84. <h1>5. Generating Sitemaps<a class="headerlink" href="#module-sitemap" title="Permalink to this headline">¶</a></h1>
  85. <p>The <cite>sitemap</cite> module can be to generate sitemap.xml for search engines to index the site
  86. as per <a class="reference external" href="http://www.sitemaps.org/protocol.php">http://www.sitemaps.org/protocol.php</a></p>
  87. <p>The sitemap module will generate urls for</p>
  88. <ul class="simple">
  89. <li>All pages with Guest access in Page Role</li>
  90. <li>Upto 1000 Records for upto 10 <cite>DocTypes</cite> with read permission for Guest at level 0, ordered by last modified date
  91. (most recent)</li>
  92. </ul>
  93. <dl class="function">
  94. <dt id="sitemap.create">
  95. <tt class="descclassname">sitemap.</tt><tt class="descname">create</tt><big>(</big><em>site_prefix</em>, <em>fname = Name</em><big>)</big><a class="headerlink" href="#sitemap.create" title="Permalink to this definition">¶</a></dt>
  96. <dd>Creates a sitemap.xml file and places in the same folder as the <cite>index.cgi</cite> file</dd></dl>
  97. <div class="section" id="example">
  98. <h2>Example<a class="headerlink" href="#example" title="Permalink to this headline">¶</a></h2>
  99. <p>The sitemap can be generated by <cite>cron</cite> or manually. Pass the full site address including &#8220;<a class="reference external" href="http://">http://</a>&#8220;:</p>
  100. <div class="highlight-python"><pre>python path-to-v170/cgi-bin/webnotes/utils/sitemap.py http://www.example.com/</pre>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="clearer"></div>
  108. </div>
  109. <div class="related">
  110. <h3>Navigation</h3>
  111. <ul>
  112. <li class="right" style="margin-right: 10px">
  113. <a href="genindex.html" title="General Index"
  114. >index</a></li>
  115. <li class="right" >
  116. <a href="modindex.html" title="Global Module Index"
  117. >modules</a> |</li>
  118. <li class="right" >
  119. <a href="glossary.html" title="Glossary"
  120. >next</a> |</li>
  121. <li class="right" >
  122. <a href="navigation.html" title="Page Structure and Navigation"
  123. >previous</a> |</li>
  124. <li><a href="index.html">Documentation</a> &raquo;</li>
  125. </ul>
  126. </div>
  127. <div class="footer">
  128. &copy; Copyright 2010, Rushabh Mehta.
  129. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.3.
  130. </div>
  131. </body>
  132. </html>