Welcome Guest, Not a member yet? Register   Sign In
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS

[eluser]Yorick Peterse[/eluser]
[quote author="Phil Sturgeon" date="1251492658"]Well done. ;-P[/quote]

I already expected lame comments like that, so I prepared with this : More news will follow soon. Tongue

[eluser]Turv[/eluser]
Hey,

Wondering if someone could give me some advice on how to approach this...

I have a 3 Column site that has multiple 'Sidebar Items', News, Search, etc etc, each one in their own view. I want to be able to create a page, Select a layout (3 Column, 2 Column, 1 Column etc), and then select from a series of 'sidebar items' to display on that page (In either the left, or right column).

Now, I thought this would be easy until i started actually looking at it. I guess i'd have to store the names of the sidebar items that need to appear on each page in a table row, then loop through them and somehow include them into the layout file, but i'm unsure on what would be to best approach to accomplish this as some would have to perform database queries so i don't know if i'd have to get the content before loading the view file or if i should perform the queries from the view file, calling the model functions.

Wondered if anyone had any ideas that spring to mind?

EDIT: You may also want to take a look at the Admin Pages Module, You can't delete page.

EDIT2: The whole Pages Admin Modules seems to be mesesed up because of the get() function in the pages module, You can't edit the page and things because of the way the get function returns the data

Code:
// How the get() function returns results
Array
(
    [0] => stdClass Object
        (
            [id] => 1
            [slug] => home
            [body] => Welcome to our homepage. We have not quite finished setting up our website just yet, but please add us to your bookmarks and come back soon.
            [title] => Home
            [parent_id] => 0
            [lang] => en
            [updated_on] => 1219336535
        )

)

// How it should return results
stdClass Object
(
    [id] => 1
    [slug] => home
    [body] => Welcome to our homepage. We have not quite finished setting up our website just yet, but please add us to your bookmarks and come back soon.
    [title] => Home
    [parent_id] => 0
    [lang] => en
    [updated_on] => 1219336535
)

You should be able to see what i mean.

Thanks

[eluser]Phil Sturgeon[/eluser]
Pages module looks pwned! This v0.9.6.2 or bleeding edge? I think Yorick took a look but I havent been coding the last few days.

The admin interface is due an overhaul anyhow, i'll look into these when I return from my epic hike.

[eluser]Yorick Peterse[/eluser]
[quote author="Phil Sturgeon" date="1252010691"]Pages module looks pwned! This v0.9.6.2 or bleeding edge? I think Yorick took a look but I havent been coding the last few days.

The admin interface is due an overhaul anyhow, i'll look into these when I return from my epic hike.[/quote]

Yes, the pages model / module / whatever is bugged as hell since you forget to replace "parent" with "parent_id". There's also some more weird stuff with the navigation menu, but I'll have to verify that tomorrow.

[eluser]rubber.drummer[/eluser]
Hi all, sorry I'm posting this here but it was simple impossible to send a message trough the pyro cms contact form because of the captcha, here is my problem:

I'm trying to install PyroCMS on my localhost I've followed installation instructions but when I go to my index page all I see is this php code as the page's output:

Code:
load->view($theme_view_folder.'metadata'); ?>
load->view($theme_view_folder.'header'); ?>
url, $nav_link->title); ?>
load->view($theme_view_folder.'menu'); ?>
load->module_view('newsletters', 'subscribe_form') ?>
Recent Posts

news_m->getNewsHome(); ?>
load->view($theme_view_folder.'breadcrumbs'); ?>
session->flashdata('notice')) { echo '
' . $this->session->flashdata('notice') . '
'; } ?> session->flashdata('success')) { echo '
' . $this->session->flashdata('success') . '
'; } ?> session->flashdata('error')) { echo '
' . $this->session->flashdata('error') . '
'; } ?>
load->view($theme_view_folder.'footer'); ?>

I've tried removing the .htaccess file and I have full permissions of the root folder, and I can run other codeigniter sites with no problem, hope anyone of you can help me here. Thanks in advance.

[eluser]Yorick Peterse[/eluser]
[quote author="rubber.drummer" date="1252296845"]Hi all, sorry I'm posting this here but it was simple impossible to send a message trough the pyro cms contact form because of the captcha, here is my problem:

I'm trying to install PyroCMS on my localhost I've followed installation instructions but when I go to my index page all I see is this php code as the page's output:

Code:
load->view($theme_view_folder.'metadata'); ?>
load->view($theme_view_folder.'header'); ?>
url, $nav_link->title); ?>
load->view($theme_view_folder.'menu'); ?>
load->module_view('newsletters', 'subscribe_form') ?>
Recent Posts

news_m->getNewsHome(); ?>
load->view($theme_view_folder.'breadcrumbs'); ?>
session->flashdata('notice')) { echo '
' . $this->session->flashdata('notice') . '
'; } ?> session->flashdata('success')) { echo '
' . $this->session->flashdata('success') . '
'; } ?> session->flashdata('error')) { echo '
' . $this->session->flashdata('error') . '
'; } ?>
load->view($theme_view_folder.'footer'); ?>

I've tried removing the .htaccess file and I have full permissions of the root folder, and I can run other codeigniter sites with no problem, hope anyone of you can help me here. Thanks in advance.[/quote]

You're getting that output because your server doesn't has PHP short tags enabled. You can enable them by installing (or enabling) a certain Apache module, but I can't remember the name of it.

[eluser]rubber.drummer[/eluser]
hey thanks for the reply I solved by setting the
Code:
$config['rewrite_short_tags'] = TRUE;
in the config file, but now I'm getting Unable to load the requested language file: language/newsletter_lang.php I've searched for the file and I do have it on application\modules\newsletters\language\english and spanish but I don't know where it must be registered.. or if I'm missing something else? Thanks in advance.

[eluser]wiredesignz[/eluser]
[quote author="Yorick Peterse" date="1252370702"]...You're getting that output because your server doesn't has PHP short tags enabled. You can enable them by installing (or enabling) a certain Apache module, but I can't remember the name of it.[/quote]

Enabling short tags is a php.ini setting and has nothing to do with Apache. And is usually enabled.

@rubber.drummer, I would have suggested to check the config setting, but seems you found it anyway. Good work.

[eluser]Yorick Peterse[/eluser]
[quote author="wiredesignz" date="1252409575"][quote author="Yorick Peterse" date="1252370702"]...You're getting that output because your server doesn't has PHP short tags enabled. You can enable them by installing (or enabling) a certain Apache module, but I can't remember the name of it.[/quote]

Enabling short tags is a php.ini setting and has nothing to do with Apache. And is usually enabled.

@rubber.drummer, I would have suggested to check the config setting, but seems you found it anyway. Good work.[/quote]

Dumb me, forgot it was the PHP settings menu instead of the Apache one, they look exactly the same in WAMP on Windows Tongue

[eluser]Phil Sturgeon[/eluser]
Anybody else getting an issue with installer saying it failed on the last step, but in fact creating the tables anyway?

I have experienced it myself and had it reported to me by several others.




Theme © iAndrew 2016 - Forum software by © MyBB