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.

Losing Templating on New Entries

November 16, 2007 11:50am

Subscribe [3]
  • #1 / Nov 16, 2007 11:50am

    cclus

    10 posts

    Greetings,

    When I add a new entry to an existing weblog I am losing the templating.

    But all the templating is stripped out. To see what I mean please visit this link:

    http://ncif.pmhclients.com/index.php/comms/


    ...and click on the top News teaser. You get this:

    http://ncif.pmhclients.com/index.php/comms/news/news_entry_3/


    I can’t figure out why the “news” template is not being carried all the way through.

    Thanks for any/all assistance.

  • #2 / Nov 16, 2007 12:08pm

    Derek Jones

    7561 posts

    The first page is using your comm/index template.  The second is using comm/news.  What do you have in your ‘news’ template?  That page is a full HTML document, so I think you are just missing some markup.

  • #3 / Nov 16, 2007 12:27pm

    cclus

    10 posts

    Thanks for replying, but the news template is complete:

    http://ncif.pmhclients.com/index.php/comms/news/

    I think I have a better way to ask the question:

    On a structural basis, each template has a header element and a secondary nav element, both of which are individual weblogs comprised of HTML. The footer is also an individual weblog that is HTML. Thus, it seems that subsequent postings beyond /comms/news/ somehow omit these 3 elements, which basically breaks the page.

    So the question: how can I ensure that these weblogs are carried through in the template for postings beyond the “base” weblog?

    Thanks for your assistance.

  • #4 / Nov 16, 2007 12:33pm

    Derek Jones

    7561 posts

    If that content is coming from weblog entries (I’d recommend that you switch that using embedded templates, btw), then you would need to use the dynamic=“off” parameter, or they are going to try to display single entry page content themselves.

    Showing us the template code would have revealed that, incidentally, so when we ask for a specific detail, even if it doesn’t make sense to you, please go ahead.  Our years of experience with EE and assisting in troubleshooting lead us to ask particular questions for good reason.  😉

  • #5 / Nov 16, 2007 1:27pm

    cclus

    10 posts

    OK, thanks for that, I can make that change to embedded templates.

    But, so that I understand, how will making that change enable the template items to carry over to each new entry? (I’m trying to shift my mental gears from being a hardcore pMachine user to a competent EE user…)

    Thanks!

    😊 😊 😊  <—private joke…

  • #6 / Nov 16, 2007 1:35pm

    Derek Jones

    7561 posts

    No problem, cclus.  The weblog tag gets information dynamically from the URL.  So on a single entry page, those tags are automatically constraining themselves to display a specific entry.  Since no entry with that url_title exists for the weblogs used in those weblog entries tags, they instead display nothing.  dynamic=“off” tells those tags to ignore the URL segments entirely, and to display only what is specified by the tag’s parameters.  Make sense?

  • #7 / Nov 16, 2007 1:41pm

    Sue Crocker

    26054 posts

    If you think of your embeds as PHP includes, that might help.

  • #8 / Nov 16, 2007 1:44pm

    cclus

    10 posts

    Ah! OK, got it, thanks very much.

  • #9 / Nov 20, 2007 12:10pm

    cclus

    10 posts

    Thought it was resolved…but now all of the paths for the page graphics are wrong. I can see why, because the URL extends to another “directory” for each new news entry. My graphics on all my templates are addressed as relative paths: ../../../images/graphic.gif

    I’m going to dig in an try to find the solution, but are there any helpful tips you can provide?

    Thanks!

  • #10 / Nov 20, 2007 12:13pm

    Derek Jones

    7561 posts

    You will need to use absolute paths or full URLs.  The browser sees the URL and assumes that the segments are real directories on your server, and builds relative paths accordingly, which obviously will not point to the right place.

  • #11 / Nov 20, 2007 12:20pm

    cclus

    10 posts

    Hmmm…I was afraid of that. I was hoping that there’s another solution, but I can see exactly your point.

    Thanks!

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

ExpressionEngine News!

#eecms, #events, #releases