Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Do not show the pages creates
#1
Hello everyone. It is my first post. I´m spanish and i´m sorry for my bad english.
Is the first time that use a CMS, and the truth was easy and convenient Getsimple, so i congratulate the developers of getsimple.
I have instaled the template 'Emporium' and all very good.

But i have a problem. I see the buttons (1, 2, 3) in the web, where each button is of a page created in the 'Page Edition Mode', without 'Parent Page'; but when i have click in button 1 me show the index main with the content good, but when i have click in the button 2 or 3, don´t show then content of page 2 or 3, unless always shown the content of page1.
I have:
  • page1 is the page main
  • page2 is a page
  • page3 is other page

¿How must to do it?


I have created a directory for page2, and have copied all the files and folders to the directoy created, have modificated the index.php of this folder created for page2, putting:
Code:
$file = "data/pages/page2.xml";
Of this form, yes works good, but i think that it isn´t good done.

Thanks and regards.
Reply
#2
I'm trying to follow what you've written.

Could you post your template structure here?

Does your site work correctly with the default theme?

Does your template have this in it?
<?php get_page_content(); ?>
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#3
Thanks internet54
Quote:I'm trying to follow what you've written.
Thanks, I know that it is a bit messy, and my english is buff... Sad

Happen the same with con Default template.

The template that use is:
Code:
<?php

/****************************************************

*

* @File:             template.php

* @Package:        GetSimple

* @Action:        Emporium theme for the GetSimple CMS

*

*        Design by Free CSS Templates

*        http://www.freecsstemplates.org

*        Released for free under a Creative Commons Attribution 2.5 License

*

*****************************************************/

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

    <!-- <title><?php get_page_clean_title(); ?> | <?php get_site_name(); ?></title> -->

        <title><?php get_site_name(); ?></title>

    <?php get_header(); ?>

    <meta name="robots" content="index, follow" />

    <link rel="stylesheet" type="text/css" href="<?php get_theme_url(); ?>/default.css" media="all" />

</head>

<body id="<?php get_page_slug(); ?>" >

<div id="wrapper">

<!-- start header -->

<div id="logo">

    <h1><a href="<?php get_site_url(); ?>"><?php get_site_name(); ?></a></h1>

</div>

<div id="header">

    <div id="menu">

        <ul>

            <?php get_navigation(return_page_slug()); ?>

        </ul>

    </div>

</div>

<!-- end header -->

</div>

<!-- start page -->

<div id="page">

    <!-- start content -->

    <div id="content">

        <div class="post">

            <h1 class="mytitle"><?php get_page_title(); ?></h1>

            <div class="entry">

                <?php get_page_content(); ?>            

            </div>

            <div class="meta">

                <!-- p class="links">Published on <?php get_page_date('F jS, Y'); ?></p -->

            </div>

        </div>

    </div>

    <!-- end content -->

    <!-- start sidebar -->

    <div id="sidebar">

        <ul>

            <li>

                <?php get_component('sidebar');    ?>

            </li>



        </ul>

    </div>

    <!-- end sidebar -->

    <div style="clear: both;">&nbsp;</div>

</div>

<!-- end page -->

<!-- start footer -->

<div id="footer">

    <p id="legal">

        &copy; <?php echo date('Y'); ?> <strong><?php get_site_name(); ?></strong> - All Rights Reserved<br />

        <?php get_site_credits(); ?> - Emporium theme by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a> and <a href="http://www.cagintranet.com">Cagintranet</a>

    </p>

</div>

<!-- end footer -->

</body>

</html>

A questions:
1) when i create a new page diferent at the page main, do i have that to create a folder with your index.php or index.html in this folder for this new page, too?

2) the template could must be the same in alls pages ¿no?. When i tried to change the template to default, the 'page2' show the design of Emporium and the 'page1' shown the design of Default.

Thanks again.
Reply
#4
cumbe Wrote:A questions:
1) when i create a new page diferent at the page main, do i have that to create a folder with your index.php or index.html in this folder for this new page, too?

2) the template could must be the same in alls pages ¿no?. When i tried to change the template to default, the 'page2' show the design of Emporium and the 'page1' shown the design of Default.

Thanks again.

Your code looks fine. However it seems like your having an issue with where to put the templates.

The template structure is like so:

theme/yourtheme/yourtemplatefile.php

In the /yourtheme/ folder your structure would be like so:

template.php (main template)
page1.php
page2.php
page3.php
and so on.

If you want all pages to have the same template then you only need one .php template file.
If you want 10 pages with all different layouts, then you will 10 .php files.

In the pages manager, you will select the page you want to edit, then you will select the template you want that page to have.
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#5
Thanks again internet54...

I thinks that my problem is what i do not know how must have the structure of the web.

In this moment, my structure is as follows:
1)In /var/www/GetSimple/:
  • folders: admin, backups, data, page2, page3 and theme
  • files: readme.txt, favicon.ico, robots.txt, index.php and sitemap.xml

1.1)In /var/www/GetSimple/data/pages/:
  • files: index.xml, page2.xml and page3.xml
I think that page2.xml and page3.xml are not necessary. They are by tests¿?.

1.2)In /var/www/GetSimple/theme/Emporium/:
  • folder: images
  • files: contact.php, default.css and template.php

2)In /var/www/GetSimple/page2/:
  • folders: admin, backups, data and theme
  • files: favicon.ico, index.php

2.1)In /var/www/GetSimple/page2/data/pages/:
  • files: index.xml and page2.xml
    I think that page2.xml is not necessary. It is by tests¿?.

2.2)In /var/www/GetSimple/page2/theme/Emporium/:
  • folder: images
  • files: contact.php, default.css and template.php

The page3 is diferent, have a index.html with other design.

Regards.
Reply
#6
I think your missing the point on how easy this system is.

Download and install Get-Simple into a new directory.
Goto that directory in your browser and follow the install instructions.
Then goto your /admin directory in the browser and add pages that way.

Then, goto your theme/ directory in FTP.
Upload your Emporium directory so it looks like this, theme/emporium
Then goto your /admin director in your browser and activate your new theme.
Then goto your pages in the admin area and select the template you want for each page.

You should not have to change the file or folder structure of any of Get-Simple EXCEPT for the theme directory.
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#7
Will make the answers short, easy English!

No, there should not be folders for each page.

No, the XML files are not tests, they are your pages. Don’t move them and don’t remove them.

As internet54 said, please try installing it on the server again.

If your menu doesn’t work, please link to your site so we can take a look.

I hope this was clear and would help.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#8
Thanks internet54 and Zegnåt.

I've removed and reinstalled again GetSimple in the server. The server is in my computer, where have Apache2 and ubuntu 9.04.
When look Support - Website health Check, all is ok.

You can see the web in: http://mygetsimplesp.no-ip.biz/GetSimple/

If click in button Page2 or Page3, the apache server display a message:
Code:
Not Found
The requested URL /GetSimple/page2 was not found on this server.
Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.4 with Suhosin-Patch Server at mygetsimplesp.no-ip.biz Port 80

I leave some screenshots:
[Image: pages.png]

[Image: page_2.png]

This is the folder of GetSimple:
[Image: Pantallazo.png]

¡¡little by little until I know it!! Smile

Regards.
Reply
#9
Hi Cumbe,

just try turning off "USe Fancy URLS" in the settings Tab and see if that works.

Mike,
My Github Repos: Github
Website: DigiMute
Reply
#10
Thanks n00dles101.

Now ok. Big Grin Big Grin Big Grin Big Grin Big Grin Big Grin Big Grin

¡¡Problem solved !!

Buff......

I thinking to do a manual in spanish, for people like me, with little knowledge.

Regards, regards and Happy holidays and Merry Christmas

¡¡I'm dancing for joy!!
Reply
#11
n00dles101 Wrote:Hi Cumbe,

just try turning off "USe Fancy URLS" in the settings Tab and see if that works.

Mike,

Showoff Wink

I think that needs to be something that everyone checks for.
By default Get-Simple creates the .htaccess file. For most setups this is great, but some cause errors.
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#12
internet54 Wrote:By default Get-Simple creates the .htaccess file. For most setups this is great, but some cause errors.
Actually, if the HTACCESS is created correctly—if it has a check for the mod_rewrite module, need to check this—it will never give any problems. The problem lies with the internal functioning of the CMS, more importantly the part that generates the menu links.

We should probably add a check in the admin panel for mod_rewrite, so we can tell people what to expect.

On the other hand, the health check should already check it and cumbe told us everything displayed OK. Server issue? Health check problem? I wonder.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#13
internet54 Wrote:I think that needs to be something that everyone checks for.

Sorry, but i don´t understand well the meaning of this expression.

My problem, in this case, was that I did not know for that served "USe Fancy URLS".

I thinking, that is option must be for each page, and not a option of General settings, but then it was not so simple. Smile

Really, thank you all. Big Grin
Reply
#14
cumbe, could you look in the GetSimple folder and tell us what is in the .htaccess file that should be there? Is it there?
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#15
Yes it is there.
The content is:
Code:
AddDefaultCharset UTF-8
RewriteEngine on

RewriteBase /GetSimple/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9-]+)/?$ index.php?id=$1 [L]
Reply
#16
Odd, in that case, Fancy URLs should be working…
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#17
And yes is working....

From what I understand, when activated 'Fancy URLs' then the browser connects you to, for example to:
1) 'http://mygetsimplesp.no-ip.biz/GetSimple/' -> if is index main.
2) 'http://mygetsimplesp.no-ip.biz/GetSimple/page2' -> if is the page2....


But if not is activated 'Fancy Urls' then the browser connects you to:
1) 'http://mygetsimplesp.no-ip.biz/GetSimple/index.php?id=index' -> if is index main.
2) 'http://mygetsimplesp.no-ip.biz/GetSimple/index.php?id=page2' -> if is the page2....

I think so, at least in my case and behaves.

For that, i have said before: "I thinking, that is option must be for each page, and not a option of General settings, but then it was not so simple. Smile "

Regards....
Reply
#18
You don't have apache mod_rewrite installed.

index.php is the same as index.php?id=index
So no matter which one you open it will always display the front page.

index.php?id=page2 is the standard format for urls.
page2/ is the converted url format (uses mod_rewrite)

If you don't have mod_rewrite installed, then you can never access page2 by going to /page2/

If you want to know for sure if you have mod_rewrite installed, then...

1. Create a new file (info.php)
2. Paste in...
Code:
<?php phpinfo(); ?>
3. Save and upload to server.
4. Goto info.php in your browser.
5. CTRL + F (Find) mod_rewrite (it should be at the top in a long string)
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#19
In php.info, in the section 'apache2handler',:
Quote:Loaded Modules core mod_log_config mod_logio prefork http_core mod_so mod_alias
mod_auth_basic mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host
mod_authz_user mod_autoindex mod_cgi mod_deflate mod_dir mod_env mod_mime
mod_negotiation mod_php5 mod_rewrite mod_setenvif mod_status


The problem was that how i had turn on 'Use Fancy urls', then the browser conect to .../page2, and the folder 'page2' did not exits, for this the server apache displays message:
Code:
Not Found
The requested URL /GetSimple/page2 was not found on this server.

In this moment all is ok...

If you see the web in proves: http://mygetsimplesp.no-ip.biz/www.carnicasembuena.com/ :|

I'm starting, I have much work still. Smile

Regards...
Reply
#20
Interesting. Looks like an install but that GS needs to get sorted out.
I thought it was by default with mod_rewrite and fancy urls checked.

cumbe Wrote:I'm starting, I have much work still. Smile

Regards...

LOL, I just got to the 90% completion stage of a printing and mailing quote system setup that is dynamically displayed per page by Get-Simple. I've been working 15hour days for the last 5 days creating the quote system and then integrating it with Get-Simple. I'm tired and my wife is grumpy. :lol:
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#21
internet54 Wrote:...and my wife is grumpy. :lol:

jejeje, my wife always is grumpy too.... Big Grin Big Grin Big Grin Big Grin

In Spain, there is an expression that says a lot lately: 'Es lo que hay' >> in english, + or - 'is what is'

Regards...
Reply




Users browsing this thread: 1 Guest(s)