Template Theories
Posted: 09 January 2006 04:34 PM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1208
Joined  01-05-2006

This questions is a little theory, but really important for me none the less.  I’m creating a sort of news-reviews web site for a local not-for-profit and was wondering what would be the best way to set up my categories/templates.  The site has 5 or so major sections that will each have their own sub navigation.  In my past, using Movable Type, I would have created an index.php template and then five categories using a “sub-page” template.  Then any entry assigned to the homepage category would use the homepage template, and any entry assigned to another category would use the sub-page category.  The nice thing about the Movable Type method is I could archive based on category and get really nice URL’s that only showed “http://domain.com/category/entry/index.html”.

My problem is that I can’t seem to get this to work with Expression Engine.  So here’s my question: what would be the best way to organize my categories and achieve a different home/sub page?  Is there any way to get a truly friendly url, without “site” or “index.php” preceding everything?

Thanks, I am loving EE so far, but I just can’t get my mind around their templating.  It’s something about the “template groups” having to be in the URL that bothers me I guess.

- Mark

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 09 January 2006 05:04 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  460
Joined  05-31-2002

You could set up a separate template group for each category and in the weblog entries tag, pull up that specific category only.

For example if you have a main category called “News” which is category id #105, then create a template group called “news” and on the index template, call only category=“105”.

You could also use one template and have it load alternate CSS or act differently based on the segment info, but that would be considerably more difficult to put together.

Update:  As far as the site naming, the index.php can be renamed.  I prefer sites that do this, myself, since I think “index.php” preceding everything is ugly.

I’ve renamed my index.php to “x” so my site urls look like: domain.com/x/template_group/


There’s no easy way of getting around the index page (renamed or not) having to be part of the URL since that’s how EE pulls all its info. 

Basically you can just make it look better by renaming the index page.

 Signature 

So Very Posh .:. Media Blog - Television, Movies, Books, Polls and more.

Profile
 
 
Posted: 09 January 2006 06:19 PM   [ Ignore ]   [ # 2 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  36400
Joined  05-14-2004

Judging based off what you said, I think I’d personally go with different weblogs with their own subcategories. Have you read the wiki entry on categories vs weblogs?

Also, have a look at the recommended method for removing index.php.  Lots of people use it with a great deal of success.

 Signature 
Profile
MSG
 
 
Posted: 09 January 2006 07:04 PM   [ Ignore ]   [ # 3 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1208
Joined  01-05-2006

i haven’t read the entry on “categroies vs. weblogs” do you know the url?

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 09 January 2006 07:06 PM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  36400
Joined  05-14-2004

eewiki: Category or Weblog.

 Signature 
Profile
MSG
 
 
Posted: 21 August 2007 06:59 AM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  153
Joined  03-30-2006

I know this is an old post, but that link doesn’t work.  What’s the correct link?

 Signature 

—chris
http://www.martinilab.com

Profile
 
 
Posted: 21 August 2007 07:35 AM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  21123
Joined  05-15-2004

http://expressionengine.com/wiki/Category_or_Weblog, of course.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 77557 Total Logged-in Users: 56
Total Topics: 101552 Total Anonymous Users: 30
Total Replies: 544387 Total Guests: 272
Total Posts: 645939    
Members ( View Memberlist )