Jump to content


thomas.isberg

Member Since 06 Feb 2012
Offline Last Active May 03 2013 02:09 AM
-----

Topics I've Started

Deploy database but not users

04 April 2013 - 03:20 AM

Hi!

 

I have a website where users register and become members. Naturally I create a PW user for every new member, and use PW's login functionality.

 

I want to go live with the website, but also want to continue development. I have a lot of ideas and would like to update the website with new templates and stuff once a day for a few weeks now, and then maybe once a week while adding new features.

 

I usually export my entire local database when I update the website, and then import it on the server. But if I do that, every new website member on the live website will get lost.

 

Does anyone have a good idea on how to approach this? I thought about exporting all the members to file before I import the new database, and then import them again, but:

a) It just doesn't feel safe.

b) I can't figure out how to set their passwords right during import. Export gives me hashed passwords.

 

Cheers and thanks!

.Thomas


Exclude pages with unpublished parent

30 November 2012 - 05:08 AM

Hi!

What's the best way to exclude pages with an unpublished or hidden parent anywhere in the hierarchy? In a find() that is. :)

Thanks!
.Thomas

Setting translated title

30 November 2012 - 04:50 AM

Hi!

I have multi language all set up and working with multi language fields and two languages: default and english.

Everything's working, but when I create a new Page and try to set title and title_english, only title is stored. The english version comes in blank. Here's what I do:



$item = new Page();
$item->template = $this->templates->get("page_complex");
$item->parent = $page->id;
$item->title = "Kommande matcher";
$item->title_english = "Upcoming fights";

$item->save();


Any ideas anyone?

Thank you Ryan & all for this wonderful CMS!!!

Cheers,
/ Thomas