Thursday, May 24, 2012

HELP for Satellite-X - Creating a Template



In Satellite-X pattern consists of a static template, templates, and variable data. The first is stored in the file that you attach to the configbase. php, pointing the way to the template. A second store in configcpu. php (configcpuno. php).

Static pattern responsible for the overall site design. T. e. He appears on every page! . If a static template to specify the code Adsense, it will be displayed on all pages.

Variable data templates work only for the case. For example, the template output article will only work on the page that displays an article. And where is displayed listing (list) items will run a completely different pattern.

To make the site look nice, have correctly concluded podgovit all the templates, but we should start with a static pattern.

The first thing you should know - he does not have to be stored in a folder shablony - best of all you do, if you save your template in the root directory, then you can view it correctly and separately from the site ( eg for debugging). The second misconception - that the pattern must have the extension PHP. He may even have the extension txt, it is important that there was only within the HTML-code. The third point is related to the fact that the template should not contain PHP code - it will not be processed, the script is designed so that reads the contents of the template, as plain text and then processes ( parses ) according to its label.

One of the common misconceptions - that the pattern must be some special. This is not so. The pattern can be any. The participants altered during the course ready sites, WordPress themes, etc. Dr.. To fit the template of any HTML- template. All that you have to do is to place labels.

Tags - this is an indication of the script to place in the right place at the required information. If you put the template tag, after processing the script on this site will be an information. Labels in the Satellite-X, and a lot more than that, you can create your own label. Here they are:.

/ / SEOSAVR / / - create titla and metatags (including seozavr ).
/ / RANDOM ANONS / / - a conclusion on the basis of a random announcements.
/ / RANDOM ANONS1 / / - output on a random basis of one of the announcements ( double).
/ / RANDOM ANONS2 / / - output on a random basis of one of the announcements (another double).
/ / BODY BLOCK / / - the output of the body ( listing of articles, article).
/ / LINK BLOCK / / - block of links, menu items.
/ / MAINMENU / / - output links to the home page.
/ / SITEMAP / / - output links to the site map.
/ / CONTACT / / - output links to contacts (form to send a letter).
/ / USERS / / - output links to users in the menu.
/ / NEWS BLOCK / / - a block of news ( link announcement).
/ / RSSNEWS STATIC BLOCK / / - block of rss- news avtonapolnenie.
/ / COPYRIGHTS / / - copyrights, in principle, any text.
/ / MY PHP BLOCK / / - connect custom PHP code.
/ / KEYWORDS / / - the output of keywords from the config.
/ / TITLE / / - the output of the config titla.
/ / DESCR / / - description of the output from the config.
/ / LINK1 / / - the output of your reference unit.
/ / LINK2 / / - the output of your reference unit.
/ / LINK3 / / - the output of your reference unit.

Sponsored blocks:.
/ / Seozavr / / - a reference to the article seozavra.
/ / LIEX / / - a reference to a directory with articles lieksa.
/ / SETLINKS / / - output setlinks.
/ / MainLink1 / / - maynlink.
/ / XAP Link1 / / - first ksapolink.
/ / XAP Link2 / / - second ksapolink.
/ / XAP Link3 / / - third ksapolink.
/ / XAP Link4 / / - the fourth ksapolink.
/ / SAPE Link1 / / - first sapolink.
/ / SAPE Link2 / / - second sapolink.
/ / SAPE Link3 / / - third sapolink.
/ / SAPE Link4 / / - the fourth sapolink.
/ / SAPE Link All / / - all the other sapolinki.
/ / LINKFEED Link1 / / - first link linkfid.
/ / LINKFEED Link2 / / - second link linkfid.
/ / LINKFEED Link3 / / - third link linkfid.
/ / LINKFEED Link4 / / - the fourth link linkfid.
/ / LINKFEED Link All / / - all the other links linkfid.

It is best to first set tags, focusing on the default template. In the future you will be the easier to understand what the label that gives.

Please be aware that the label / / LINK BLOCK / / is not only responsible for the removal of articles, but also generates cash.

Another point related to the tag / / SEOSAVR / / - some artists mistakenly believe that this conclusion seozavra code, but it is not, in the absence of a generation of metatags and seozavra TITLE tag.

If you use NC, you must have a tag in the template BASE - he is responsible for the correct addresses on the site.

Once the tags are placed, you can attach the template to the site and look at the result. If all you have arranged, while the set of variable data templates.

Variable data templates can be configured in configcpu. php or its analogue for neChPU. Although in most cases, no one tries to adjust. But for fine-tuning data display this work to be done.

What is variable data? . For example, if you choose to link to the article, the article itself depends on the parameters of reference, t. e. know in advance what kind of paper will otsmotrena, but all items must be removed the same. Therefore, we do minishablon to print this article, but as the article which will be surrounded by this pattern, we reserve the pattern for the time being in a separate file.

Variable data templates are good because they give us the opportunity to rezhit - display whether the articles referring to the printed version or not, etc. Dr.. It seems a trifle in the regulation of output, but nice.

Each pattern in the configcpu. php sign, and, therefore, to understand what was happening, would be easy enough. Do variable data structure is replaced. What kind of data will be substituted for these labels - it is clear from the context. Cause these marks there is no sense of a lot and they relate only to the specific conclusion that a particular pattern. But the experience - yet never for a few months no one asked what the label stands for in this pattern.

Many gripe is the menu script that implements the withdrawal of all articles. Let's consider it as a template ($ SH_LISTMENU). To make a menu consisting of only enough to remove the unnecessary parts, namely, anything related to the.

Remember, that most artists do not resort to fine-tune their sites, but in vain. This makes your site unique in the m. h. and in terms of search engines.

-----------------------------------.

This paper - part of the writing on the HELP system. If you have questions about the topic discussed - ask, we will include them in the article or in the FAQ.

No comments:

Post a Comment