User Tools

Site Tools


ru:rotation_rss_export

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ru:rotation_rss_export [2014/01/29 18:19]
ru:rotation_rss_export [2014/01/29 18:19] (current)
Line 1: Line 1:
 +===== SmartCJ RSS =====
 +
 +1. Создайте темплейт rss (начиная с апдейта 47 он есть в дефолтных темплейтах) с содержимым вроде
 +<code>
 +<!--default_1-10-->
 +</code>
 +
 +и сабтемплейтом в соответствии с форматом rss. например 
 +<code>
 +
 +<item>
 +<title><!--ALT--></title>
 +<description><!--DESCRIPTION--></description>
 +<link>http://<?=$_SERVER['HTTP_HOST']?>/gallery/<!--SAFE_DESC-->/<!--GALLERY_ID-->/index.html</link>
 +<content:encoded><![CDATA[<a href="http://<?=$_SERVER['HTTP_HOST']?>/gallery/<!--SAFE_DESC-->/<!--GALLERY_ID-->/index.html" target=_blank title=""><img src="<!--THUMB_URL-->" border=0 alt=""></a>]]></content:encoded>
 +<guid isPermaLink="true">http://<?=$_SERVER['HTTP_HOST']?>/gallery/<!--SAFE_DESC-->/<!--GALLERY_ID-->/index.html</guid>
 +<pubDate><?=date('r', strtotime('<!--ACTIVATION_DATE-->'))?></pubDate>
 +</item>
 +
 +</code>
 +
 +
 +2. на корне домена создайте файл rss.php 
 +<code>
 +<?php
 +
 +define('CACHE_TIME', 86400);
 +$_GET['force_template'] = 'rss';
 +$_GET['skip_cell_settings'] = true; // skips cell K calculation - saves a bit of processor time
 +// $_GET['custom_galleries'] = true; // uncomment this line if you need only custom galleries in site map
 +include('./scj/tube/index.php');
 +</code>
 +
 +
  
ru/rotation_rss_export.txt · Last modified: 2014/01/29 18:19 (external edit)