We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Article page and Category page. Hooow?

How Do I?

Erick Flatcher's avatar
Erick Flatcher
19 posts
8 years ago
Erick Flatcher's avatar Erick Flatcher

Hello!

I have problem with addresses and templates.

I need to get 2 types of pages:

site.com/sport/football/ — page with lots of entry site.com/sport/football/realmadrid — page with one entry

Sport - group, Football - template, Realmadrid - it’s entry ({url_title})

The blog entry site.com/sport/football/realmadrid is built on the basis of the template Football. And it works well, the right address is obtained. But i need to have site.com/sport/football/ give a completely different template, in which there will be a list of all the records and with a different design. But it is already occupied by entry template.

Sorry for my bad English 😉 And big thx for help! 😊

       
Erick Flatcher's avatar
Erick Flatcher
19 posts
8 years ago
Erick Flatcher's avatar Erick Flatcher

I.e. Here I need site.com/sport/football/ with a view of a series of entrys, and site.com/sport/football/realmadrid is a single entry. I can use the Pages Module, and substitute there another template and the address I need. It’s work nice. But this, probably, heavily loads the system (~300—500 pages). Are there any more exits?

       
Erick Flatcher's avatar
Erick Flatcher
19 posts
8 years ago
Erick Flatcher's avatar Erick Flatcher

Answer! 😊

{if segment_3 == ""} Football landing page {/if} {if segment_3 != ""} Single entry page {/if}

Big thx Rob Allen fom Slack.

       
Jeremy S.'s avatar
Jeremy S.
353 posts
8 years ago
Jeremy S.'s avatar Jeremy S.

That is one way, the other common way is to create two templates within your template group, one for the Multi-entry content, and another for the single entry content.

       
Erick Flatcher's avatar
Erick Flatcher
19 posts
about 8 years ago
Erick Flatcher's avatar Erick Flatcher

Jeremy S., standard way does not solve the problem. About it is this post.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.