Re: [campsite-support] Using switches
  • Hi,

    As indicated in the manual
    http://code.campware.org/manuals/campsite/3.3/index.php?idc

    {{ list_articles constraints="SwitchName " }}

    for example:

    {{ list_articles length="5" constraints="IsHeadline is on"
    order="byPublishDate asc" }}



    On Wed, Dec 16, 2009 at 7:45 AM, wrote:
    > Author: Terix
    > Link:
  • Hi Holman

    i've made a try, but i can't figure why is not working... i've made a switch called "Box", checked it on a couple of articles and i have added that code to my template:

    {{ list_articles length="1" constraints="Box is on" order="byPublishDate desc" }}

    to show the last article that must go to the box, but the box is empty. If i take out the constraint, the last article is showed on the box.

    Why it doesn't work?
  • What version of Campsite are you using ?


    On Wed, Dec 16, 2009 at 12:25 PM, wrote:
    > Author: Terix
    > Link:
    version 3.3.2
  • Hi,

    That's why Smile
    There was a bug for switches as you can see here
    http://trac.campware.org/campsite/ticket/3033
    It was already fixed, so please upgrade to latest stable version 3.3.3.

    Best,


    On Thu, Dec 17, 2009 at 6:04 AM, wrote:
    > Author: Terix
    > Link:
    There is anything i must take care during upgrade? Which is the best practice to do that? I can't afford a downtime on the server if something goes wrong Sad
  • Hi Terix,

    1- Backup your current site files and data. Use campsite-backup to do it.

    2- Download and unpack 3.3.3

    3- Stop Apache

    4- Copy 3.3.3 files overwriting current 3.3.2 ones.

    5- Make Apache user owner of files: chown -R www-data:www-data /your/path
    (www-data is the apache user in Ubuntu installations, modify it if
    necessary to fit your platform)

    6- Start Apache

    7- Open home page for your site, upgrading will take action at this
    moment and that is it.


    Another way to upgrade is:

    1- Make a backup with campsite-backup

    2- Remove all Campsite

    3- Install 3.3.3

    4- Restore backup with campsite-restore (use option -e)


    Either work fine.

    You should run this process in a time of low load for your site as you
    need to stop the web server to avoid any upgrade failures. It will
    take only a few minutes (depending on backup size).

    Best,



    On Thu, Dec 17, 2009 at 8:50 AM, wrote:
    > Author: Terix
    > Link:
    I'm running on a WAMP system (apache under windows), i'll figure out my way through this, maybe i'll do some tests on a local machine first
  • I suggest to do a test: install the site on a test system running Campsite
    3.3.2 and do an upgrade. If any issue should arise you can see it on the
    test system. Although 3.3.3 is just bug fix version, there are no API,
    structural, database or requirements changes but you should run the test
    upgrade just to make sure.

    Mugur

    On Thu, Dec 17, 2009 at 3:50 PM, wrote:

    > Author: Terix
    > Link: http://code.campware.org/phorum/read.php?8,7890,7895#msg-7895
    >
    > --------------------------------------------------------------------------------
    >
    > There is anything i must take care during upgrade? Which is the best
    > practice to do that? I can't afford a downtime on the server if something
    > goes wrong Sad
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >
  • yes i was thinking the same, my only doubt is that i can't recreate the same system of my hosting partner, so i can't be 100% sure that if it works on my test machine, it will work on the production one... if i would like to fix just the switch issue for now, where i can find informations to do that? Or that fix is not an easy one to fix by hand and an upgrade is mandatory?