WordPress.org

Ready to get started?Download WordPress

Forums

Anyone 'managing pages' in 1.3? (26 posts)

  1. charle97
    Member
    Posted 9 years ago #

    you probably have to update your permalink structure.

  2. trevorturk
    Member
    Posted 9 years ago #

    i'm not seeing my 'pages' show up like my 'categories' on the navigation menu. do i have to change the index or something? i tried updating my permalink structure. basically... i have /about/ and /about/me/ working, but they don't show up on the index page.

  3. moshu
    Member
    Posted 9 years ago #

    Well, unless you make a link manually to them they won't show up.
    That's the whole idea - they are not "part" of your blog. When you are in the admin panel, under Manage >> Pages you can see them, and if you hover over the View link, it will show you in the statusbar what the URI is for your static page(s). Or just click on View, then copy the URI from the address field and make a link (again: manually) in your index.php page wherever you want them to show up.

  4. trevorturk
    Member
    Posted 9 years ago #

    Hmm. I just assumed it would list the pages under a heading called 'pages' or something, like the categories list. I don't understand why this wouldn't be a feature of 'pages'... I mean, wouldn't you rather just have the pages you add show up on the index automatically? If this isn't planned, perhaps I could try to make a plugin for it, although I have no idea how to go about that :) If anybody sees this and has a clue, please lend me a clue.

  5. trevorturk
    Member
    Posted 9 years ago #

    I not saying WP should read my mind! I'm saying why have two steps?
    1. User goes to admin 'pages' interface, makes page.
    2. User goes to index.php and adds link to page.
    That's very nice, because you can update your 'pages' from the admin interface, but why not have the links be generated like the categories link? The way it is now, you're going to get a lot of people (just like me) saying "where are my 'pages' that I made in the "manage->pages" section?" So you're going to say, well, you made the pages, but now you have to go make the links for them.
    Maybe it doesn't seem like a big deal, but the way I'd want to use them, it does. If I want to use WP1.3 as a CMS with 'pages' and sub-pages, I can't have users simply 'add' a new 'page' through the admin interface. They way it is now, I'd have to say 'add' your 'page' and then 'make the link'. For me, sure, that's easy. For somebody else?
    Imagine: go to presentation -> Other files -> Main Index -> then root through the index.php file until you find the unordered list I made. What's an unordered list? Well... Maybe I wouldn't want users to mess with the index.php file because they might break something, now my users can't make 'pages' anymore - well... they can, but they won't be able to find them... because there aren't links anywhere.
    Take, for example, two of the first people (I think) to use this feature:
    http://boren.nu/
    and
    http://dougal.gunters.org/
    I don't know what the header would be called, but Ryan doesn't even have a header...
    It seems very odd not to have the links made for you automatically, but maybe I'm totally crazy.

  6. moshu
    Member
    Posted 9 years ago #

    @trevorturk,
    I am afraid there is a conceptual difference in what we think the "pages" are. (And I will take the liberty to assume that my understanding is closer to the developers' intention that yours... :)
    In the months when only WP 1.2 was around these fora were full of requests and questions about "how-to-make-a-static-page" - i.e. pages that are not part of the stream of the daily entries, though we would like them to look the same (=display, css etc.) like the rest of the blog. Actually most often people were thinking of "about.php", "about_me.php" and alike pages, but, of course, it could be anything. Basically what we wanted were pages that are not chronologically inserted in the stream/flux of the daily entries, do not have the code that governs the display of the "posts" (and comments, etc.) There is a different functionality for these pages, and it is absolutely logical that do not show up on the index.php page - neither as a list, nor as anything else.
    (You can look around and you'll find that people came up with all kind of tricks to achieve this goal.)
    Now that the developers made possible to create this kind of pages just by clicking once or twice in the admin panel, actually in the same admin panel where we create our blog entries - this is only for our convenience. (Thanks guys! :) So don't let this convenience mislead you! The basic different functionality did not change. They are not meant to show up "automatically" on the index page, since they are not entries! Imagine if I have 1,000 "pages" and they would show up all on my index... Even as a list (i.e. just titles) would be a nightmare.
    So, IMO there is no need for any kind of plugin. We don't want a "parallel blog" showing up beside our entries :) This page management tool is an excellent toy, but let's use it for what it was intented: to create pages which are not part of the blog.
    Just my $0.02.

  7. charle97
    Member
    Posted 9 years ago #

    isn't 1.3 still in alpha? do instructions exist on how to use "pages"?

  8. Dougal Campbell
    Member
    Posted 9 years ago #

    Ryan mentioned in the wp-hackers mailing list that he uses the 'wp_list_pages()' template call in his menu to auto-generate the list of pages. This is not in the current templates unless you add it yourself.
    In my case, I manually added links to my pages into the Link Manager. So I still do two steps, but I don't have to edit my templates every time I want to add a new 'public' page.

  9. DennisWilliamson
    Member
    Posted 9 years ago #

    The advantage to using Link Manager is that you can categorize your static pages. Using wp_list_pages() (in wp-sidebar.php, for example), lists all of them together.

  10. akb
    Member
    Posted 9 years ago #

    Ah. So these are static pages. A few questions, then:
    Can they contain things like The Loop or is that impermissible?
    If I have placed the html for my sidebar, etc in my index page, rather than including it from an outside file, if I want them to appear on this page I suppose I have to recopy it. (Hmmm... some of it is dynamic and generated by WP).

  11. Root
    Member
    Posted 9 years ago #

    Well I think you would then be straying beyond static pages into something else. But yes you could do.

  12. akb
    Member
    Posted 9 years ago #

    Ok. I also tested the wp_list_pages() in my index to see what would happen.
    Good, it worked. I also was presented with a 1 item list of Pages. Now comes the odd part. I clicked on the link but although I put something different on the Page (the only thing I put in was <? echo ("Hello World"); ?>), it came up as though it was simply loading the index.php file. No Hello World or the PHP code.
    I do not know if it is of any note, but I edited the permalink structure to the pattern:
    /archives/%post_id%/%postname%
    but the address {site}/archives/{pagename} gives a 404.
    How is one supposed to access these Pages?

  13. moshu
    Member
    Posted 9 years ago #

    On a second thought...
    trevorturk you said:

    If I want to use WP1.3 as a CMS with 'pages' and sub-pages,

    hmmmm... in this case probably you should consider using a "real" CMS that has menus, submenus etc. Regardless how much I like WP, I wouldn't use it for another project of mine where there are tens of authors/contributors and different menus, sub-menus (as in sections for an online magazine).
    As one opens the first page of http://www.wordpress.org the first sentence says: WordPress is a state-of-the-art semantic personal publishing platform ... [emphasis mine - moshu]

  14. trevorturk
    Member
    Posted 9 years ago #

    akb, my links are pointing to the correct location...
    moshu, I still think having wp_list_pages on the default is going to save a lot of questions just like mine. Also, the problem of having too many pages will come _after_ the problem of not having any links at all. As for the link manager, I don't think that's for linking to your _own_ site.

  15. TechGnome
    Moderator
    Posted 9 years ago #

    Edit. 5. Actually you are not supposed to ask how-to questions about 1.3. see http://wordpress.org/support/3/12916 - moshu
    Um... that's NOT what podz said. He stated that BUGS and ISSSUES with 1.3 should be in the Beta .... I still think that makes it perfectly valid to ask how-to questions in the How-To forum.
    I agree with trevorturk that having wp_list_pages in the default would be a good idea. Even if the call is commented out, it would be nice to have as an example.
    TG

  16. Mark (podz)
    Support Maven
    Posted 9 years ago #

    TG - Yup, that's what I meant :)
    Anyway, I'm playing with this pages thing too.
    Creating a page is no issue, but as it's using a default templte, even though I turn comments off, I see that on the page.
    I also see the date, and I want that to show "Last updated on.."
    I want the template to use the same header / sidebar / footer, but I want to chop the comments out of the loop and alter the date line.
    This I did by copying and amending the necessary part of the template then uploading that to wp-content as 'page.php'. That didn't work, so I created a Themes dir and copied it in there too.
    I still only get the 'default template' option when I go to edit the page I created.
    So, do I need to create a whole new template, or do I use some sort of if / else php code in the default index.php that does this is_page() query ? If so, I'm clueless on this latter part.
    I know all this is still up for modification, but playing with this is fun :)

  17. TechGnome
    Moderator
    Posted 9 years ago #

    podz - is it "page.php" or "pages.php" ?? For some reason "pages.php" sticks out in my mind... but then I haven't messed with it much yet, so I'm not 100% sure.
    TG

  18. Mark (podz)
    Support Maven
    Posted 9 years ago #

    ta for the reply :)
    'pages.php' doesn't do anything either, whether named as that in or out of the themes dir.
    I think what I'll have to try is making my layout into a theme minus those parts for static pages, and see what that does.

  19. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Okay...still stuck.
    Created a theme, and the index.php has that part of the code I do not want removed (Commenting)
    WP recognises the theme, and I can alter my blog to it and it functions correctly - that is, no commenting. But this is for a page, not the main area.
    Going in to manage>pages, I still only see the default template listed as an option for 'Page Template'.
    I've tried putting 'page.php' and 'pages.php' in the theme directory, but it's a no-go.
    Looking in admin-functions, it looks like the code is examining the Theme directory, but that's as far as I can understand it.

  20. Mark (podz)
    Support Maven
    Posted 9 years ago #

    'page.php' goes into /wp-content
    That's it :)
    page.php is simply index.php with what I didn't want stripped out.
    No idea why it didn't work the first time.....

  21. trevorturk
    Member
    Posted 9 years ago #

    podz, did you figure out how to get it to say when a page was 'last updated' as opposed to 'created'?

  22. akb
    Member
    Posted 9 years ago #

    Color me confused. You all probably answered my questions, above, but I guess I do not understand the answers. I am still not getting it.
    I understand that the "Page" can be either static or not. From what I have read here and elsewhere, it appears that the way to make it non-static is to have a plug-in so it will run the PHP. Yes? No? So that means if I want to have a loop (for instance if I want to make a categorized list of posts), I have to use a plug-in. Did not know that. Ok. Actually, from above, I am not sure that is correct.
    Besides that, I know I am not doing something right, because even if I put static content on the Page and click on the link created by wp_list_pages();, all I get is what would have been on the index page. Since the only other piece that can be set on the Manage Pages page is the pop-up for Page Template which on my install says "default template", I suspect my problem must lie there. Unfortunately, I do not know what to do or how to change that. Am I supposed to put something in the code of my index.php as a "hook" for whatever I have put into the Page? Do I need to create a new template somehow?
    In reference to the above discussion, I tried to create a template by copying my index.php, excising The Loops, and saving it as page.php in my /wp-content subdirectory. As occurred with Podz, nothing changed in the templates pop-up. What did happen is that clicking on the wp_list_pages link gave me the white screen of death. I went further and excised _everything_ from the page.php and still got the white screen. When I changed the name of the page.php file to .phps, the link took me to a copy of the front page output.
    In any event, would someone please explain Pages to me using little words? This is starting to get frustrating.

  23. Mark (podz)
    Support Maven
    Posted 9 years ago #

    I do this:
    - Copy the contents of 'index.php'. That's just the bit that comes up in the Edit box. No header / footer stuff.
    - Save that as 'page.php'
    - Upload that to wp-content/
    Manage > Pages
    Write stuff, click 'Create New Page'
    That does what it says, and the link can be seen on the Pages screen
    The 'page.php' just has no comment / trackback code in it.
    I've not used that list_pages tag as I have no need.
    I'll grab what rboren has said about Templates and Pages

  24. Mark (podz)
    Support Maven
    Posted 9 years ago #

  25. sdollen
    Member
    Posted 9 years ago #

    Sorry if this has been asked, but I couldn't find it in threads or maybe didn't realize what I was reading -
    Do call functions not work in these "pages"? As an example, I tried to call a "get stats" in the page to call the "WP-Stats" plugin by Ryan Callaghan. When I viewed the page, it just printed the code < ?php get_stats('0'); ?> on the page.
    Also, how can you go about giving these pages a more common URL?
    Thanks in advance :)

  26. sdollen
    Member
    Posted 9 years ago #

    bump

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.