ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

URL Segments the right way to go?

July 11, 2007 1:02pm

Subscribe [4]
  • #1 / Jul 11, 2007 1:02pm

    Kellankade

    54 posts

    Currently I am working on a multi authored blog. Each author wants their own single entry page. The only difference between the two pages is the users sidebar and what gets called in the weblog:entries tag. My current thought on the best way to handle this is to have one template. And use the following URL format. Also this page will be used to show just one authors posts. So it will look like they each also have their own blog.

    /template_group/Template/Author/URL_Title/

    I figure when I call the sidebar I will do

    {embed="template_group/{segment_3}sidebar"}
    {exp:weblog:entries  weblog="{my_weblog}"  dynamic="off" orderby="date"  username="{segment_3}" url_title="{segment_4}" limit="5" }
    <h3>{title}</h3>
    <p>{body}<br />
    ...<br />
    {/exp:weblog:entries}

    So the only issue I can see is that sometimes Segment_4 will not be in the URL. So now after all of that here is my question. Is this the best way to go? Or is there another method I am not seeing?

  • #2 / Jul 11, 2007 1:10pm

    Lisa Wess

    20502 posts

    That is essentially how I handled it when I set up a site for cabinet members, each which wanted to be able to highlight their posts, to discuss their area of responsibility.  I put the author in segment_4 though to use the default segment_3 handlling for comments etc.

  • #3 / Jul 11, 2007 1:21pm

    Kellankade

    54 posts

    Thanks Lisa for the quick reply. Good to know I am not crazy in my thinking.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases