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_title_path ruins layout that works fine with entry_id in segment

October 30, 2009 6:56pm

Subscribe [2]
  • #1 / Oct 30, 2009 6:56pm

    FransG

    9 posts

    For two years I have not been active with EE. Now that I start to use it again I want to do it right.
    I have a list of titles in a template. To go to a comments-page (with one-entry) I can use something with {homepage}/templategroup/template/entry_id and in the one-entry template I can use the 4th segment for displaying the right entry there. That works but is not what I am supposed to use.
    Working with url_title_path and the likes of that offer easier ways of pagination, previous and next entry etc.
    Changing just that however destroys my layout. Instead of displaying a middle-column of some 500 pixels now I get a column of only 200 pixels.
    Anybody any idea where to look?

    Edited and solved

    Found it myself. Since I don’t know how to delete this post I add some information so others can profit from my error. At first I could solve the problem by simply adding dynamic=“off” for the display of last new post in another blog that was in the smaller left column.
    Then the proper display of the last new post helped me find that something was wrong with the ‘nesting’ of exp:weblog:entries and {/exp:weblog:entries} tags combined with <div>s. As long as an entry was displayed everything was okay but when the tag did not return any entry a </div> was missing.

  • #2 / Oct 30, 2009 7:40pm

    lebisol

    2234 posts

    Hi FransG,
    Can you show any links? code? Hard to tell why title would destroy anything, it is just text.

  • #3 / Oct 30, 2009 8:31pm

    FransG

    9 posts

    Thank you for taking interest. I solved it myself. See edited post. Looking back it was quite an instructing error. I abolutely did not change anything else than my way of navigating to the one-entry template. Using a complete URL including a segment for the entry_id prevents the necessity to use the dynamic=off option.

  • #4 / Oct 30, 2009 8:39pm

    lebisol

    2234 posts

    Hey all right, good to hear you are set & back to EE!
    😊

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

ExpressionEngine News!

#eecms, #events, #releases