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.

Pages Module Question

August 28, 2007 1:57pm

Subscribe [1]
  • #1 / Aug 28, 2007 1:57pm

    seth.aldridge

    68 posts

    I’m liking what functionality comes with the Pages Module, but I have one question that I can’t seem to find in the forum, wiki, or docs.

    How can I pull a specific post from a page I created without pulling all the pages? Or, is there a way to pull just one page to another template.

    An example would be:

    I have a page called “About Us”.  I want to use the Body text from that post on the homepage but since everything is posting to one weblog I am having difficulty pulling just the About Us post.  It typically shows all of the {body} content for every “page” in the Pages Module list.

    Is there a way to just pull the About Us text and get specific with what I want that to show?

  • #2 / Aug 28, 2007 2:01pm

    Lisa Wess

    20502 posts

    It’s a single-entry page, it does this by looking at the URI.  So just do example.com/index.php/about-us if about-us is the URI for the page.  Consider it as the URL title in a standard single-entry page.

  • #3 / Aug 28, 2007 2:09pm

    seth.aldridge

    68 posts

    Does this mean that pulling content from this page and placing it on another is not possible?

  • #4 / Aug 28, 2007 2:25pm

    Lisa Wess

    20502 posts

    Seth, I am not following what your end goal is.  Why don’t you just pull the information to exactly where you want it?  Can you tell us exactly what you are trying to do?

  • #5 / Aug 28, 2007 2:31pm

    seth.aldridge

    68 posts

    I might not be explaining what I’m looking to do very well.

    This might be possible, but looking through the Pages Docs I don’t see where it talks about it.

    I have created around 10 pages using the module.  They are stored in a weblog called “static”.  On my homepage I want to have a lot of different information.

    * Most recent 5 news Posts
    * Blurb from About Us page
    * Call to Action

    What I’m not sure how to do is grab just the About Us text from the “static” weblog.  Is there a way to pull just 1 or the 10 posts content?

    Here is the code I am using currently:

    {exp:weblog:entries weblog="static" rdf="off"}
    
    {body}
    
    {/exp:weblog:entries}

    With the old Pages Module I could simply call a specific Category because of how it was setup, but this version is not using the same logic to create the pages.  Is there a way to just pull one entry but not the most recent entry, a specific entry.

    [edit]

    Would

    entry_id="4"

    work?

    [edit/edit]

    The entry ID did work.  I must have looked over that tag earlier.

  • #6 / Aug 28, 2007 2:35pm

    Lisa Wess

    20502 posts

    Yes, entry_id would work. Or if you want just a list of the last few pages, then check out the show_pages parameter. =)

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

ExpressionEngine News!

#eecms, #events, #releases