Re: [campsite-support] javascript error.
  • Hi,

    What truncate function do you mean? not clear to me, sorry.

    Best,


    On Sun, Nov 23, 2008 at 12:42 PM, wrote:
    > Author: ludovico
    > Link: http://code.campware.org/phorum/read.php?8,6753,6753#msg-6753
    > --------------------------------------------------------------------------------
    >
    > I had a problem with, I think javascript and apache, I installed campsite on centos4.7+apache+plesk, all gone well but, I can't use truncate, I've got no error on logs, and all works well, except the truncate function.
    >
    > I hope someone could help me, Thanks.
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >



    --
    /holman
  • 3 Comments sorted by
  • es. In the home-middle.tpl, if I change :

    {{ $campsite->article->intro }}
    in :

    {{ $campsite->article->intro|truncate:15 }}

    nothing change.

    How could I get the first 15 chars of the intro? I had to embed some php code?

    Thanks

  • what version of campsite are you using?
    I just tested 3.1.2 and it works pretty much ok


    On Mon, Nov 24, 2008 at 3:30 PM, wrote:
    > Author: ludovico
    > Link: http://code.campware.org/phorum/read.php?8,6754,6759#msg-6759
    > --------------------------------------------------------------------------------
    >
    > es. In the home-middle.tpl, if I change :
    > {{ $campsite->article->intro }}
    > in :
    > {{ $campsite->article->intro|truncate:15 }}
    >
    > nothing change.
    >
    > How could I get the first 15 chars of the intro? I had to embed some php code?
    >
    > Thanks
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >



    --
    /holman
  • Holman Romero ha scritto:

    what version of campsite are you using?
    I just tested 3.1.2 and it works pretty much ok


    On Mon, Nov 24, 2008 at 3:30 PM, <phorum@code.campware.org> wrote:


    Author: ludovico
    Link: http://code.campware.org/phorum/read.php?8,6754,6759#msg-6759
    --------------------------------------------------------------------------------

    es. In the home-middle.tpl, if I change :
    {{ $campsite->article->intro }}
    in :
    {{ $campsite->article->intro|truncate:15 }}

    nothing change.

    How could I get the first 15 chars of the intro? I had to embed some php code?

    Thanks

    --
    Sent from Campware Forums
    http://code.campware.org/phorum








    I tried 3.1.1 which is actually
    installed and 3.1.2 both with no luck, I think it's something related
    with apache configuration, cause I was successful in installing it on
    Ubuntu and Gentoo.

    Thanks