I can't understand how to made URL structure for page For eg



In admin panel, at template group services we have 4 templates

index cleaning reviews best

Every template have url





I need to display some templates like this





It's important that you understand how EE parses URLs to determine what to display.

Generally it goes like this:




The way you described your setup you seem to want to show two templates from the services channel at once (cleaning and reviews). Clearly this can't be done.

There are a number of ways to do what you want:

Using EE's native parsing

Set up your template group, "services". Then create your "cleaning" template. Within this template you can place a conditional which looks at the third URL segment ({segment_3}) and will then output the required reviews content. This might be done directly on the template, or by means of an embedded template.

Use the Pages module

The pages module is really meant for the occasional static page but you could use it for this. It will allow you to set a custom URL for an entry and also choose which template should be used to render it.

Use Template Routes

Template routes are very powerful and will let you set up different URLs to load specific templates. Within the route you can include rules to make sure your segments are a particular type.

Use an add-on such as Structure

Love it or hate it but Structure can be extremely useful for some sites. This may be the simplest solution for you but be warned, it can bring it's own problems too.

  • Thank you! What about example?
    – IMWDS
    Nov 28 '14 at 19:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.