Open Source Yii CMS - GXC CMS

@bimatix:

Do you mean: you have a module xyz, inside that module you have a controller and an action. Now, you want a page (with the layout like other pages but the content render will be based on the action. Is it right?

If that is your case, I will do it as follow:

1/ I will create a new block called, XYZ Module Render.

2/ Put that Block in the Region I want

3/ Inside the renderContent() of the Block, I will call the action from that Controller (I haven’t tested this but I found some thread about calling other controller’s action)

But in fact, I really don’t like this approach and I haven’t implemented the cms to support it that way. I don’t know much about your current situation with the module (render the module based on the current site layout or call an action of module which won’t render anything, just do some logic code,…). It will be better for me to understand if you can tell a real example. I will think about it for the next version of the cms.

Nice day!

@mr80:

thank you for your reply.

we are building websites for some car dealers here in germany and we are looking for a solution to handle all the stuff like location information, events, special offers with a cms. we also show the vehicles of the dealers on their websites with a module ("vehicleAds") which fetches the vehicles from a provider by an API. the module contains a vehicle search, list and the detail views of the vehicles. The caching of the vehicles and some other stuff which belongs to the vehicles is handled by the module.

Here is an example (all the pages belong to the module):

Search: http://www.britcars.de/portal/gebrauchtwagen/suche

List: http://www.britcars.de/portal/gebrauchtwagen/liste

Detail page: http://www.britcars.de/portal/gebrauchtwagen/details/168272408/dodge-journey-2.0-crd-se-klima

All the others pages could be handled by a cms like yours :slight_smile:

Cheers!

@bimatix:

As we discussed through PM, I’ve implemented the core to support the feature: merging single blocks to a folder. Please update the new source code.

Hope this helps!

Happy coding!

if you want add to file /core/cms1.0/models/resource/resource.php

122 $this->created=$this->updated=time();

123 $this->creator=user()->id;

this >> $this->resource_path = str_replace(’\\’, ‘/’, $this->resource_path);

On windows images saves as dir\dir\filename and no preview in resource admin module and nowhere :(

Hi,Tuan Nguyen

your Class Representation not version compatible in php 5.2… versions…

Bug 1:

parsing ini files:

don`t specify Regions:

[region]

(wrong)

region[0]=Header

region[1]=Content

region[2]=Footer

[region]

(Right)

region[]=Header

region[]=Content

region[]=Footer

php 5.2 version not parse those ini files.

Bug 2

Dynamic Class Call`s in

below modules :

Resources and Object

dont call functions as $classname::finctionName(); (wrong)

create object references then use it for functoon call.

if any clarifications, Pls post… on this

@Deepan :

Thank you for your guide.

Bug 1: I will update it. I received many feedback about this bug as they are using php 5.2. Thank you very much.

Bug 2: Can you show me the way you would call? (An example please,…)

how can i setup these to local system? am new in yii

Thank you mr80, I like to join this too!

hi, I have a problem with the cms.

Every time I access localhost/project/backend/beinstall/run

i got the following error:

[b]Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@HG532.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.[/b]

Hi guys,

A wonderful yii project!

I installed GXC and trying to log in to the backend. Can anybody help me how can I do that?

Thank you!

Hi,

I have a question for you.

If I edit gxc_user’s password to [123456sdad12313ssgdpahcxrwwqas] & salt to [sdad12313ssgdpahcxrwwqas], should I be able to login as admin/123456?

hi,

have you completed the testimonial module?

i am just copied your cms to my site.

Thanks

Alex

Try it, Think you for all the work. I just try to find one cms framework which base on YII

nice one

the core structure was great

waiting for new version.

any information available about new features and version?

Regards

I am evaluating GXC CMS… and was wondering if someone could help me real quick. I am trying to find the best way to have the frontend as the site root with the backend as some arbitrary path.

For example:

Frontend: www mydomain local/

Backend: www mydomain loca/siteadmin

I currently have the demo working local as the instructions have suggested. But I cannot get my htaccess rewrites to work correctly to allow for this configuration.

anyway… thanks for any and all help.

-Michael

Hi all,

I almost finish the new version of cms at:

You can check GXC-CMS documentation at:

Regards

Tuan

Thank for update this CMS included with new updates framework and documentation.

Good job mr80. +1 for this.

Nice, however password hashing keeps being ugly in my opinion…

VieHashing.php




      public static function hash($input, $full = true)

     {

			if($full)

			{

				return md5($input . SALT) . SALT_SEPERATOR . base64_encode(md5(SECURITY_STRING) . SALT);

			}

			else 

			{

				return md5($input . SALT);

			}

     }



MD5? Really?

On PHP >= 5.3 I would use crypt() with CRYPT_BLOWFISH.

If you want to keep PHP 5.1/5.2 compatibility, you could use phpass http://www.openwall.com/phpass/

@ ekerazha:

I updated the password encryption based on your suggestion. Thank you very much. I understand more about md5 vs crypt. I’ve implemented based on this tutorial:

Happy coding!

Ok, be aware that it requires PHP >= 5.3 now.

Also, I don’t fully agree with that implementation




// generates a 22 character long random string  

function unique_salt() {  

	return substr(sha1(mt_rand()),0,22);  

}  



Why SHA1? Just generate 22 random chars.

If I’ll find some spare time, tonight I could pull some changes from GitHub.

Maybe we could also add legacy support for GXC-CMS v1 passwords.