Answer the question
In order to leave comments, you need to log in
What is the best way to implement partitioning?
The site has two main categories of products, the transition to which is made from the main page of the site. Also, from the main page it is possible to go to some items of the main menu. For example, the list of manufacturers of goods should display either a list of all manufacturers (if we go to it from the main page of the site), or a list of manufacturers of a specific category of goods (if we go to it from the category page). Also, the menu should be supplemented with some items (subcategories of the corresponding infoblocks), if we are on the page of one of the subcategories.
Technically, some pages are duplicated with functionality expansion: one functionality - if we enter from the main page of the site and another - if we enter from the category page.
I see two implementations:
1. Create real page duplicates, divide the entire site structure into 2 folders. The files at the root are the pages visited from the main page of the site; a section (folder) has been created for each category, where duplicate files of the main pages and files that supplement the menu are located. The address of the manufacturers page from the main one will look like this: "site.ru/proizvoditeli", and from the section page - like this: "site.ru/category1/proizvoditeli".
2. When going to the section page, pass and always carry the parameter in the page address (?cat=category1). In this case, programmatically in all components check which category we are currently in and perform appropriate actions (for example, setting up a manufacturer filter). The manufacturers page will look like this: "site.
Which of the options is preferable and promises less problems during development and in the future? If there is a third option, offer it, only with reason.
Answer the question
In order to leave comments, you need to log in
all goods are in one information block.
1. /catalog/product1 , as a result, the shortest possible
url 2. make a multiple property binding to the category (the detailed description of the category is the content on the page, since there is no announcement and details, then you do it with a separator, as a result you get the top content, your include, well, the separator and the text below.)
All that remains for you is to go to this linked section, that's it, there can be a million sections, all that remains for you is to link the goods to this section.
the url is always the same for the product, the sections have their own cnc and their detailed pages, there is no physical file, many-to-many binding is supported, there are no get parameters, completely standard functionality, the seo module works
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question