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.

A bunch of questions

August 05, 2008 11:02am

Subscribe [3]
  • #1 / Aug 05, 2008 11:02am

    Doggie52

    113 posts

    First of all, I’d like to thank EL for making such a great software!

    I have a few very broad questions and some narrow ones. I will try to list them here, hoping for an answer.

    1. How does EE parse the URL’s ? They seem to just magically get parsed, /2008/08 gives the monthly archive, /comments/post-name gives the current post, etc. I can find nothing inside the index template nor the comments template that handles the URL’s, other than {exp:weblog:entries}. The reason I am asking is that I want to be able to have better control over this. I want to create permalinks looking like /2008/08/09/post-title, I want to be able to avoid using the template-group’s name in the URL, I want to be able to use the category name inside the URL, and more. Is there somewhere I can manually edit the URL’s to fit me? Not using htaccess, that is.

    2. What does the Path-setting of Weblog Administration actually change? Can it be the answer to question 1 ?

    3. How does the Pages module work (I have not bought this, however I am looking at a friends purchased version) ? Does the /example/page/uri come directly from index.php ? (Would making a page with that url end up with http://test.com/index.php/example/page/uri ?)

    4. What is the difference between URI and URL (sorry if I have mixed these up in my post) ?

    5. I know that you do not want to set a release date for v2.0, but is there any indication, whatsoever, to when it is getting released?


    Thank you all in advance,
    Douglas.

  • #2 / Aug 05, 2008 11:30am

    Willem de Boer

    142 posts

    5. When will ExpressionEngine 2.0 be released? (*)
    ExpressionEngine 2.0 will be released in the summer of 2008. (http://expressionengine.com/ee2_sneak_preview)

  • #3 / Aug 05, 2008 1:26pm

    Derek Jones

    7561 posts

    Welcome to the forums, Doggie52!  You’ll find the answers to your questions in the User Guide, mostly in the Getting Started section and the General Information areas.  Pages module docs can be found here.

    4. What is the difference between URI and URL (sorry if I have mixed these up in my post) ?

    Uniform Resource Identifier and Uniform Resource Locator.  In everyday usage, people often use them interchangeably, though they aren’t exactly the same.  A URL is a specific type of URI.  It’s kind of like sequoias vs. redwoods.  All sequoias are redwoods, but not all redwoods are sequoias.  Generally, everyone will understand you regardless of which you use, so don’t sweat it.

  • #4 / Aug 05, 2008 3:30pm

    Doggie52

    113 posts

    I realize I haven’t been as precise as I should have been. Feel free to use as advanced context as you wish, I am experienced in PHP enough.

    Let me pose a direct question. How would I go around to getting, say, a permalink looking like 2008/08/03/i-am-cool for a post called I am Cool posted the 3rd of August 2008. How would I create a template to handle the URI and get me the correct post.

  • #5 / Aug 05, 2008 3:42pm

    Derek Jones

    7561 posts

    It would take a combination of things, though it’s quite doable.  Before proceeding, I’d encourage you to work with EE’s URL structure as it makes highly useful URLs in an very easy to handle architecture.  Working with that philosophy will help you build better templates, believe it or not.  In other words, make yourself justify using that type of URL, and be fair to yourself and EE: don’t count “<x> piece of software uses these types of URLs” as a valid reason for doing it.

    That said, to get a 2008/08/03/url_title type permalink, you’d build the segments with the entry date variable and URL title, something like:

    {entry_date format="%Y/%M/%d"}/{url_title}

    On the single entry page that you point this link towards, your weblog entries tag would need to make use of both the dynamic=“off” parameter, which tells ExpressionEngine to ignore the URL and not use its normal method of dynamic segment detection, as well as the url_title= parameter, feeding it a segment variable corresponding to the location of the URL title in the URL.

    {exp:weblog:entries weblog="foo" dynamic="off" url_title="{segment_4}" limit="1"}
  • #6 / Aug 05, 2008 6:05pm

    Doggie52

    113 posts

    I adore the EE URL system in every way possible, and I wasn’t intending to avoid using it. I was more looking to being able to customize it a lot more than I though was possible. Thanks a lot for the help, I think I’ve gotten the answer for most of my questions. If I need anything more I will post 😊 !

    Would the resulting URL of the template you mentioned in your post be template_group/template_name/2008/08/03/post-title or just the 2008/ part (without the template group and template name) ? Or does one always have to use these, in any URL?

  • #7 / Aug 05, 2008 6:10pm

    Derek Jones

    7561 posts

    Depends on what you put in the href, and what template you wish to render it on.

    {path="{entry_date format="%Y/%m/%d"}/{url_title}"}

    Would use the site’s primary index template.

    {path="foo/{entry_date format="%Y/%m/%d"}/{url_title}"}

    Would use foo/index

    {path="foo/bar/{entry_date format="%Y/%m/%d"}/{url_title}"}

    Would use foo/bar

  • #8 / Aug 05, 2008 9:40pm

    ak4mc

    429 posts

    Derek, would these work if entered in the weblog “Path Settings” control panel?

  • #9 / Aug 05, 2008 11:19pm

    Derek Jones

    7561 posts

    Not reliably, if at all, as that would require a very specific order of variable parsing by the weblog entries tag, to first parse the path setting variable, and then parse the entry date and url title variables that that variable itself parses.

  • #10 / Aug 06, 2008 2:49pm

    Doggie52

    113 posts

    What does actually the Path settings in the admin panel change?

  • #11 / Aug 06, 2008 2:51pm

    Derek Jones

    7561 posts

    What does actually the Path settings in the admin panel change?

    Full descriptions of these paths can be found in the user guide here.

  • #12 / Aug 07, 2008 4:45pm

    Doggie52

    113 posts

    That answers everything but this: what does the comment URL change? Does that also change trackback-URLs? When is that path used?

  • #13 / Aug 07, 2008 4:55pm

    Derek Jones

    7561 posts

    There are a couple comment path variables in the weblog entries tag that will utilize that setting.  The Trackback URL is to provide a return URL when sending trackbacks.