List Info

Thread: Multiple publications on one site




Multiple publications on one site
user name
2006-02-22 13:53:40
Thanks for the tip.

I've now created one publication with the correct hostname
and one with
a faked one. then used <!** publication off> 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 <dalenjpl.se>/* 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
>     dalenjpl.se
>     http://www.jpl.se/~dalen/
> 
> 
>
------------------------------------------------------------
------------
> Yahoo! Autos <http://us.rd.yahoo.
com/evt=38381/
>
ylc=X3oDMTEzcGlrdGY5BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsD
MWF1dG9z/*http://autos.yahoo.
com/index.html
>>. Looking for a sweet ride? Get pricing, reviews,
& more on new and
> used cars.


-- 
Erik Dalén
dalenjpl.se
http://www.jpl.se/~dalen/
Multiple publications on one site
user name
2006-02-23 12:46:51
You must create a server alias for each publication in the apache virtual host configuration:

<VirtualHost my.server.name:80>
 &nbsp;  ...
   ; ServerName my.server.name
   ; ServerAlias second.server.name&nbsp; &nbsp; <-- add this line
 ; &nbsp; ...
</VirtualHost&gt;

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-&gt;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 <dalenjpl.se> 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
&gt; using the Publication statement: see
> http://code.campware.org/manuals/campsite/2.4/index.php?id=66
>;
> Regards,
&gt; Mugur
>
> */Erik Dal�n jpl.se>/* 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.
&gt;
> 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.
&gt; >
> > Ondra
> >
> > On Wed, 2006-02-15 at 13:28 +0100, Erik Dal�n wrote:
>; >
> >>Hi
> >>
&gt; >>Been playing around a bit with campsite, and it looks ! really good.
> >>
&gt; >>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
&gt; publication
> >>with the same name or the same site name does not already exist."
&gt; >>
&gt; >>Is this a limitation in campsite. If so, can it be changed?
&gt; >>
&gt;
> --!
> Erik Dal�n
&gt; dalenjpl.se
>; http://www.jpl.se/~dalen/
>
>
> ------------------------------------------------------------------------
>; Yahoo! Autos > ylc=X3oDMTEzcGlrdGY5BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDMWF1dG9z/*http://autos.yahoo.com/index.html
>&gt;. Looking for a sweet ride? Get pricing, reviews, & more on new and
> used cars.


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


Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
Multiple publications on one site
user name
2006-02-23 13:24:12
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 <!** uri > statements in the
templates to
http://<!** print publication
site><<!** uri>

Could that be included as an option or argument to <!**
uri > in coming
releases?

Mugur Rus wrote:
> You must create a server alias for each publication in
the apache
> virtual host configuration:
> 
> <VirtualHost my.server.name:80>
>     ...
>     ServerName my.server.name
>     ServerAlias second.server.name    <-- add this
line
>     ...
> </VirtualHost>
> 
> 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 <dalenjpl.se>/* 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
>     > dalenjpl.se
>     > http://www.jpl.se/~dalen/
>     >
>     >
>     >
>    
------------------------------------------------------------
------------
>     > Yahoo! Autos >
>    
ylc=X3oDMTEzcGlrdGY5BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsD
MWF1dG9z/*http://autos.yahoo.
com/index.html
>     >>. Looking for a sweet ride? Get pricing,
reviews, & more on new and
>     > used cars.
> 
> 
>     -- 
>     Erik Dal�n
>     dalenjpl.se
>     http://www.jpl.se/~dalen/
> 
> 
>
------------------------------------------------------------
------------
> Yahoo! Autos <http://us.rd.yahoo.
com/evt=38381/
>
ylc=X3oDMTEzcGlrdGY5BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsD
MWF1dG9z/*http://autos.yahoo.
com/index.html
>>. Looking for a sweet ride? Get pricing, reviews,
& more on new and
> used cars.


-- 
Erik Dalén
dalenjpl.se
http://www.jpl.se/~dalen/
Multiple publications on one site
user name
2006-02-23 13:59:20
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:

<!** print publication site>&lt;!** uri>

Regards,
Mugur

Erik Dalén <dalenjpl.se> wrote:
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-&gt;Restart the template engine.
&gt;
> 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)
&gt;
> Hope this helps,
>; Mugur
>
> */Erik Dal�n jpl.se>/* 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
&gt; publication
> > so you don't have to create issues with names like "Publication
> > issuenumber". You can change the current publication in the template
&gt; > using the Publication statement: see
> > http://code.campware.org/manuals/campsite/2.4/index.php?id=66
>; >
> > Regards,
&gt; > 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.
&gt; >
> > 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.
&gt; > >
> > > Ondra
> > >
> > > On Wed, 2006-02-15 at 13:28 +0100, Erik Dal�n wrote:
>; > >
> > >>Hi
> > >>
&gt; > >>Been playing around a bit with campsite, and it looks ! really good.
> > >>
&gt; > >>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
&gt; 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
&gt; > publication
> > >>with the same name or the same site name does not already exist."
&gt; > >>
&gt; > >>Is this a limitation in campsite. If s! o, can it be changed?
&gt; > >>
&gt; >
> > --!
> > Erik Dal�n
&gt; > dalenjpl.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
&gt; dalenjpl.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
dalenjpl.se
http://www.jpl.se/~dalen/
jpl.se>


Yahoo! Mail
Use Photomail to share photos without annoying attachments.
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )