[campsite-support] Multiple publications on one site
  • Hi

    Been playing around a bit with campsite, and it looks really good.

    But I have one problem. I'm supposed to set up a site for an
    organisation that has two papers, one weekly and one monthly magazine.
    The domain name is the name of the organisation. But when I try to
    create both publications under it campsite complains:
    "The publication could not be added. Please check if another publication
    with the same name or the same site name does not already exist."

    Is this a limitation in campsite. If so, can it be changed?


    Also, here's the strings for Swedish language:
    Name: Swedish
    Native name: Svenska
    Code: sv
    Please enter the translation for month names.
    January: Januari
    February: Februari
    March: Mars
    April: April
    May: Maj
    June: Juni
    July: Juli
    August: Augusti
    September: September
    October: Oktober
    November: November
    December: December
    Please enter the translation for week day names.
    Sunday: S
  • 8 Comments sorted by
  • You need to use different virtual hostnames or to put a publication as a
    subfolder of the main site.
    If you choose the same destination for both, campsite is unable to
    recognize, what publication you wish to access.

    Ondra

    On Wed, 2006-02-15 at 13:28 +0100, Erik Dal
  • Problem is that I would like to have a mix of articles from both papers
    on the frontpage. I suppose a workaround would be to name the issues
    like "Publication issuenumber" instead of just "issuenumber". But I was
    wondering if there was any cleaner way.
    Also would such a mix have any unforeseen consequences? It would make it
    impossible to search in just one of the publications of course.

    Ondra Koutek wrote:
    > You need to use different virtual hostnames or to put a publication as a
    > subfolder of the main site.
    > If you choose the same destination for both, campsite is unable to
    > recognize, what publication you wish to access.
    >
    > Ondra
    >
    > On Wed, 2006-02-15 at 13:28 +0100, Erik Dal
  • That is not problem. Template language allows you to print articles from
    any publication of one instance.
    I am sure, you can create a homepage listing latest articles from one
    publication and latest articles from another publication.
    What I am not sure is listing latest articles without specifiing
    publication. You need to try that, but it might work.
    Ondra

    On Thu, 2006-02-16 at 22:41 +0100, Erik Dal
  • Hi Erik,

    It is possible to display articles from a different Campsite publication so you don't have to create issues with names like "Publication issuenumber". You can change the current publication in the template using the Publication statement: see http://code.campware.org/manuals/campsite/2.4/index.php?id=66

    Regards,
    Mugur

    Erik Dal�n wrote: Problem is that I would like to have a mix of articles from both papers
    on the frontpage. I suppose a workaround would be to name the issues
    like "Publication issuenumber" instead of just "issuenumber". But I was
    wondering if there was any cleaner way.
    Also would such a mix have any unforeseen consequences? It would make it
    impossible to search in just one of the publications of course.

    Ondra Koutek wrote:
    > You need to use different virtual hostnames or to put a publication as a
    > subfolder of the main site.
    > If you choose the same destination for both, campsite is unable to
    > recognize, what publication you wish to access.
    >
    > Ondra
    >
    > On Wed, 2006-02-15 at 13:28 +0100, Erik Dal�n wrote:
    >
    >>Hi
    >>
    >>Been playing around a bit with campsite, and it looks really good.
    >>
    >>But I have one problem. I'm supposed to set up a site for an
    >>organisation that has two papers, one weekly and one monthly magazine.
    >>The domain name is the name of the organisation. But when I try to
    >>create both publications under it campsite complains:
    >>"The publication could not be added. Please check if another publication
    >>with the same name or the same site name does not already exist."
    >>
    >>Is this a limitation in campsite. If so, can it be changed?
    >>

    --
    Erik Dal�n
    dalen@jpl.se
    http://www.jpl.se/~dalen/



    ---------------------------------
    Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
  • Thanks for the tip.

    I've now created one publication with the correct hostname and one with
    a faked one. then used on the frontpage to list
    articles from both. That works. However, I haven't figured out how to
    link to a article in the publication with faked hostname. I tried to use
    ?IdPublication=2 at the end of the url, but it didn't work.
    Any more tips?

    Mugur Rus wrote:
    > Hi Erik,
    >
    > It is possible to display articles from a different Campsite publication
    > so you don't have to create issues with names like "Publication
    > issuenumber". You can change the current publication in the template
    > using the Publication statement: see
    > http://code.campware.org/manuals/campsite/2.4/index.php?id=66
    >
    > Regards,
    > Mugur
    >
    > */Erik Dal�n /* wrote:
    >
    > Problem is that I would like to have a mix of articles from both papers
    > on the frontpage. I suppose a workaround would be to name the issues
    > like "Publication issuenumber" instead of just "issuenumber". But I was
    > wondering if there was any cleaner way.
    > Also would such a mix have any unforeseen consequences? It would make it
    > impossible to search in just one of the publications of course.
    >
    > Ondra Koutek wrote:
    > > You need to use different vi! rtual hostnames or to put a
    > publication as a
    > > subfolder of the main site.
    > > If you choose the same destination for both, campsite is unable to
    > > recognize, what publication you wish to access.
    > >
    > > Ondra
    > >
    > > On Wed, 2006-02-15 at 13:28 +0100, Erik Dal�n wrote:
    > >
    > >>Hi
    > >>
    > >>Been playing around a bit with campsite, and it looks really good.
    > >>
    > >>But I have one problem. I'm supposed to set up a site for an
    > >>organisation that has two papers, one weekly and one monthly magazine.
    > >>The domain name is the name of the organisation. But when I try to
    > >>create both publications under it campsite complains:
    > >>"The publication could not be added. Please check if another
    > publication
    > >>with the same name or the same site name does not already exist."
    > >>
    > >>Is this a limitation in campsite. If so, can it be changed?
    > >>
    >
    > --!
    > Erik Dal�n
    > dalen@jpl.se
    > http://www.jpl.se/~dalen/
    >
    >
    > ------------------------------------------------------------------------
    > Yahoo! Autos > ylc=X3oDMTEzcGlrdGY5BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDMWF1dG9z/*http://autos.yahoo.com/index.html
    >>. Looking for a sweet ride? Get pricing, reviews, & more on new and
    > used cars.


    --
    Erik Dal
  • You must create a server alias for each publication in the apache virtual host configuration:


    ...
    ServerName my.server.name
    ServerAlias second.server.name <-- add this line
    ...


    The name "second.server.name" must be registered in DNS. After restarting apache configure your second (fake) publication and set the default site alias to "second.server.name". In the Campsite admin interface select Actions->Restart the template engine.

    Now you will be able to display the articles in the second (fake) publication using the URI statement (see http://code.campware.org/manuals/campsite/2.4/index.php?id=98)

    Hope this helps,
    Mugur

    Erik Dal�n wrote: Thanks for the tip.

    I've now created one publication with the correct hostname and one with
    a faked one. then used on the frontpage to list
    articles from both. That works. However, I haven't figured out how to
    link to a article in the publication with faked hostname. I tried to use
    ?IdPublication=2 at the end of the url, but it didn't work.
    Any more tips?

    Mugur Rus wrote:
    > Hi Erik,
    >
    > It is possible to display articles from a different Campsite publication
    > so you don't have to create issues with names like "Publication
    > issuenumber". You can change the current publication in the template
    > using the Publication statement: see
    > http://code.campware.org/manuals/campsite/2.4/index.php?id=66
    >
    > Regards,
    > Mugur
    >
    > */Erik Dal�n /* wrote:
    >
    > Problem is that I would like to have a mix of articles from both papers
    > on the frontpage. I suppose a workaround would be to name the issues
    > like "Publication issuenumber" instead of just "issuenumber". But I was
    > wondering if there was any cleaner way.
    > Also would such a mix have any unforeseen consequences? It would make it
    > impossible to search in just one of the publications of course.
    >
    > Ondra Koutek wrote:
    > > You need to use different vi! rtual hostnames or to put a
    > publication as a
    > > subfolder of the main site.
    > > If you choose the same destination for both, campsite is unable to
    > > recognize, what publication you wish to access.
    > >
    > > Ondra
    > >
    > > On Wed, 2006-02-15 at 13:28 +0100, Erik Dal�n wrote:
    > >
    > >>Hi
    > >>
    > >>Been playing around a bit with campsite, and it looks really good.
    > >>
    > >>But I have one problem. I'm supposed to set up a site for an
    > >>organisation that has two papers, one weekly and one monthly magazine.
    > >>The domain name is the name of the organisation. But when I try to
    > >>create both publications under it campsite complains:
    > >>"The publication could not be added. Please check if another
    > publication
    > >>with the same name or the same site name does not already exist."
    > >>
    > >>Is this a limitation in campsite. If so, can it be changed?
    > >>
    >
    > --!
    > Erik Dal�n
    > dalen@jpl.se
    > http://www.jpl.se/~dalen/
    >
    >
    > ------------------------------------------------------------------------
    > Yahoo! Autos > ylc=X3oDMTEzcGlrdGY5BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDMWF1dG9z/*http://autos.yahoo.com/index.html
    >>. Looking for a sweet ride? Get pricing, reviews, & more on new and
    > used cars.


    --
    Erik Dal�n
    dalen@jpl.se
    http://www.jpl.se/~dalen/



    ---------------------------------
    Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
  • Yeah, that's what I've done now. But what I was really after at first
    was for several publications to share just one hostname.

    Also had to change allt statements in the templates to
    http://<

    Could that be included as an option or argument to in coming
    releases?

    Mugur Rus wrote:
    > You must create a server alias for each publication in the apache
    > virtual host configuration:
    >
    >
    > ...
    > ServerName my.server.name
    > ServerAlias second.server.name <-- add this line
    > ...
    >

    >
    > The name "second.server.name" must be registered in DNS. After
    > restarting apache configure your second (fake) publication and set the
    > default site alias to "second.server.name". In the Campsite admin
    > interface select Actions->Restart the template engine.
    >
    > Now you will be able to display the articles in the second (fake)
    > publication using the URI statement (see
    > http://code.campware.org/manuals/campsite/2.4/index.php?id=98)
    >
    > Hope this helps,
    > Mugur
    >
    > */Erik Dal�n /* wrote:
    >
    > Thanks for the tip.
    >
    > I've now created one publication with the correct hostname and one with
    > a faked one. then used on the frontpage to list
    > articles from both. That works. However, I haven't figured out how to
    > link to a article in the publication with faked hostname. I tried to use
    > ?IdPublication=2 at the end of the url, but it didn't work.
    > Any more tips?
    >
    > Mugur Rus wrote:
    > > Hi Erik,
    > >
    > > It is possible to display articles from a different Campsite
    > publication
    > > so you don't have to create issues with names like "Publication
    > > issuenumber". You can change the current publication in the template
    > > using the Publication statement: see
    > > http://code.campware.org/manuals/campsite/2.4/index.php?id=66
    > >
    > > Regards,
    > > Mugur
    > >
    > > */Erik Dal�n /* wrote:
    > >
    > > Problem is that I would like to have a mix of articles from both
    > papers
    > > on the frontpage. I suppose a workaround would be to name the issues
    > > like "Publication issuenumber" instead of just "issuenumber". But
    > I was
    > > wondering if there was any cleaner way.
    > > Also would such a mix have any unforeseen consequences? It would
    > make it
    > > impossible to search in just one of the publications of course.
    > >
    > > Ondra Koutek wrote:
    > > > You need to use different vi! rtual hostnames or to put a
    > > publication as a
    > > > subfolder of the main site.
    > > > If you choose the same destination for both, campsite is unable to
    > > > recognize, what publication you wish to access.
    > > >
    > > > Ondra
    > > >
    > > > On Wed, 2006-02-15 at 13:28 +0100, Erik Dal�n wrote:
    > > >
    > > >>Hi
    > > >>
    > > >>Been playing around a bit with campsite, and it looks ! really good.
    > > >>
    > > >>But I have one problem. I'm supposed to set up a site for an
    > > >>organisation that has two papers, one weekly and one monthly
    > magazine.
    > > >>The domain name is the name of the organisation. But when I try to
    > > >>create both publications under it campsite complains:
    > > >>"The publication could not be added. Please check if another
    > > publication
    > > >>with the same name or the same site name does not already exist."
    > > >>
    > > >>Is this a limitation in campsite. If so, can it be changed?
    > > >>
    > >
    > > --!
    > > Erik Dal�n
    > > dalen@jpl.se
    > > http://www.jpl.se/~dalen/
    > >
    > >
    > >
    > ------------------------------------------------------------------------
    > > Yahoo! Autos >
    > ylc=X3oDMTEzcGlrdGY5BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDMWF1dG9z/*http://autos.yahoo.com/index.html
    > >>. Looking for a sweet ride? Get pricing, reviews, & more on new and
    > > used cars.
    >
    >
    > --
    > Erik Dal�n
    > dalen@jpl.se
    > http://www.jpl.se/~dalen/
    >
    >
    > ------------------------------------------------------------------------
    > Yahoo! Autos > ylc=X3oDMTEzcGlrdGY5BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDMWF1dG9z/*http://autos.yahoo.com/index.html
    >>. Looking for a sweet ride? Get pricing, reviews, & more on new and
    > used cars.


    --
    Erik Dal
  • Hi Erik,

    Sorry I forgot to mention "print publication site", fortunately you noticed it is needed. This can't be included in URI however, because the URI is the second part of the URL. In the following URL:
    http://www.site.org/en/first/article/

    the URI is: /en/first/article/

    But I can create a new statement: URL which will be the equivalent of:



    Regards,
    Mugur

    Erik Dal