Re: [campsite-support] Troubles with dates (Campsite 3.0, Windows)
  • hi !
    sorry but i didnt quite understand, could you explain the situation a
    bit more, please?

    what exactly happened after mysql restart? did you notice PublishDate
    values were set to 0000 into Articles table?
    which template function are you using to display date in frontend?

    thanks,


    On Nov 26, 2007 9:54 PM, wrote:
    > Author: AciDraT
    > Link: http://code.campware.org/phorum/read.php?8,5925,5925#msg-5925
    > --------------------------------------------------------------------------------
    >
    > After MySQL restart all article dates drops to 1999-11-30? It happens only on frontend,inside ADMIN everything OK! (Lang: Russian)
    >
    > It cased that in Article MYSQL table row PublishDate saved as 0000! with UploadDate row everything OK!
    >
    > (Apache 1.3.33, PHP 5.1.6, Windows)!
    >
    > Please! Help!
    >
    >
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >



    --
    /holman
  • 8 Comments sorted by
  • Hello!

    Problem resolved! Sorry, but it was my fault. PublishDate didnt' appeared because I didn't publish article! 80)

    But I have some questions!

    1) In this topic (http://code.campware.org/phorum/read.php?8,5846,5849#msg-5849) you wrote:

    mod_rewrite is not needed, please skip htpaccess file.

    But Campsite doesn't work without .htpaccess (page not found)!

    2) How to get section link inside tag LIST_ARTICLES?

    3) How to add article related images and topics?

    Please answer!

    Thanx
  • hi!

    1) hum, what is in your .htaccess file ?
    did you installation process create sym links in your document root
    directory? like this:

    de.php -> /usr/local/apache-1.3.35/htdocs/campsite_3_0_beta/index.php
    en.php -> /usr/local/apache-1.3.35/htdocs/campsite_3_0_beta/index.php
    ... and so forth for every supported language

    please check it out and tell us...

    2) just like this:

    {{ $campsite->section->number }}

    3) it is not possible so far, it will be in the next beta release
    (available next week)

    best,


    On Nov 28, 2007 4:14 AM, wrote:
    > Author: AciDraT
    > Link: http://code.campware.org/phorum/read.php?8,5931,5935#msg-5935
    > --------------------------------------------------------------------------------
    >
    > Hello!
    >
    > Problem resolved! Sorry, but it was my fault. PublishDate didnt' appeared because I didn't publish article! 80)
    >
    > But I have some questions!
    >
    > 1) In this topic (http://code.campware.org/phorum/read.php?8,5846,5849#msg-5849) you wrote:
    >
    > mod_rewrite is not needed, please skip htpaccess file.
    >
    > But Campsite doesn't work without .htpaccess (page not found)!
    >
    > 2) How to get section link inside tag LIST_ARTICLES?
    >
    > 3) How to add article related images and topics?
    >
    > Please answer!
    >
    > Thanx
    >
    >
    > --
    >
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >



    --
    /holman
  • 1) htaссess (In dist Campsite 3.0 beta)

    # Rewrite rules for Campsite ShortName URLs

    RewriteEngine On

    RewriteCond %{REQUEST_URI} (/|\.php|\.tpl|\.html|/[^.]*)$ [NC]
    RewriteCond %{REQUEST_URI} !^/admin/
    RewriteCond %{REQUEST_URI} !^/install/
    RewriteRule . /index.php [L]

    # For Rewrite debug purposes
    # RewriteLog /tmp/apache-rewrite.log
    # RewriteLogLevel 9

    2) I use Campsite for develop site on Windows machine!

    After installation I have same campsite file structure as in dist.

    I dont know what does it mean:

    de.php -> /usr/local/apache-1.3.35/htdocs/campsite_3_0_beta/index.php
    en.php -> /usr/local/apache-1.3.35/htdocs/campsite_3_0_beta/index.php

    My path is:

    \home\localhost\www\index.php (Webserver for Win emulate *nix dir structure)
  • hi !

    ok, you are on windows... you are right, windows does not have any
    idea what symbolic links are, so you do need htaccess.
    do not mind about what i told you.

    best,


    On Nov 29, 2007 11:32 PM, wrote:
    > Author: AciDraT
    > Link: http://code.campware.org/phorum/read.php?8,5931,5946#msg-5946
    > --------------------------------------------------------------------------------
    >
    > 1) hta
  • Every thing OK, but I see first page of my site in WYSIWYG editor when try to add article!

    Else,

    It seems to me that sorting article by type (ex, {{ list_article order="" name="article }} ) doesn't works!
  • hi !
    good to know you are doing well, however i didnt quite catch what you
    said about wysiwyg editor being seen on your site.

    second, you mean listing by article type instead of ordering? ordering
    is possible by article number, name, date, creation date, publication
    date... it is not possible by type, as you can see at
    http://code.campware.org/manuals/campsite/3.0/index.php?id=75

    to list articles by type you need to do something like this:

    {{ list_articles length="5" order="bydate desc" constraints="type is Article" }}

    best,



    On Dec 2, 2007 1:38 AM, wrote:
    > Author: AciDraT
    > Link: http://code.campware.org/phorum/read.php?8,5931,5951#msg-5951
    > --------------------------------------------------------------------------------
    >
    > Every thing OK, but I see first page of my site in WYSIWYG editor when try to add article!
    >
    > Else,
    >
    > It seems to me that sorting article by type (ex, {{ list_article order="" name="article }} ) doesn't works!
    >
    > --
    >
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >



    --
    /holman
  • Hi

    When i try to add article, first page of my site load into wysiwyg editor (example: in intro form). When I turn off mod_rewrite everything OK, but site doesn't work!

    else


    {{ list_articles length="5" order="bydate desc" constraints="type is Article" }} -
    This tag will return latest 5 articles

    How to do same list of article without latest one (or 2(3,4,5,6) latest articles)?
  • hi !

    well, you should look at some workaround to do that with lists as
    there is no a straight forward method for it.
    it comes to my mind this option:
    {{ if $campsite->current_list->at_beginning }}
    it allows you to validate whether you are at the very beginning of the
    list, that way you could do something like this:

    {{ list_articles length="6" order="bydate desc" constraints="type is Article" }}
    {{ if $campsite->current_list->at_beginning }}
    // do nothing
    {{ /elseif }}

    {{ $campsite->article->name }}


    {{ /if }}
    {{ /list_articles }}

    be aware i havent tested that code but i think it would have to skip
    printing the first article... then it would go for the last five.
    give it a try!

    regarding the wysiwyg issue, i still do not understand the
    situation... because you mention adding an article in admin interface
    then the problem in frontend... hum, i even do not know how to explain
    that but i got confused, sorry Wink

    best,



    On Dec 3, 2007 8:14 AM, wrote:
    > Author: AciDraT
    > Link: http://code.campware.org/phorum/read.php?8,5931,5955#msg-5955
    > --------------------------------------------------------------------------------
    >
    > Hi
    >
    > When i try to add article, first page of my site load into wysiwyg editor (example: in intro form). When I turn off mod_rewrite everything OK, but site doesn't work!
    >
    > else
    >
    >
    > {{ list_articles length="5" order="bydate desc" constraints="type is Article" }} -
    > This tag will return latest 5 articles
    >
    > How to do same list of article without latest one (or 2(3,4,5,6) latest articles)?
    >
    >
    > --
    >
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >



    --
    /holman