[campsite-support] list articles pages
  • hello

    i have a section called news, the articles on this section categurize to 5
    categuries using topics , i need to build section page for each categuery ,
    am doing that by passing topic name by url to section page like this:

    http://www.pbc.ps/ar/1/6/?tn=last

    my question is how can i get this variable and use it with "contraints"
    field in camsite code {{list_articles......}}

    regards


    --
    Alaa Anabtawi
  • 7 Comments sorted by
  • Hi,

    the url params will be available throught $smarty.request.tn

    Here some useful tricks, because parsing of arrays is little bit different
    than in php.

    To use this in the contraints within an other function call you need some
    special smarty syntax:
    {{ list_articles constraints="topic is `$smarty.request.tn`" }}
    Take care using booth type of quotas exactly as in the example.

    This will not print articles if tn is empty. You can avoid this by keeping
    the whole topic constraint empty if none is given:

    {{ if strlen($smarty.request.tn) }}
    {{ assign var="topic_condition" value="topic is `$smarty.request.tn
    ` }}"
    {{ /if }}

    {{ list_articles constraints="`$topic_condition`" }}



    Best,
    Sebastian
    -----Original Message-----
    From: Alaa Anabtawi [mailto:alaa81@gmail.com]
    Sent: Monday, December 01, 2008 1:36 PM
    To: campsite-support@campware.org
    Subject: [campsite-support] list articles pages


    hello

    i have a section called news, the articles on this section categurize to 5
    categuries using topics , i need to build section page for each categuery ,
    am doing that by passing topic name by url to section page like this:

    http://www.pbc.ps/ar/1/6/?tn=last

    my question is how can i get this variable and use it with "contraints"
    field in camsite code {{list_articles......}}

    regards


    --
    Alaa Anabtawi
  • so nice

    worked , thanks very much

    regards




    On Tue, Dec 2, 2008 at 1:58 PM, Sebastian Goebel wrote:

    > Hi,
    >
    > the url params will be available throught $smarty.request.tn
    >
    > Here some useful tricks, because parsing of arrays is little bit different
    > than in php.
    >
    > To use this in the contraints within an other function call you need some
    > special smarty syntax:
    > {{ list_articles constraints="topic is `$smarty.request.tn`" }}
    > Take care using booth type of quotas exactly as in the example.
    >
    > This will not print articles if tn is empty. You can avoid this by keeping
    > the whole topic constraint empty if none is given:
    >
    > {{ if strlen($smarty.request.tn) }}
    > {{ assign var="topic_condition" value="topic is `$smarty.request.tn `
    > }}"
    > {{ /if }}
    >
    > {{ list_articles constraints="`$topic_condition`" }}
    >
    >
    >
    > Best,
    > Sebastian
    >
    > -----Original Message-----
    > *From:* Alaa Anabtawi [mailto:alaa81@gmail.com]
    > *Sent:* Monday, December 01, 2008 1:36 PM
    > *To:* campsite-support@campware.org
    > *Subject:* [campsite-support] list articles pages
    >
    > hello
    >
    > i have a section called news, the articles on this section categurize to 5
    > categuries using topics , i need to build section page for each categuery ,
    > am doing that by passing topic name by url to section page like this:
    >
    > http://www.pbc.ps/ar/1/6/?tn=last
    >
    > my question is how can i get this variable and use it with "contraints"
    > field in camsite code {{list_articles......}}
    >
    > regards
    >
    >
    > --
    > Alaa Anabtawi
    >
    >


    --
    Alaa Anabtawi
  • Hi,

    I got stucked with a Campfire installation when it came the "automated tasks".

    It says:
    Error: Could not save cron job files. Could not run the crontab executable.

    I checked the permission, they should be fine. In the beginning of
    the installation all the requirements were filled as well.

    Anything that I could pass for server people to fix?

    Yours,

    Gene
  • Hi Gene,

    it seems on your setup php cannot properly call external programs, like
    crontab. It might be caused by safe_mode_exec_dir, which forbids running
    executables outsite that dir.

    You can use the attached version of CampInstallationBase.php. Save it to
    docroot/install/classes. It will igenore the failure on cron-setup, and
    display the lines you can run manually, if you have sehll access.

    Best,
    Sebastian



    > -----Original Message-----
    > From: Generare Management Department [mailto:management@generare.com]
    > Sent: Wednesday, December 03, 2008 1:38 PM
    > To: campsite-support@campware.org
    > Subject: Re: [campsite-support] list articles pages
    >
    >
    > Hi,
    >
    > I got stucked with a Campfire installation when it came the
    > "automated tasks".
    >
    > It says:
    > Error: Could not save cron job files. Could not run the crontab
    > executable.
    >
    > I checked the permission, they should be fine. In the beginning of
    > the installation all the requirements were filled as well.
    >
    > Anything that I could pass for server people to fix?
    >
    > Yours,
    >
    > Gene
  • i cannot install either because of the cron job error can i get a copy of the CampInstallationBase.php or let me know what needs changing
  • Hi Mark,

    What exactly is the cron job error ? Where in the installation process
    are you stuck?


    On Fri, May 7, 2010 at 8:53 AM, mark casson
    <campsite-support@lists.sourcefabric.org> wrote:
    >
    > i cannot install either because of the cron job error can i get a copy of the CampInstallationBase.php or let me know what needs changing
    >


    --
    /holman
  • same as the post before mine

    automated tasks on the install