The MU forums have moved to WordPress.org

Poll: Pages (10 posts)

  1. NetAndif
    Inactive
    Posted 17 years ago #

    The pages issue is beginning to annoy me.
    So here is a little poll, to state out what we will do with it.
    As i don't like to post it again and again , read this one:
    http://mu.wordpress.org/forums/topic/5

    Which of the following behaviours of the pages function do you prefer:

    - index.php?page_id=...

    - /page/subpage/...

    The second one does not work at time.
    I'm not sure if this is caused by some rewrite rules.
    However, i don't like the second one.

    Your opinions?

  2. donncha
    Key Master
    Posted 17 years ago #

    The pages url should be:
    /pagename/
    to be the same as WP. I thought I had fixed this but obviously not. Hopefully this evening I'll get a look at it.

  3. NetAndif
    Inactive
    Posted 17 years ago #

    Thanks to donncha, pages do work now. It was a little change in htaccess.
    Ok, the pages do not have a header, and no comment areas.
    But you could include any html in the pages' content of course.
    What more would you need?
    Yes, i do like these new pages already...

  4. NetAndif
    Inactive
    Posted 17 years ago #

    The pages (if permalinks enabled) do work now, but they don't have header and comment areas.
    Someone knows how to fix this?

  5. NetAndif
    Inactive
    Posted 17 years ago #

    Hello? Is anybody out there? ;-)
    Anybody using the pages function?

    What am i doing here...

  6. Farms
    Member
    Posted 17 years ago #

    Hiya, I'm not woith that version so can't tell you for sure but 1.5 uses different templates optionally for pages. I'm wondering whether there are some 'if page' statements in the themes or if they're some more generic guidelines which effect the pages in the root install...

    Can anyone help out here? Are there any non-theme based formatting issues to do with pages?

  7. donncha
    Key Master
    Posted 17 years ago #

    The pages function uses a file called "pages" in wp-inst/ and was a quick hack to get it working. I simply grabbed the appropriate text from the db and displayed it. No formatting, no Wordpress features available in there at all!
    The proper way of doing it of course is to use the WP code ..

  8. NetAndif
    Inactive
    Posted 17 years ago #

    So, how could we do it right?
    What should i do to make it using wp code?

    Thanks very much...

  9. donncha
    Key Master
    Posted 17 years ago #

    After trawling through the code, and a few pages on wordpress.org I figured out that "pagename" is the important variable to look for when dealing with pages.
    Change your .htaccess file: Look for the "#pages" bit and change the second line to:
    RewriteRule ^([_0-9a-z-]+)/(.*)/$ /wpmu/wp-inst/index.php?pagename=$2 [L]

    Where /wpmu/ is wherever your wpmu lives. For some reason comments aren't showing up, but at least the page is formatted by WP code.
    These changes are in SVN, and will be in tomorrow's nightly.

  10. NetAndif
    Inactive
    Posted 17 years ago #

    Finally the pages are working :-)
    The comments didn't work before, anyways.

    Thanks very much Donncha!

About this Topic

  • Started 2024 years ago by NetAndif
  • Latest reply from NetAndif