O
O
Otrivin2017-02-22 13:28:44
CMS
Otrivin, 2017-02-22 13:28:44

hostcms. How to display an information system by condition in a section?

Hello!
There is a site on hostcms, "Freebie" edition, version 6.5.8. There is a division of the site into subdomains, all subdomains are served by the main site.
There is inf. the "articles" system with texts, it is a node of the "info" structure, the "info" structure is displayed in the main menu.
It is necessary to control the output of articles in "Info" depending on the subdomain. That is, if you go to the "info" section while on kaluga.site.com - you are shown some articles, if just site.com - others. I suppose that it would be more correct to create several information systems, and in the template to prescribe the conditions for the output of inf. systems depending on the subdomain (determined using php), but which template to edit (public_html\templates\template*\template.htm, public_html\hostcmsfiles\xsl\*.xsl or in general public_html\hostcmsfiles\structure\Structure*.php) and how to set the output of a certain information system according to the condition - I'll never know.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Fov, 2017-02-22
@Roman-Fov

It would be more correct to create it with different sites on the same engine. Fortunately, multisite is there and you don’t need to invent anything.
Create a new site, specify a domain for it. Create a structure section and specify the required information system there. Templates can be used alone.
That's all. We get several similar sites on one installation.
ZY Multisite in a freebie is not present. The nearest edition with such functionality is a small business.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question