sava.tatic | 2 Aug 20:08

2,3.0 is here, let the upgrades begin


Dear All,

I am pleased to forward the message from our development team:

After 3 months of development, the Campsite team is proud to release
Campsite 2.3.0 "Niko" - the most advanced open-source system for news
publishing on the web.

The highlights:
- A brand new WYSIWYG text editor was introduced, goodbye HTMLArea,
hello Xinha (HTMLArea's more dynamically supported offspring), featuring
a MSWord style-tag killer.

- Enhanced user management - separation of staff & subscribers, ability
to search users, new, easier-to-use interface, categorized user-rights list

- A new and improved Localizer - new, easier-to-use interface, ability
to translate from any language to any other language

- Online help with user comments

- A revamped starting (Home) page, including lists of recently published
articles, and pending scheduled publishing actions on the home page

- Verified to work with SSL, with HOWTO document

- Brand new sample web site for you to play with


Download here:
http://www.campware.org/look/campware/download/campsite-2.3.0.tar.gz

Online help:
http://code.campware.org/manuals/campsite/2.3/

Sample templates & database:
http://www.campware.org/look/campware/download/demo-package-2.3.tar.gz

So please go ahead, upgrade, send us your feedback. The list will be there for you.

Best regards,

Sava
Douglas.Arellanes | 2 Aug 22:38

phantom <table> tags


Hi all,

I've run into what may be an undocumented feature, but wanted to ask about it anyway.

I'm on 2.2.2 (expecting to upgrade to 2.3.0 any minute now) and want to display the image from an article. The image field is called 'teaser_image'.

The template looks like this:

<!** List Article OnFrontPage Is On>
<!** Print Article teaser_image>
<!** EndList>
<!** endlocal>

The output, however, includes an entire table for the image:

<table border=0 cellspacing=0 cellpadding=0 align=none>
<tr><td align="center"><img src="/cgi-bin/get_img?NrArticle=2&NrImage=1" alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5></td></tr>
<tr><td align="center" class="caption">RDFW bunker</td></tr>
</table>

Seeing as I'm trying to avoid tables at all costs, I want to suppress all this junk. But how?

doug
Mugur Rus | 2 Aug 22:47
Picon
Favicon

Re: phantom <table> tags

Don't display images from article fields, instead use template language:

<!** if image [image_nr]>
    <img src="/cgi-bin/get_img?<!** urlparameters [image_nr]>">
<!** endif>

See the manual for more details.

Mugur

--- Douglas.Arellanes <at> mdlf.org wrote:
> Hi all,
> 
> I've run into what may be an undocumented feature, but wanted to ask about 
> it anyway. 
> 
> I'm on 2.2.2 (expecting to upgrade to 2.3.0 any minute now) and want to 
> display the image from an article. The image field is called 
> 'teaser_image'.
> 
> The template looks like this:
> 
> <!** List Article OnFrontPage Is On>
> <!** Print Article teaser_image>
> <!** EndList>
> <!** endlocal>
> 
> The output, however, includes an entire table for the image:
> 
> <table border=0 cellspacing=0 cellpadding=0 align=none>
> <tr><td align="center"><img src="/cgi-bin/get_img?NrArticle=2&NrImage=1" 
> alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5></td></tr>
> <tr><td align="center" class="caption">RDFW bunker</td></tr>
> </table>
> 
> Seeing as I'm trying to avoid tables at all costs, I want to suppress all 
> this junk. But how?
> 
> doug

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

Douglas.Arellanes | 2 Aug 22:55

Re: phantom <table> tags


Actually, I'm trying to follow the manual in Section 3.5.3 "Including Images in the Section Listing," where it advises:

<snip>

As seen above, the sectiontemplate.tpl will always pull information out of the database and display it in a list format. If we have images included in the article, they will appear on the article page, but how can we display an individual, small image for one article in the section listing?

The answer is quite simple. Create a body field in your Article Type that will only contain the image that goes into the section listing. Let's say we call this variable 'sectionimage'. Then all you need to add in the section listing to display the image is:

<!** print article sectionimage>

This will then generate the HTML code as saved in the database. And in our case that means it will create the image tag including the image. You could even generate a little subtitle for the image in this field when entering the article text and images.

</snip>

What I want to do is display the article's image on the front page - not its text - if the 'display on front page' checkbox is ticked. So I presume the template language statement would include first an If statement for whether the article is on the front page, but how do I tell the parser the number of the photo, when this will be changing?

doug



Mugur Rus <mugur1973 <at> yahoo.com>

08/02/2005 10:47 PM
Please respond to campsite-support

       
        To:        campsite-support <at> campware.org
        cc:        
        Subject:        Re: [campsite-support] phantom <table> tags



Don't display images from article fields, instead use template language:

<!** if image [image_nr]>
   <img src="/cgi-bin/get_img?<!** urlparameters [image_nr]>">
<!** endif>

See the manual for more details.

Mugur

--- Douglas.Arellanes <at> mdlf.org wrote:
> Hi all,
>
> I've run into what may be an undocumented feature, but wanted to ask about
> it anyway.
>
> I'm on 2.2.2 (expecting to upgrade to 2.3.0 any minute now) and want to
> display the image from an article. The image field is called
> 'teaser_image'.
>
> The template looks like this:
>
> <!** List Article OnFrontPage Is On>
> <!** Print Article teaser_image>
> <!** EndList>
> <!** endlocal>
>
> The output, however, includes an entire table for the image:
>
> <table border=0 cellspacing=0 cellpadding=0 align=none>
> <tr><td align="center"><img src="/cgi-bin/get_img?NrArticle=2&NrImage=1"
> alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5></td></tr>
> <tr><td align="center" class="caption">RDFW bunker</td></tr>
> </table>
>
> Seeing as I'm trying to avoid tables at all costs, I want to suppress all
> this junk. But how?
>
> doug



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



Mugur Rus | 2 Aug 23:07
Picon
Favicon

Re: phantom <table> tags

--- Douglas.Arellanes <at> mdlf.org wrote:
> Actually, I'm trying to follow the manual in Section 3.5.3 "Including 
> Images in the Section Listing," where it advises:
> 
> The answer is quite simple. Create a body field in your Article Type that 
> will only contain the image that goes into the section listing. Let's say 
> we call this variable 'sectionimage'. Then all you need to add in the 
> section listing to display the image is:
> <!** print article sectionimage>
> This will then generate the HTML code as saved in the database. And in our 
> case that means it will create the image tag including the image. You 
> could even generate a little subtitle for the image in this field when 
> entering the article text and images.
Yes, this is an old example but it's not the only way and maybe not the best
way.

> What I want to do is display the article's image on the front page - not 
> its text - if the 'display on front page' checkbox is ticked. So I presume 
> the template language statement would include first an If statement for 
> whether the article is on the front page, but how do I tell the parser the 
> number of the photo, when this will be changing?
<!** list article onfrontpage is on>
    <!** if image 100>
        <img src="/cgi-bin/get_img?<!** urlparameters>">
    <!** endif>
<!** endlist>
Now, you'll have to come up with a convention like: "all images that are to be
displayed on the front page will have the number 100".

The image number is like a label, it's just that you can't name them with words
but you have to use numbers. Think of it this way: number 1 is for displaying
together with article short intro on the front page, number 10 is thumbnail for
headlines (when you display a list of article headlines in a RSS feed), 20 and
up are for use in article body fields.

Mugur

> Mugur Rus <mugur1973 <at> yahoo.com>
> 08/02/2005 10:47 PM
> Please respond to campsite-support
> 
>  
>         To:     campsite-support <at> campware.org
>         cc: 
>         Subject:        Re: [campsite-support] phantom <table> tags
> 
> 
> Don't display images from article fields, instead use template language:
> 
> <!** if image [image_nr]>
>     <img src="/cgi-bin/get_img?<!** urlparameters [image_nr]>">
> <!** endif>
> 
> See the manual for more details.
> 
> Mugur
> 
> --- Douglas.Arellanes <at> mdlf.org wrote:
> > Hi all,
> > 
> > I've run into what may be an undocumented feature, but wanted to ask 
> about 
> > it anyway. 
> > 
> > I'm on 2.2.2 (expecting to upgrade to 2.3.0 any minute now) and want to 
> > display the image from an article. The image field is called 
> > 'teaser_image'.
> > 
> > The template looks like this:
> > 
> > <!** List Article OnFrontPage Is On>
> > <!** Print Article teaser_image>
> > <!** EndList>
> > <!** endlocal>
> > 
> > The output, however, includes an entire table for the image:
> > 
> > <table border=0 cellspacing=0 cellpadding=0 align=none>
> > <tr><td align="center"><img src="/cgi-bin/get_img?NrArticle=2&NrImage=1" 
> 
> > alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5></td></tr>
> > <tr><td align="center" class="caption">RDFW bunker</td></tr>
> > </table>
> > 
> > Seeing as I'm trying to avoid tables at all costs, I want to suppress 
> all 
> > this junk. But how?
> > 
> > doug
> 
> 
> 
>  
> ____________________________________________________
> Start your day with Yahoo! - make it your home page 
> http://www.yahoo.com/r/hs 
>  
> 
> 
> 

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

Douglas.Arellanes | 2 Aug 23:13

Re: phantom <table> tags


Thanks Mugur,

I'll try something like this, and will keep you posted. I've also added your response to Campsite's DocMint documentation for 3.5.3. The DocMint site is quite nice, by the way, and other Campsite users would be well advised to check it out.

http://code.campware.org/manuals/campsite/2.3/index.php


doug



Mugur Rus <mugur1973 <at> yahoo.com>

08/02/2005 11:07 PM
Please respond to campsite-support

       
        To:        campsite-support <at> campware.org
        cc:        
        Subject:        Re: [campsite-support] phantom <table> tags



--- Douglas.Arellanes <at> mdlf.org wrote:
> Actually, I'm trying to follow the manual in Section 3.5.3 "Including
> Images in the Section Listing," where it advises:
>
> The answer is quite simple. Create a body field in your Article Type that
> will only contain the image that goes into the section listing. Let's say
> we call this variable 'sectionimage'. Then all you need to add in the
> section listing to display the image is:
> <!** print article sectionimage>
> This will then generate the HTML code as saved in the database. And in our
> case that means it will create the image tag including the image. You
> could even generate a little subtitle for the image in this field when
> entering the article text and images.
Yes, this is an old example but it's not the only way and maybe not the best
way.

> What I want to do is display the article's image on the front page - not
> its text - if the 'display on front page' checkbox is ticked. So I presume
> the template language statement would include first an If statement for
> whether the article is on the front page, but how do I tell the parser the
> number of the photo, when this will be changing?
<!** list article onfrontpage is on>
   <!** if image 100>
       <img src="/cgi-bin/get_img?<!** urlparameters>">
   <!** endif>
<!** endlist>
Now, you'll have to come up with a convention like: "all images that are to be
displayed on the front page will have the number 100".

The image number is like a label, it's just that you can't name them with words
but you have to use numbers. Think of it this way: number 1 is for displaying
together with article short intro on the front page, number 10 is thumbnail for
headlines (when you display a list of article headlines in a RSS feed), 20 and
up are for use in article body fields.

Mugur

> Mugur Rus <mugur1973 <at> yahoo.com>
> 08/02/2005 10:47 PM
> Please respond to campsite-support
>
>  
>         To:     campsite-support <at> campware.org
>         cc:
>         Subject:        Re: [campsite-support] phantom <table> tags
>
>
> Don't display images from article fields, instead use template language:
>
> <!** if image [image_nr]>
>     <img src="/cgi-bin/get_img?<!** urlparameters [image_nr]>">
> <!** endif>
>
> See the manual for more details.
>
> Mugur
>
> --- Douglas.Arellanes <at> mdlf.org wrote:
> > Hi all,
> >
> > I've run into what may be an undocumented feature, but wanted to ask
> about
> > it anyway.
> >
> > I'm on 2.2.2 (expecting to upgrade to 2.3.0 any minute now) and want to
> > display the image from an article. The image field is called
> > 'teaser_image'.
> >
> > The template looks like this:
> >
> > <!** List Article OnFrontPage Is On>
> > <!** Print Article teaser_image>
> > <!** EndList>
> > <!** endlocal>
> >
> > The output, however, includes an entire table for the image:
> >
> > <table border=0 cellspacing=0 cellpadding=0 align=none>
> > <tr><td align="center"><img src="/cgi-bin/get_img?NrArticle=2&NrImage=1"
>
> > alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5></td></tr>
> > <tr><td align="center" class="caption">RDFW bunker</td></tr>
> > </table>
> >
> > Seeing as I'm trying to avoid tables at all costs, I want to suppress
> all
> > this junk. But how?
> >
> > doug
>
>
>
>  
> ____________________________________________________
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
>  
>
>
>



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



Mugur Rus | 2 Aug 23:16
Picon
Favicon

Re: phantom <table> tags

Please correct the code, I made a mistake:

> <!** list article onfrontpage is on>
>     <!** if image 100>
>         <img src="/cgi-bin/get_img?<!** urlparameters>">
>     <!** endif>
> <!** endlist>

Change
         <img src="/cgi-bin/get_img?<!** urlparameters>">
to
         <img src="/cgi-bin/get_img?<!** urlparameters image 100>">

Mugur

--- Douglas.Arellanes <at> mdlf.org wrote:
> Thanks Mugur,
> 
> I'll try something like this, and will keep you posted. I've also added 
> your response to Campsite's DocMint documentation for 3.5.3. The DocMint 
> site is quite nice, by the way, and other Campsite users would be well 
> advised to check it out.
> 
> http://code.campware.org/manuals/campsite/2.3/index.php
> 
> doug
> 
> Mugur Rus <mugur1973 <at> yahoo.com>
> 08/02/2005 11:07 PM
> Please respond to campsite-support
> 
>  
>         To:     campsite-support <at> campware.org
>         cc: 
>         Subject:        Re: [campsite-support] phantom <table> tags
> 
> 
> --- Douglas.Arellanes <at> mdlf.org wrote:
> > Actually, I'm trying to follow the manual in Section 3.5.3 "Including 
> > Images in the Section Listing," where it advises:
> > 
> > The answer is quite simple. Create a body field in your Article Type 
> that 
> > will only contain the image that goes into the section listing. Let's 
> say 
> > we call this variable 'sectionimage'. Then all you need to add in the 
> > section listing to display the image is:
> > <!** print article sectionimage>
> > This will then generate the HTML code as saved in the database. And in 
> our 
> > case that means it will create the image tag including the image. You 
> > could even generate a little subtitle for the image in this field when 
> > entering the article text and images.
> Yes, this is an old example but it's not the only way and maybe not the 
> best
> way.
> 
> > What I want to do is display the article's image on the front page - not 
> 
> > its text - if the 'display on front page' checkbox is ticked. So I 
> presume 
> > the template language statement would include first an If statement for 
> > whether the article is on the front page, but how do I tell the parser 
> the 
> > number of the photo, when this will be changing?
> <!** list article onfrontpage is on>
>     <!** if image 100>
>         <img src="/cgi-bin/get_img?<!** urlparameters>">
>     <!** endif>
> <!** endlist>
> Now, you'll have to come up with a convention like: "all images that are 
> to be
> displayed on the front page will have the number 100".
> 
> The image number is like a label, it's just that you can't name them with 
> words
> but you have to use numbers. Think of it this way: number 1 is for 
> displaying
> together with article short intro on the front page, number 10 is 
> thumbnail for
> headlines (when you display a list of article headlines in a RSS feed), 20 
> and
> up are for use in article body fields.
> 
> Mugur
> 
> > Mugur Rus <mugur1973 <at> yahoo.com>
> > 08/02/2005 10:47 PM
> > Please respond to campsite-support
> > 
> > 
> >         To:     campsite-support <at> campware.org
> >         cc: 
> >         Subject:        Re: [campsite-support] phantom <table> tags
> > 
> > 
> > Don't display images from article fields, instead use template language:
> > 
> > <!** if image [image_nr]>
> >     <img src="/cgi-bin/get_img?<!** urlparameters [image_nr]>">
> > <!** endif>
> > 
> > See the manual for more details.
> > 
> > Mugur
> > 
> > --- Douglas.Arellanes <at> mdlf.org wrote:
> > > Hi all,
> > > 
> > > I've run into what may be an undocumented feature, but wanted to ask 
> > about 
> > > it anyway. 
> > > 
> > > I'm on 2.2.2 (expecting to upgrade to 2.3.0 any minute now) and want 
> to 
> > > display the image from an article. The image field is called 
> > > 'teaser_image'.
> > > 
> > > The template looks like this:
> > > 
> > > <!** List Article OnFrontPage Is On>
> > > <!** Print Article teaser_image>
> > > <!** EndList>
> > > <!** endlocal>
> > > 
> > > The output, however, includes an entire table for the image:
> > > 
> > > <table border=0 cellspacing=0 cellpadding=0 align=none>
> > > <tr><td align="center"><img 
> src="/cgi-bin/get_img?NrArticle=2&NrImage=1" 
> > 
> > > alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5></td></tr>
> > > <tr><td align="center" class="caption">RDFW bunker</td></tr>
> > > </table>
> > > 
> > > Seeing as I'm trying to avoid tables at all costs, I want to suppress 
> > all 
> > > this junk. But how?
> > > 
> > > doug
> > 
> > 
> > 
> > 
> > ____________________________________________________
> > Start your day with Yahoo! - make it your home page 
> > http://www.yahoo.com/r/hs 
> > 
> > 
> > 
> > 
> 
> 
> 
>  
> ____________________________________________________
> Start your day with Yahoo! - make it your home page 
> http://www.yahoo.com/r/hs 
>  
> 
> 
> 

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

Tomaz Bartol | 3 Aug 14:59
Picon
Picon

Is there...?

Hi all,

I'm sorry to bother you with such beginner's stuf, but I haven't found direct answers by browsing the campsite www pages. If someoune could give comprehensive answers (a few words more than YES or NO) to all the questions below, that would be great :-)

So:

1. is there a way to add polls in CAMPSITE (either related to articles or standalone)?

2. is there a way to do pagination in display of article lists (you know, displaying let's say 10 articles per page and then presenting links to next pages like <Page 1> <Page 2> ... <Last Page>?

3. is there a way to add forums in CAMPSITE (either related to articles or standalone)?

4. is there a way to add guestbook in CAMPSITE?

5. is there any CAMPSITE resource archive (themes, plugins, etc.) ?

6. is there an option to output the page content in printer friendly layout?

7. is there a way to use friendly URLs for selected pages? Like www.my.com/intro.php as a replacement to the www.my.com/articles.php?article_id=46543&Sect=1&issue=5&bla=3&blu=7, for instance (not for all articles but for some that are static)? I know I can do it with redirections, but can this be somehow handled in CAMPSITE without the need to really create the intro.php file on the server?

8. can dynamic content be combined with static pages?

9. can the "issue" feature be turned off for the entire site?

10. where can I found more documentation, howtos, manuals, examples, etc.? I've seen that something is included in the product package, but is there anything more, perhaps available separately?

11. is there (or can it be made) a similar "feature matrix" like this (http://www.cmsmatrix.org/matrix/cms-matrix?func=viewDetail&listingId=1002) for CAMPSITE?

12. is there a frontend search engine for site content in CAMPSITE? Can it also serch in documents like PDF and DOC?


I know I ask a lot, but I think this wil be very very useful to others as well, specialy to newcomers...

Thanks a lot,
Tomaz

Paul Baranowski | 3 Aug 21:24

Re: Is there...?

Tomaz Bartol wrote:
> 1. is there a way to add polls in CAMPSITE (either related to articles
> or standalone)?

Standalone polls can be added in the templates...any external PHP code
can be added this way.  We have a module called "PHPWrapper" which
allows you to include PHP code in the templates.

> 2. is there a way to do pagination in display of article lists (you
> know, displaying let's say 10 articles per page and then presenting
> links to next pages like <Page 1> <Page 2> ... <Last Page>?

Yes, these are called "Subtitles" or "Subheads" (Subheadings).  You can
create these in your article via the WYSIWYG editor - there is a button
for "Subhead".  In the template language you can lay these out as you
like.  I can send you an example if you like.

> 3. is there a way to add forums in CAMPSITE (either related to articles
> or standalone)?

Not officially, but someone has developed a plugin for this.  We plan on
officially supporting forums in the future.

> 4. is there a way to add guestbook in CAMPSITE?

Same answer as #1.

> 5. is there any CAMPSITE resource archive (themes, plugins, etc.) ?

Not at the moment, but there are plans for this sort of thing.

> 6. is there an option to output the page content in printer friendly
> layout?

You can create a "print friendly" page the template language.  A plugin
called the "PrintBox" is about to be released which can do this sort of
thing.

> 7. is there a way to use friendly URLs for selected pages? Like
> www.my.com/intro.php as a replacement to the
> www.my.com/articles.php?article_id=46543&Sect=1&issue=5&bla=3&blu=7, for
> instance (not for all articles but for some that are static)? I know I
> can do it with redirections, but can this be somehow handled in CAMPSITE
> without the need to really create the intro.php file on the server?

Yes, these are called "short urls" and it is an option you can turn on
when you create a publication.

> 8. can dynamic content be combined with static pages?

Can you explain what you mean?  Yes, you can have both static and
dynamic web pages if that is what you are asking, or you can include
static content inside of dynamic pages.

> 9. can the "issue" feature be turned off for the entire site?

No, Campsite is issue-based for now.  In the future we will make it more
flexible.

> 10. where can I found more documentation, howtos, manuals, examples,
> etc.? I've seen that something is included in the product package, but
> is there anything more, perhaps available separately?

Our new online manual, where you can attach comments to articles:
http://code.campware.org/manuals/campsite/2.3/

> 11. is there (or can it be made) a similar "feature matrix" like this
> (http://www.cmsmatrix.org/matrix/cms-matrix?func=viewDetail&listingId=1002
> <http://www.cmsmatrix.org/matrix/cms-matrix?func=viewDetail&listingId=1002>)
> for CAMPSITE?

Yes, we could make one.  I'll add it to the TODO list.

> 12. is there a frontend search engine for site content in CAMPSITE? Can
> it also serch in documents like PDF and DOC?

This one of the features for 2.4, the next version of campsite, which
will come out in a couple months.

- Paul

Mugur Rus | 3 Aug 21:33
Picon
Favicon

Re: Is there...?

--- Paul Baranowski <paul <at> paulbaranowski.org> wrote:
> Tomaz Bartol wrote:
> > 2. is there a way to do pagination in display of article lists (you
> > know, displaying let's say 10 articles per page and then presenting
> > links to next pages like <Page 1> <Page 2> ... <Last Page>?
> Yes, these are called "Subtitles" or "Subheads" (Subheadings).  You can
> create these in your article via the WYSIWYG editor - there is a button
> for "Subhead".  In the template language you can lay these out as you
> like.  I can send you an example if you like.
Hi, I think Tomaz asked about something else: list of articles. Yes, you can
paginate a list of articles and have as many as you want per page, move to the
previous/next x articles.

> > 12. is there a frontend search engine for site content in CAMPSITE? Can
> > it also serch in documents like PDF and DOC?
> This one of the features for 2.4, the next version of campsite, which
> will come out in a couple months.
There is an internal front end search engine wich indexes published articles
every 6 hours. This search engine is integrated with the template engine so you
can display the search results from Campsite templates. The drawback is that
our internal search engine is simple, not so performant as the new ones. Paul
was talking about a new, external search engine that we are going to integrate
with Campsite 2.4.

Mugur

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Gmane