-
Hello @LeonidS
What are the block types used for the pricing page? I am trying to figure out the best approach to create such a page, similar to the one used here on UNACMS (Pro Plans) with a price comparison table.
1. Block type
Is the pricing page made of a single raw or html block that contains all the php and html codes? (All the page sections in one single block)? or maybe each page section is a separate raw or html block by itself? Each page section is placed in a different block.
Example:
The Section: 'Choose a Pro plan to supercharge your network' is a raw or html block.
The Section: 'Need a special feature or modification?' is another raw or html block.
The Section: 'UNA Pricing FAQ' is also another raw or html block.
2. Translation
I run a multilingual site. What will be the best approach to translate the pricing page?
Should I use a raw, html or lang block?
Should I use language keys all over the place for every title/header, text (paragraph), word in the price comparison table/chart etc? (That would probably be time consuming and tedious as it will require the creation of too many language keys)
3. FAQ Section
How is the UNA Pricing FAQ section created? Is it made of two different language keys? meaning one for the question and another one for the answer? Or are the text of both question and answer placed directly into the html/php code without the use of language keys?
Thanks and happy new year.
-
Thanks for your reply @LeonidS. Would you mind being more specifc for my use case? I don't need to create a custom module. I am just trying to create a custom page that should look like the Pro plans page. I've mentioned the Pro plans page just as an example.
I am wondering:
- whether to use a raw, html or lang block,
- whether to use a single block for the whole page and place all the html/php codes inside or use many blocks and place each page section in its own block,
- whether to use a lang block for translation or use a raw or html block, then use language keys inside,
- whether to place the FAQ question in a language key and FAQ answer in the another one or to place both question and answer (text) directly inside the html/php code without the use of a language key.
Hope It all makes sense now. Thanks
-
Let's review your questions:
- whether to use a raw, html or lang block,
The RAW block is the most universal solution. You may use there the lnaguage kye too as the code like this one:
<bx_text:_bx_contact_menu_item_title_system_contact />
It will be inserted as the translated part too.
- whether to use a single block for the whole page and place all the html/php codes inside or use many blocks and place each page section in its own block
It depends from the task and design. If you consider that there is no need to connect the page parts then it would be good to have several blocks.
The last 2 questions - as I answered above, you may use the langauge keyes directly in the RAW code.
-
Thanks a lot for reviewing my question. I appreciate it. I was trying to run away from using language keys as I will have to create many of them. Anyway, I think that I don't have any better option. Thanks a lot for your advise and tips.