RE: [mezzanine-users] Re: Multiple Blogs

2019-06-03 Thread Eduardo Rivas
Hi Jesper.

That’s correct, you’ll need to copy the entire mezzanine.blog folder. You’ll 
also need to replace all mentions of it with your own version on settings.py 
and urls.py.

You’re essentially creating your own blog app to replace the one that ships 
with Mezzanine.

From: Jesper Joachim Sørensen
Sent: Sunday, June 2, 2019 3:44 AM
To: Mezzanine Users
Subject: Re: [mezzanine-users] Re: Multiple Blogs

Hey Eduardo, and thanks for your inputs on multiple blogs. I am currently 
creating a multiple blog for a primary schcool with a blog for each grade. I am 
following your suggestions on the steps to follow in mezzanine.
However the first point about copying all the the contents from mezzanine.blog 
made me a little confused. Normally I just copy one a file at a time to my blog 
app (eg. the blog_post_deatil.html) and then modifies this file, and then it 
will overwrite the blog_post_deatil.html in mezzanine.blog. 
However for the models I think it's different. I tried to copy the content of 
the models.py from mezzanine.blog to my blog app (same procedure as with the 
blog_post_deatil.html) but that throws me an error (something about a 
duplicate). So when you say copying all the contents from mezzanine.blog, do 
you also mean the models.py and how without getting an error?
Kind regards, Jesper

fredag den 10. august 2018 kl. 20.18.27 UTC+2 skrev Eduardo Rivas:
Sorry, don’t have enough time to write a code sample right now, but here is a 
more detailed description of the steps:
 
• Create a new application with all the contents copied from mezzanine.blog. 
Let’s call it multiblog. Add it to installed apps.
• In models.py add a new Blog model inheriting from Slugged (this will give it 
a title and slug). Register it in the admin so you can add Blog instances.
• Add foreign keys to this new Blog model to BlogPost and BlogCategory, so each 
post and category will belong to one blog. Create the required migrations. Make 
sure you expose the FK field in the admin so each post and category can choose 
to which Blog they will belong to.
• Rewrite urls.py to account for the Blog slug. For example: “/blog/some-post” 
becomes “/blog/blog-slug/some-post”. The regex for the URL should capture the 
blog slug so it will be passed to the view.
• Rewrite views.py to account for the new blog slug, and modify the querysets 
to only look into the posts / categories for a particular blog. Something like 
BlogPost.objects.filter(blog__slug=).
• Optionally rewrite the template-finding logic in the view to allow you to use 
different (per-blog) templates. For example, you could have the view load 
templates by looking inside folders that match the blog slug, like 
“templates/blog//blog_post_detail.html” and 
“templates/blog//blog_post_list.html”.
 
Hope that helps!
 
From: Amir
Sent: Thursday, August 9, 2018 7:48 AM
To: Mezzanine Users
Subject: [mezzanine-users] Re: Multiple Blogs
 
This suggestion of yours is remarkable Eduardo and I am craving to have 
multiple and separated blogs. I am a bit new to Django though, Could you 
elaborate more on the details please? I could open a topic on StackOverflow if 
you would prefer. This would be a huge help bro. 

On Tuesday, March 3, 2015 at 6:33:33 AM UTC+3:30, Eduardo Rivas wrote:
Hello Dennis. I actually needed to do this for a project a few years ago. As 
far a I know, Mezzanine doesn't support multiple blogs out of the box. What I 
did was create a "Blog" model, which simply had a slug and title, and then add 
it as FK to the standard BlogPost and BlogCategory models. After that, it's 
just a matter of updating urls and views to account for a blog_slug parameter 
to get the correct Blog instance. If you want to get fancy, you can create 
"base" templates for each blog. That way, you get unique blog posts, categories 
and templates for each blog. You'll also need to modify the queries made by the 
Admin to only return the subset of BlogPost's that match a Blog instance in 
particular.

Important note: this of course implies you're "forking" Mezzanine's blog app, 
so you will have to maintain it by yourself and install it in place of the 
default one.
-- 
You received this message because you are subscribed to a topic in the Google 
Groups "Mezzanine Users" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/mezzanine-users/LFhT0oryfEI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
mezzani...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
 
-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mezzanine-users/e0d65396-96ce-462b-acc7-796bed6d3088%40googlegroups.com.
For more options, 

Re: [mezzanine-users] Re: Multiple Blogs

2019-06-02 Thread Jesper Joachim Sørensen
Hey Eduardo, and thanks for your inputs on multiple blogs. I am currently 
creating a multiple blog for a primary schcool with a blog for each grade. 
I am following your suggestions on the steps to follow in mezzanine.
However the first point about copying all the the contents from 
mezzanine.blog made me a little confused. Normally I just copy one a file 
at a time to my blog app (eg. the blog_post_deatil.html) and then modifies 
this file, and then it will overwrite the blog_post_deatil.html in 
mezzanine.blog. 
However for the models I think it's different. I tried to copy the content 
of the models.py from mezzanine.blog to my blog app (same procedure as with 
the blog_post_deatil.html) but that throws me an error (something about a 
duplicate). So when you say copying all the contents from mezzanine.blog, 
do you also mean the models.py and how without getting an error?
Kind regards, Jesper

fredag den 10. august 2018 kl. 20.18.27 UTC+2 skrev Eduardo Rivas:
>
> Sorry, don’t have enough time to write a code sample right now, but here 
> is a more detailed description of the steps:
>
>  
>
>- Create a new application with all the contents copied from 
>mezzanine.blog. Let’s call it multiblog. Add it to installed apps.
>- In models.py add a new Blog model inheriting from Slugged (this will 
>give it a title and slug). Register it in the admin so you can add Blog 
>instances.
>- Add foreign keys to this new Blog model to BlogPost and 
>BlogCategory, so each post and category will belong to one blog. Create 
> the 
>required migrations. Make sure you expose the FK field in the admin so 
> each 
>post and category can choose to which Blog they will belong to.
>- Rewrite urls.py to account for the Blog slug. For example: 
>“/blog/some-post” becomes “/blog/blog-slug/some-post”. The regex for the 
>URL should capture the blog slug so it will be passed to the view.
>- Rewrite views.py to account for the new blog slug, and modify the 
>querysets to only look into the posts / categories for a particular blog. 
>Something like BlogPost.objects.filter(blog__slug=).
>- Optionally rewrite the template-finding logic in the view to allow 
>you to use different (per-blog) templates. For example, you could have the 
>view load templates by looking inside folders that match the blog slug, 
>like “templates/blog//blog_post_detail.html” and 
>“templates/blog//blog_post_list.html”.
>
>  
>
> Hope that helps!
>
>  
>
> *From: *Amir 
> *Sent: *Thursday, August 9, 2018 7:48 AM
> *To: *Mezzanine Users 
> *Subject: *[mezzanine-users] Re: Multiple Blogs
>
>  
>
> This suggestion of yours is remarkable Eduardo and I am craving to have 
> multiple and separated blogs. I am a bit new to Django though, Could you 
> elaborate more on the details please? I could open a topic on 
> StackOverflow if you would prefer. This would be a huge help bro. 
>
> On Tuesday, March 3, 2015 at 6:33:33 AM UTC+3:30, Eduardo Rivas wrote:
>
> Hello Dennis. I actually needed to do this for a project a few years ago. 
> As far a I know, Mezzanine doesn't support multiple blogs out of the box. 
> What I did was create a "Blog" model, which simply had a slug and title, 
> and then add it as FK to the standard BlogPost and BlogCategory models. 
> After that, it's just a matter of updating urls and views to account for a 
> blog_slug parameter to get the correct Blog instance. If you want to get 
> fancy, you can create "base" templates for each blog. That way, you get 
> unique blog posts, categories and templates for each blog. You'll also need 
> to modify the queries made by the Admin to only return the subset of 
> BlogPost's that match a Blog instance in particular.
>
> Important note: this of course implies you're "forking" Mezzanine's blog 
> app, so you will have to maintain it by yourself and install it in place of 
> the default one.
>
> -- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "Mezzanine Users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/mezzanine-users/LFhT0oryfEI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> mezzani...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mezzanine-users/e0d65396-96ce-462b-acc7-796bed6d3088%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [mezzanine-users] Re: Multiple Blogs

2018-08-10 Thread Eduardo Rivas
Sorry, don’t have enough time to write a code sample right now, but here is a 
more detailed description of the steps:

- Create a new application with all the contents copied from mezzanine.blog. 
Let’s call it multiblog. Add it to installed apps.
- In models.py add a new Blog model inheriting from Slugged (this will give it 
a title and slug). Register it in the admin so you can add Blog instances.
- Add foreign keys to this new Blog model to BlogPost and BlogCategory, so each 
post and category will belong to one blog. Create the required migrations. Make 
sure you expose the FK field in the admin so each post and category can choose 
to which Blog they will belong to.
- Rewrite urls.py to account for the Blog slug. For example: “/blog/some-post” 
becomes “/blog/blog-slug/some-post”. The regex for the URL should capture the 
blog slug so it will be passed to the view.
- Rewrite views.py to account for the new blog slug, and modify the querysets 
to only look into the posts / categories for a particular blog. Something like 
BlogPost.objects.filter(blog__slug=).
- Optionally rewrite the template-finding logic in the view to allow you to use 
different (per-blog) templates. For example, you could have the view load 
templates by looking inside folders that match the blog slug, like 
“templates/blog//blog_post_detail.html” and 
“templates/blog//blog_post_list.html”.

Hope that helps!

From: Amir
Sent: Thursday, August 9, 2018 7:48 AM
To: Mezzanine Users
Subject: [mezzanine-users] Re: Multiple Blogs

This suggestion of yours is remarkable Eduardo and I am craving to have 
multiple and separated blogs. I am a bit new to Django though, Could you 
elaborate more on the details please? I could open a topic on StackOverflow if 
you would prefer. This would be a huge help bro. 

On Tuesday, March 3, 2015 at 6:33:33 AM UTC+3:30, Eduardo Rivas wrote:
Hello Dennis. I actually needed to do this for a project a few years ago. As 
far a I know, Mezzanine doesn't support multiple blogs out of the box. What I 
did was create a "Blog" model, which simply had a slug and title, and then add 
it as FK to the standard BlogPost and BlogCategory models. After that, it's 
just a matter of updating urls and views to account for a blog_slug parameter 
to get the correct Blog instance. If you want to get fancy, you can create 
"base" templates for each blog. That way, you get unique blog posts, categories 
and templates for each blog. You'll also need to modify the queries made by the 
Admin to only return the subset of BlogPost's that match a Blog instance in 
particular.

Important note: this of course implies you're "forking" Mezzanine's blog app, 
so you will have to maintain it by yourself and install it in place of the 
default one.
-- 
You received this message because you are subscribed to a topic in the Google 
Groups "Mezzanine Users" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/mezzanine-users/LFhT0oryfEI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Multiple Blogs

2017-01-06 Thread userblaz
actually in some cases category.title worked and category.slug did not... 

do you guys know if is possible to filter blog_recent_posts with the 
category? for example to display only the recent posts of that particular 
category..

On Wednesday, January 4, 2017 at 10:16:50 PM UTC+1, Eduardo Rivas wrote:
>
> It looks like Mezzanine will derive a template name from the category 
> slug, allowing you to create one template per category. Just an alternative 
> to the in-template conditional.
>
>
> https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/blog/views.py#L46-L47
>
> On Wednesday, January 4, 2017 at 3:11:59 PM UTC-6, Kenneth Bolton wrote:
>>
>> category.slug might be better for you!
>>
>> On Wed, Jan 4, 2017 at 4:00 PM, userblaz  wrote:
>>
>>> thanks I managed with {% if category.title == 'blog' %}..
>>>
>>> On Tuesday, January 3, 2017 at 9:47:41 PM UTC+1, Kenneth Bolton wrote:


 On Tue, Jan 3, 2017 at 2:30 PM, userblaz  wrote:
 >
 > I went through Josh's blog and it was very helpful with the restyle 
 of my site but i didn't see
 > any section explaining how to have different stylings for 2 or more 
 different blogs. the base 
 > template is the same, I want to have a different base.html template on
 > http://example.com/posts/category/blog/ than 
 http://example.com/posts/category/news/...

 The crux of one solution is to add something appropriate to your 
 blog_post_list.html and blog_post_detail.html, perhaps in `extra_head` 
 block, that has your custom CSS in it with template `if` blocks to check 
 the category.

>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Mezzanine Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to mezzanine-use...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Multiple Blogs

2017-01-04 Thread Eduardo Rivas
It looks like Mezzanine will derive a template name from the category slug, 
allowing you to create one template per category. Just an alternative to 
the in-template conditional.

https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/blog/views.py#L46-L47

On Wednesday, January 4, 2017 at 3:11:59 PM UTC-6, Kenneth Bolton wrote:
>
> category.slug might be better for you!
>
> On Wed, Jan 4, 2017 at 4:00 PM, userblaz  
> wrote:
>
>> thanks I managed with {% if category.title == 'blog' %}..
>>
>> On Tuesday, January 3, 2017 at 9:47:41 PM UTC+1, Kenneth Bolton wrote:
>>>
>>>
>>> On Tue, Jan 3, 2017 at 2:30 PM, userblaz  wrote:
>>> >
>>> > I went through Josh's blog and it was very helpful with the restyle of 
>>> my site but i didn't see
>>> > any section explaining how to have different stylings for 2 or more 
>>> different blogs. the base 
>>> > template is the same, I want to have a different base.html template on
>>> > http://example.com/posts/category/blog/ than 
>>> http://example.com/posts/category/news/...
>>>
>>> The crux of one solution is to add something appropriate to your 
>>> blog_post_list.html and blog_post_detail.html, perhaps in `extra_head` 
>>> block, that has your custom CSS in it with template `if` blocks to check 
>>> the category.
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to mezzanine-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Multiple Blogs

2017-01-04 Thread Ken Bolton
category.slug might be better for you!

On Wed, Jan 4, 2017 at 4:00 PM, userblaz  wrote:

> thanks I managed with {% if category.title == 'blog' %}..
>
> On Tuesday, January 3, 2017 at 9:47:41 PM UTC+1, Kenneth Bolton wrote:
>>
>>
>> On Tue, Jan 3, 2017 at 2:30 PM, userblaz  wrote:
>> >
>> > I went through Josh's blog and it was very helpful with the restyle of
>> my site but i didn't see
>> > any section explaining how to have different stylings for 2 or more
>> different blogs. the base
>> > template is the same, I want to have a different base.html template on
>> > http://example.com/posts/category/blog/ than
>> http://example.com/posts/category/news/...
>>
>> The crux of one solution is to add something appropriate to your
>> blog_post_list.html and blog_post_detail.html, perhaps in `extra_head`
>> block, that has your custom CSS in it with template `if` blocks to check
>> the category.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Multiple Blogs

2017-01-03 Thread Ken Bolton
On Tue, Jan 3, 2017 at 2:30 PM, userblaz  wrote:
>
> I went through Josh's blog and it was very helpful with the restyle of my
site but i didn't see
> any section explaining how to have different stylings for 2 or more
different blogs. the base
> template is the same, I want to have a different base.html template on
> http://example.com/posts/category/blog/ than
http://example.com/posts/category/news/...

The crux of one solution is to add something appropriate to your
blog_post_list.html and blog_post_detail.html, perhaps in `extra_head`
block, that has your custom CSS in it with template `if` blocks to check
the category.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Multiple Blogs

2017-01-03 Thread userblaz
I went through Josh's blog and it was very helpful with the restyle of my 
site but i didn't see any section explaining how to have different stylings 
for 2 or more different blogs. the base template is the same, I want to 
have a different base.html template on 
http://example.com/posts/category/blog/ than 
http://example.com/posts/category/news/...

On Tuesday, January 3, 2017 at 6:33:20 PM UTC+1, Kenneth Bolton wrote:
>
> What have you tried so far? Josh's blog on styling mezzanine is where I 
> would start.
>
> -ken
>
> On Tue, Jan 3, 2017 at 9:54 AM, userblaz  
> wrote:
>
>> Hi Kenneth,
>>
>> can you suggest how can I style differently the 2 blogs if I want to use 
>> Josh's approach?
>>
>> http://example.com/posts/category/blog/
>>
>> and your news at:
>> http://example.com/posts/category/news/
>>
>> On Friday, October 7, 2016 at 4:16:33 PM UTC+2, Kenneth Bolton wrote:
>>>
>>> Hi,
>>>
>>> Both ways mentioned in this thread are pretty standard Mezzanine Way 
>>> approaches to multiple blogs with separate styles. Josh's suggestion is a 
>>> good place to start and could be refactored to become Eduardo's suggestion.
>>>
>>> On Fri, Oct 7, 2016 at 2:36 AM, userblaz  wrote:
>>>
 Hi Dennis,

 wandering how it is working out with the categories as different 
 blogs.. is it working fine? are you able to style differently the posts 
 from separate categories? Cheers


 On Monday, March 9, 2015 at 3:32:54 PM UTC+1, Dennis Kioko wrote:
>
> I decided to go with Josh's suggestion as it is easier when it comes 
> to maintenance (and of course now that the client wanted it yesterday :-) 
> ). Also found the "Category_Link" extensions that makes it easy to 
> maintain 
> different blog categories resulting in "news" and "blog" pages. 
>
> On Wednesday, 4 March 2015 18:50:03 UTC+3, Josh Cartmell wrote:
>>
>> Dennis, another option would be to just use Blog Categories for your 
>> different "blogs"
>>
>> You could also change the Blog slug to something more generic like 
>> "posts".  Then you could have your blog at:
>> http://example.com/posts/category/blog/
>>
>> and your news at:
>> http://example.com/posts/category/news/
>>
>> On Mon, Mar 2, 2015 at 10:03 PM, Eduardo Rivas  
>> wrote:
>>
>>> Hello Dennis. I actually needed to do this for a project a few years 
>>> ago. As far a I know, Mezzanine doesn't support multiple blogs out of 
>>> the 
>>> box. What I did was create a "Blog" model, which simply had a slug and 
>>> title, and then add it as FK to the standard BlogPost and BlogCategory 
>>> models. After that, it's just a matter of updating urls and views to 
>>> account for a blog_slug parameter to get the correct Blog instance. If 
>>> you 
>>> want to get fancy, you can create "base" templates for each blog. That 
>>> way, 
>>> you get unique blog posts, categories and templates for each blog. 
>>> You'll 
>>> also need to modify the queries made by the Admin to only return the 
>>> subset 
>>> of BlogPost's that match a Blog instance in particular.
>>>
>>> Important note: this of course implies you're "forking" Mezzanine's 
>>> blog app, so you will have to maintain it by yourself and install it in 
>>> place of the default one.
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Mezzanine Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, 
>>> send an email to mezzanine-use...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> -- 
 You received this message because you are subscribed to the Google 
 Groups "Mezzanine Users" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to mezzanine-use...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to mezzanine-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Multiple Blogs

2017-01-03 Thread Ken Bolton
What have you tried so far? Josh's blog on styling mezzanine is where I
would start.

-ken

On Tue, Jan 3, 2017 at 9:54 AM, userblaz  wrote:

> Hi Kenneth,
>
> can you suggest how can I style differently the 2 blogs if I want to use
> Josh's approach?
>
> http://example.com/posts/category/blog/
>
> and your news at:
> http://example.com/posts/category/news/
>
> On Friday, October 7, 2016 at 4:16:33 PM UTC+2, Kenneth Bolton wrote:
>>
>> Hi,
>>
>> Both ways mentioned in this thread are pretty standard Mezzanine Way
>> approaches to multiple blogs with separate styles. Josh's suggestion is a
>> good place to start and could be refactored to become Eduardo's suggestion.
>>
>> On Fri, Oct 7, 2016 at 2:36 AM, userblaz  wrote:
>>
>>> Hi Dennis,
>>>
>>> wandering how it is working out with the categories as different blogs..
>>> is it working fine? are you able to style differently the posts from
>>> separate categories? Cheers
>>>
>>>
>>> On Monday, March 9, 2015 at 3:32:54 PM UTC+1, Dennis Kioko wrote:

 I decided to go with Josh's suggestion as it is easier when it comes to
 maintenance (and of course now that the client wanted it yesterday :-) ).
 Also found the "Category_Link" extensions that makes it easy to maintain
 different blog categories resulting in "news" and "blog" pages.

 On Wednesday, 4 March 2015 18:50:03 UTC+3, Josh Cartmell wrote:
>
> Dennis, another option would be to just use Blog Categories for your
> different "blogs"
>
> You could also change the Blog slug to something more generic like
> "posts".  Then you could have your blog at:
> http://example.com/posts/category/blog/
>
> and your news at:
> http://example.com/posts/category/news/
>
> On Mon, Mar 2, 2015 at 10:03 PM, Eduardo Rivas 
> wrote:
>
>> Hello Dennis. I actually needed to do this for a project a few years
>> ago. As far a I know, Mezzanine doesn't support multiple blogs out of the
>> box. What I did was create a "Blog" model, which simply had a slug and
>> title, and then add it as FK to the standard BlogPost and BlogCategory
>> models. After that, it's just a matter of updating urls and views to
>> account for a blog_slug parameter to get the correct Blog instance. If 
>> you
>> want to get fancy, you can create "base" templates for each blog. That 
>> way,
>> you get unique blog posts, categories and templates for each blog. You'll
>> also need to modify the queries made by the Admin to only return the 
>> subset
>> of BlogPost's that match a Blog instance in particular.
>>
>> Important note: this of course implies you're "forking" Mezzanine's
>> blog app, so you will have to maintain it by yourself and install it in
>> place of the default one.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to mezzanine-use...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Mezzanine Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to mezzanine-use...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Multiple Blogs

2017-01-03 Thread userblaz
Hi Kenneth,

can you suggest how can I style differently the 2 blogs if I want to use 
Josh's approach?

http://example.com/posts/category/blog/

and your news at:
http://example.com/posts/category/news/

On Friday, October 7, 2016 at 4:16:33 PM UTC+2, Kenneth Bolton wrote:
>
> Hi,
>
> Both ways mentioned in this thread are pretty standard Mezzanine Way 
> approaches to multiple blogs with separate styles. Josh's suggestion is a 
> good place to start and could be refactored to become Eduardo's suggestion.
>
> On Fri, Oct 7, 2016 at 2:36 AM, userblaz  
> wrote:
>
>> Hi Dennis,
>>
>> wandering how it is working out with the categories as different blogs.. 
>> is it working fine? are you able to style differently the posts from 
>> separate categories? Cheers
>>
>>
>> On Monday, March 9, 2015 at 3:32:54 PM UTC+1, Dennis Kioko wrote:
>>>
>>> I decided to go with Josh's suggestion as it is easier when it comes to 
>>> maintenance (and of course now that the client wanted it yesterday :-) ). 
>>> Also found the "Category_Link" extensions that makes it easy to maintain 
>>> different blog categories resulting in "news" and "blog" pages. 
>>>
>>> On Wednesday, 4 March 2015 18:50:03 UTC+3, Josh Cartmell wrote:

 Dennis, another option would be to just use Blog Categories for your 
 different "blogs"

 You could also change the Blog slug to something more generic like 
 "posts".  Then you could have your blog at:
 http://example.com/posts/category/blog/

 and your news at:
 http://example.com/posts/category/news/

 On Mon, Mar 2, 2015 at 10:03 PM, Eduardo Rivas  
 wrote:

> Hello Dennis. I actually needed to do this for a project a few years 
> ago. As far a I know, Mezzanine doesn't support multiple blogs out of the 
> box. What I did was create a "Blog" model, which simply had a slug and 
> title, and then add it as FK to the standard BlogPost and BlogCategory 
> models. After that, it's just a matter of updating urls and views to 
> account for a blog_slug parameter to get the correct Blog instance. If 
> you 
> want to get fancy, you can create "base" templates for each blog. That 
> way, 
> you get unique blog posts, categories and templates for each blog. You'll 
> also need to modify the queries made by the Admin to only return the 
> subset 
> of BlogPost's that match a Blog instance in particular.
>
> Important note: this of course implies you're "forking" Mezzanine's 
> blog app, so you will have to maintain it by yourself and install it in 
> place of the default one.
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to mezzanine-use...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

 -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to mezzanine-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Multiple Blogs

2016-10-07 Thread Ken Bolton
Hi,

Both ways mentioned in this thread are pretty standard Mezzanine Way
approaches to multiple blogs with separate styles. Josh's suggestion is a
good place to start and could be refactored to become Eduardo's suggestion.

On Fri, Oct 7, 2016 at 2:36 AM, userblaz  wrote:

> Hi Dennis,
>
> wandering how it is working out with the categories as different blogs..
> is it working fine? are you able to style differently the posts from
> separate categories? Cheers
>
>
> On Monday, March 9, 2015 at 3:32:54 PM UTC+1, Dennis Kioko wrote:
>>
>> I decided to go with Josh's suggestion as it is easier when it comes to
>> maintenance (and of course now that the client wanted it yesterday :-) ).
>> Also found the "Category_Link" extensions that makes it easy to maintain
>> different blog categories resulting in "news" and "blog" pages.
>>
>> On Wednesday, 4 March 2015 18:50:03 UTC+3, Josh Cartmell wrote:
>>>
>>> Dennis, another option would be to just use Blog Categories for your
>>> different "blogs"
>>>
>>> You could also change the Blog slug to something more generic like
>>> "posts".  Then you could have your blog at:
>>> http://example.com/posts/category/blog/
>>>
>>> and your news at:
>>> http://example.com/posts/category/news/
>>>
>>> On Mon, Mar 2, 2015 at 10:03 PM, Eduardo Rivas 
>>> wrote:
>>>
 Hello Dennis. I actually needed to do this for a project a few years
 ago. As far a I know, Mezzanine doesn't support multiple blogs out of the
 box. What I did was create a "Blog" model, which simply had a slug and
 title, and then add it as FK to the standard BlogPost and BlogCategory
 models. After that, it's just a matter of updating urls and views to
 account for a blog_slug parameter to get the correct Blog instance. If you
 want to get fancy, you can create "base" templates for each blog. That way,
 you get unique blog posts, categories and templates for each blog. You'll
 also need to modify the queries made by the Admin to only return the subset
 of BlogPost's that match a Blog instance in particular.

 Important note: this of course implies you're "forking" Mezzanine's
 blog app, so you will have to maintain it by yourself and install it in
 place of the default one.

 --
 You received this message because you are subscribed to the Google
 Groups "Mezzanine Users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to mezzanine-use...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Multiple Blogs

2016-10-07 Thread userblaz
Hi Dennis,

wandering how it is working out with the categories as different blogs.. is 
it working fine? are you able to style differently the posts from separate 
categories? Cheers

On Monday, March 9, 2015 at 3:32:54 PM UTC+1, Dennis Kioko wrote:
>
> I decided to go with Josh's suggestion as it is easier when it comes to 
> maintenance (and of course now that the client wanted it yesterday :-) ). 
> Also found the "Category_Link" extensions that makes it easy to maintain 
> different blog categories resulting in "news" and "blog" pages. 
>
> On Wednesday, 4 March 2015 18:50:03 UTC+3, Josh Cartmell wrote:
>>
>> Dennis, another option would be to just use Blog Categories for your 
>> different "blogs"
>>
>> You could also change the Blog slug to something more generic like 
>> "posts".  Then you could have your blog at:
>> http://example.com/posts/category/blog/
>>
>> and your news at:
>> http://example.com/posts/category/news/
>>
>> On Mon, Mar 2, 2015 at 10:03 PM, Eduardo Rivas  
>> wrote:
>>
>>> Hello Dennis. I actually needed to do this for a project a few years 
>>> ago. As far a I know, Mezzanine doesn't support multiple blogs out of the 
>>> box. What I did was create a "Blog" model, which simply had a slug and 
>>> title, and then add it as FK to the standard BlogPost and BlogCategory 
>>> models. After that, it's just a matter of updating urls and views to 
>>> account for a blog_slug parameter to get the correct Blog instance. If you 
>>> want to get fancy, you can create "base" templates for each blog. That way, 
>>> you get unique blog posts, categories and templates for each blog. You'll 
>>> also need to modify the queries made by the Admin to only return the subset 
>>> of BlogPost's that match a Blog instance in particular.
>>>
>>> Important note: this of course implies you're "forking" Mezzanine's blog 
>>> app, so you will have to maintain it by yourself and install it in place of 
>>> the default one.
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Mezzanine Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to mezzanine-use...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Multiple Blogs

2015-03-09 Thread Dennis Kioko
I decided to go with Josh's suggestion as it is easier when it comes to 
maintenance (and of course now that the client wanted it yesterday :-) ). 
Also found the Category_Link extensions that makes it easy to maintain 
different blog categories resulting in news and blog pages. 

On Wednesday, 4 March 2015 18:50:03 UTC+3, Josh Cartmell wrote:

 Dennis, another option would be to just use Blog Categories for your 
 different blogs

 You could also change the Blog slug to something more generic like 
 posts.  Then you could have your blog at:
 http://example.com/posts/category/blog/

 and your news at:
 http://example.com/posts/category/news/

 On Mon, Mar 2, 2015 at 10:03 PM, Eduardo Rivas jeriva...@gmail.com 
 javascript: wrote:

 Hello Dennis. I actually needed to do this for a project a few years ago. 
 As far a I know, Mezzanine doesn't support multiple blogs out of the box. 
 What I did was create a Blog model, which simply had a slug and title, 
 and then add it as FK to the standard BlogPost and BlogCategory models. 
 After that, it's just a matter of updating urls and views to account for a 
 blog_slug parameter to get the correct Blog instance. If you want to get 
 fancy, you can create base templates for each blog. That way, you get 
 unique blog posts, categories and templates for each blog. You'll also need 
 to modify the queries made by the Admin to only return the subset of 
 BlogPost's that match a Blog instance in particular.

 Important note: this of course implies you're forking Mezzanine's blog 
 app, so you will have to maintain it by yourself and install it in place of 
 the default one.

 -- 
 You received this message because you are subscribed to the Google Groups 
 Mezzanine Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to mezzanine-use...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups 
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: Multiple Blogs

2015-03-04 Thread Josh Cartmell
Dennis, another option would be to just use Blog Categories for your
different blogs

You could also change the Blog slug to something more generic like
posts.  Then you could have your blog at:
http://example.com/posts/category/blog/

and your news at:
http://example.com/posts/category/news/

On Mon, Mar 2, 2015 at 10:03 PM, Eduardo Rivas jerivasmel...@gmail.com
wrote:

 Hello Dennis. I actually needed to do this for a project a few years ago.
 As far a I know, Mezzanine doesn't support multiple blogs out of the box.
 What I did was create a Blog model, which simply had a slug and title,
 and then add it as FK to the standard BlogPost and BlogCategory models.
 After that, it's just a matter of updating urls and views to account for a
 blog_slug parameter to get the correct Blog instance. If you want to get
 fancy, you can create base templates for each blog. That way, you get
 unique blog posts, categories and templates for each blog. You'll also need
 to modify the queries made by the Admin to only return the subset of
 BlogPost's that match a Blog instance in particular.

 Important note: this of course implies you're forking Mezzanine's blog
 app, so you will have to maintain it by yourself and install it in place of
 the default one.

 --
 You received this message because you are subscribed to the Google Groups
 Mezzanine Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to mezzanine-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Mezzanine Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.