[campsite-support] phantom <table> tags
  • This is a multipart message in MIME format.
    --=_alternative 00715B30C1257051_=
    Content-Type: text/plain; charset="us-ascii"

    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:






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




    alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5>
    RDFW bunker


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

    doug
    --=_alternative 00715B30C1257051_=
    Content-Type: text/html; charset="us-ascii"



    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
    --=_alternative 00715B30C1257051_=--

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • 5 Comments sorted by
  • Don't display images from article fields, instead use template language:





    See the manual for more details.

    Mugur

    --- Douglas.Arellanes@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:
    >
    >
    >
    >
    >
    >
    > The output, however, includes an entire table for the image:
    >
    >
    >
    >
    >
    > alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5>
    RDFW bunker

    >
    > 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

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • This is a multipart message in MIME format.
    --=_alternative 0072E910C1257051_=
    Content-Type: text/plain; charset="us-ascii"

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



    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:

    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.


    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
    08/02/2005 10:47 PM
    Please respond to campsite-support


    To: campsite-support@campware.org
    cc:
    Subject: Re: [campsite-support] phantom tags


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





    See the manual for more details.

    Mugur

    --- Douglas.Arellanes@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:
    >
    >
    >
    >
    >
    >
    > The output, however, includes an entire table for the image:
    >
    >

    >
    >
    >

    > alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5>
    RDFW bunker

    >
    > 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




    --=_alternative 0072E910C1257051_=
    Content-Type: text/html; charset="us-ascii"



    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@yahoo.com>

    08/02/2005 10:47 PM

    Please respond to campsite-support


           

            To:        campsite-support@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@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








    --=_alternative 0072E910C1257051_=--

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • --- Douglas.Arellanes@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:
    >
    > 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?





    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
    > 08/02/2005 10:47 PM
    > Please respond to campsite-support
    >
    >
    > To: campsite-support@campware.org
    > cc:
    > Subject: Re: [campsite-support] phantom tags
    >
    >
    > Don't display images from article fields, instead use template language:
    >
    >
    >
    >
    >
    > See the manual for more details.
    >
    > Mugur
    >
    > --- Douglas.Arellanes@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:
    > >
    > >
    > >
    > >
    > >
    > >
    > > The output, however, includes an entire table for the image:
    > >
    > >

    > >
    > >
    > >
    >
    > > alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5>
    RDFW bunker

    > >
    > > 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

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • This is a multipart message in MIME format.
    --=_alternative 0074862DC1257051_=
    Content-Type: text/plain; charset="us-ascii"

    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
    08/02/2005 11:07 PM
    Please respond to campsite-support


    To: campsite-support@campware.org
    cc:
    Subject: Re: [campsite-support] phantom tags


    --- Douglas.Arellanes@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:
    >
    > 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?





    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
    > 08/02/2005 10:47 PM
    > Please respond to campsite-support
    >
    >
    > To: campsite-support@campware.org
    > cc:
    > Subject: Re: [campsite-support] phantom
    tags
    >
    >
    > Don't display images from article fields, instead use template language:
    >
    >
    >
    >
    >
    > See the manual for more details.
    >
    > Mugur
    >
    > --- Douglas.Arellanes@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:
    > >
    > >
    > >
    > >
    > >
    > >
    > > The output, however, includes an entire table for the image:
    > >
    > >

    > >
    > >
    > >
    src="/cgi-bin/get_img?NrArticle=2&NrImage=1"
    >
    > > alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5>
    RDFW bunker

    > >
    > > 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




    --=_alternative 0074862DC1257051_=
    Content-Type: text/html; charset="us-ascii"



    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@yahoo.com>

    08/02/2005 11:07 PM

    Please respond to campsite-support


           

            To:        campsite-support@campware.org

            cc:        

            Subject:        Re: [campsite-support] phantom <table> tags






    --- Douglas.Arellanes@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@yahoo.com>

    > 08/02/2005 10:47 PM

    > Please respond to campsite-support

    >

    >  

    >         To:     campsite-support@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@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








    --=_alternative 0074862DC1257051_=--

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • Please correct the code, I made a mistake:

    >
    >
    >
    >
    >

    Change

    to


    Mugur

    --- Douglas.Arellanes@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
    > 08/02/2005 11:07 PM
    > Please respond to campsite-support
    >
    >
    > To: campsite-support@campware.org
    > cc:
    > Subject: Re: [campsite-support] phantom tags
    >
    >
    > --- Douglas.Arellanes@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:
    > >
    > > 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?
    >
    >
    >
    >
    >
    > 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
    > > 08/02/2005 10:47 PM
    > > Please respond to campsite-support
    > >
    > >
    > > To: campsite-support@campware.org
    > > cc:
    > > Subject: Re: [campsite-support] phantom
    tags
    > >
    > >
    > > Don't display images from article fields, instead use template language:
    > >
    > >
    > >
    > >
    > >
    > > See the manual for more details.
    > >
    > > Mugur
    > >
    > > --- Douglas.Arellanes@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:
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > The output, however, includes an entire table for the image:
    > > >
    > > >

    > > >
    > > >
    > > >
    > src="/cgi-bin/get_img?NrArticle=2&NrImage=1"
    > >
    > > > alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5>
    RDFW bunker

    > > >
    > > > 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

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