[campsite-dev] Campsite template language
  • Hi Mugur, and everyone

    Well done on getting the 2.3 beta release out! I'm looking forward to
    trying it.

    Back on 2.2.2, I have a few small queries relating to the campsite
    template language etc:

    * Is there any way to customise the appearance of the search box
    without hand-coding the entire search form (eg in the fastnews
    sitemap column)?
    * It would be good if there were the ability to create RFC-822
    format dates using a %r code a la PHP. Getting around this lack
    for the RSS gizmo required some messy kludging.
    * Are timestamps for articles actually timestamps, or just dates?
    How are they stored in the DB?
    * I don't suppose there's a way to get abstracted content from the
    article in the search results? Did someone do some work
    integrating mnogosearch at some point?

    Cheers,

    JP

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • 3 Comments sorted by
  • --- John Pye wrote:
    > * Is there any way to customise the appearance of the search box
    > without hand-coding the entire search form (eg in the fastnews
    > sitemap column)?
    No

    > * It would be good if there were the ability to create RFC-822
    > format dates using a %r code a la PHP. Getting around this lack
    > for the RSS gizmo required some messy kludging.
    You can format the date which way you want, see Campsite manual chapters
    '3.9.4.3 Date' and '3.9.4.2 Print'.

    > * Are timestamps for articles actually timestamps, or just dates?
    > How are they stored in the DB?
    They are stored as DATE.

    > * I don't suppose there's a way to get abstracted content from the
    > article in the search results? Did someone do some work
    > integrating mnogosearch at some point?
    What abstracted content do you need?

    Mugur

    >
    > Cheers,
    >
    > JP
    >




    __________________________________
    Do you Yahoo!?
    Yahoo! Mail - Helps protect you from nasty viruses.
    http://promotions.yahoo.com/new_mail

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • Hi Mugur

    Campsite doesn't have the necessary date-display field codes to do this
    properly, as far as I can work out. Please check out http://php.net/date
    - abbreviated month/day names were missing, as I recall. Also timezone, etc.

    Cheers

    JP

    Mugur Rus wrote:

    >--- John Pye wrote:
    >
    >
    >> * Is there any way to customise the appearance of the search box
    >> without hand-coding the entire search form (eg in the fastnews
    >> sitemap column)?
    >>
    >>
    >No
    >
    >
    >
    >> * It would be good if there were the ability to create RFC-822
    >> format dates using a %r code a la PHP. Getting around this lack
    >> for the RSS gizmo required some messy kludging.
    >>
    >>
    >You can format the date which way you want, see Campsite manual chapters
    >'3.9.4.3 Date' and '3.9.4.2 Print'.
    >
    >
    >
    >> * Are timestamps for articles actually timestamps, or just dates?
    >> How are they stored in the DB?
    >>
    >>
    >They are stored as DATE.
    >
    >
    >
    >> * I don't suppose there's a way to get abstracted content from the
    >> article in the search results? Did someone do some work
    >> integrating mnogosearch at some point?
    >>
    >>
    >What abstracted content do you need?
    >
    >Mugur
    >
    >
    >
    >>Cheers,
    >>
    >>JP
    >>
    >>
    >>
    >
    >
    >
    >
    >__________________________________
    >Do you Yahoo!?
    >Yahoo! Mail - Helps protect you from nasty viruses.
    >http://promotions.yahoo.com/new_mail
    >
    >
    >

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • Hi John,

    I can't implement abbreviations easily, because right now Campsite doesn't
    support the translation of these abbreviations to different langauges, so you
    can only get them in English. And I don't want to confuse users - in case they
    publish in different languages. Then, I'm reluctant to put any more work into
    the current C++ parser knowing that it will be thrashed anyway. Also, I don't
    want to spend my time with the clumsy date types in C/C++ which are hard to
    manipulate. So you'll have to wait until we replace the C++ parser with a PHP
    one.

    I would appreciate if you would input this feature description into
    bugs.campware.org and schedule it for 3.0.

    Mugur

    --- John Pye wrote:
    > Hi Mugur
    >
    > Campsite doesn't have the necessary date-display field codes to do this
    > properly, as far as I can work out. Please check out http://php.net/date
    > - abbreviated month/day names were missing, as I recall. Also timezone, etc.
    >
    > Cheers
    >
    > JP
    >
    > Mugur Rus wrote:
    > >--- John Pye wrote:
    > >> * Is there any way to customise the appearance of the search box
    > >> without hand-coding the entire search form (eg in the fastnews
    > >> sitemap column)?
    > >No
    > >
    > >> * It would be good if there were the ability to create RFC-822
    > >> format dates using a %r code a la PHP. Getting around this lack
    > >> for the RSS gizmo required some messy kludging.
    > >You can format the date which way you want, see Campsite manual chapters
    > >'3.9.4.3 Date' and '3.9.4.2 Print'.
    > >
    > >> * Are timestamps for articles actually timestamps, or just dates?
    > >> How are they stored in the DB?
    > >They are stored as DATE.
    > >
    > >> * I don't suppose there's a way to get abstracted content from the
    > >> article in the search results? Did someone do some work
    > >> integrating mnogosearch at some point?
    > >What abstracted content do you need?
    > >
    > >Mugur
    > >
    > >>Cheers,
    > >>
    > >>JP




    ____________________________________________________
    Start your day with Yahoo! - make it your home page
    http://www.yahoo.com/r/hs

    ------------------------------------------
    Posted to Phorum via PhorumMail