Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter jaguarx

    (@jaguarx)

    Please bear with me a little. I understand the template doesn’t parse the included. I have to do whatever extra in the template to make formatting to happen. I simply want to keep a page content only for maintenance reason. Is the markup defined by the theme already at this point so the template can retrieve and implement it? Is it a better way than php include to do this?

    Warren

    Thread Starter jaguarx

    (@jaguarx)

    The included file is a page. Would it be better to keep only text in it and handle the markup as part of the template’s task?

    Warren

    I posted a message on something similar. I’m creating a page template for a static page with page.php as the model. I replaced code In between get_header() and get_sidbar() to display the text from the static page:

    <?php
    if(is_page(‘home’))
    {
    include (TEMPLATEPATH, ‘/text.txt’);
    }
    ?>

    text.tx is just a copy of the static page file ’cause I don’t know the name of the page file. The displayed text is not formatted. What in page.php is just for blogs not for pages. Can you point me to the right direction to read a page file and show it in a neat way?

    Warren

    Thread Starter jaguarx

    (@jaguarx)

    do77,

    The code I ran to read a text file is:

    <?php
    if (is_page(‘home’))
    {
    include (TEMPLATEPAT, ‘/text.txt’);
    }
    ?>

    Warren

    Thread Starter jaguarx

    (@jaguarx)

    do77,

    I’m still have everything running on my computer. So far I have two pages of articles. The first one called ‘home’ and assigned to the template cover_page.php which is just bare bone right now. The template will invoke a plugin for top menu bar in the future. In other words, I don’t really have much my own code for you to look at yet.

    Warren

    Thread Starter jaguarx

    (@jaguarx)

    Kichu,

    Thanks for your reply. What I want is a top menu bar with items of my own choice. The themes providing top menu bars always set up your pages as menu items. I would need to tweak the header.php files a lot to get what I want. The alternative is to use menubar plugins to implement the menu bar in each page. Do you think this is a vaible approach? Thanks,

    Thread Starter jaguarx

    (@jaguarx)

    t3los_,

    Sorry about the blank page. Yes, I mean the page attaching to a page template having no content. While I understand the place holder role it plays, I have questions to that effect:

    1. Is it the most common practice to keep attaching pages blank?
    2. Is there a way to display the content of an attaching page?

    Thanks,

    Thread Starter jaguarx

    (@jaguarx)

    t3los_:

    I need to get a landing page done badly. At first I was going to use PHP/HTML to make it. Later on I ran into WordPress and decided to switch to WordPress. I created a static page and made a page template for it. Basically I have a blank static page with a page template. Rignt or wrong, I have the template hold all the text and graphics in it. The landing page is up and running now but the blank page approach bothers me. I need experienced users tell me if the blank page proach is the most common way. If not, what is?

    Thanks,

    Warren

    van2d,

    Would you like to tell me how you add the rectangular blocks around articles? It’s something I want to do but haven’t figured out yet(a newbie, of course).

    Warren

Viewing 9 replies - 1 through 9 (of 9 total)