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 <[email protected] <javascript:>> 
> 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 <[email protected]> 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 <[email protected]> 
>>>>>> 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 [email protected].
>>>>>>> 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 [email protected].
>>>> 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 [email protected] <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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to