Yeah correct I found it. Thanks a lot ;)

On Monday, July 25, 2016 at 5:52:55 PM UTC+5:30, Ryne Everett wrote:
>
> I think the part you're asking about is:
>
> specify its URL (in the Meta Data section) as "/"
>>
>
> This does not refer to the `Meta` class, it refers to the `slug` field 
> which `Page` inherits from `mezzanine.core.models.Slugged`. That line could 
> likely be clarified a bit. 
>
> On Mon, Jul 25, 2016 at 3:25 AM, nikhil parmar <[email protected] 
> <javascript:>> wrote:
>
>> Hey guys,
>>
>> What does the above line signify ? # This pattern gives us a normal 
>>>> ``Page`` object, so that your
>>>
>>> # homepage can be managed via the page tree in the admin. If you
>>> # use this pattern, you'll need to create a page in the page tree,
>>> # and specify its URL (in the Meta Data section) as "/", which
>>> # is the value used below in the ``{"slug": "/"}`` part.
>>> # Also note that the normal rule of adding a custom
>>> # template per page with the template name using the page's slug
>>> # doesn't apply here, since we can't have a template called
>>> # "/.html" - so for this case, the template "pages/index.html"
>>> # should be used if you want to customize the homepage's template.
>>> # NOTE: Don't forget to import the view function too!
>>>
>>>
>>  
>>
>>> url("^$", "mezzanine.pages.views.page", {"slug": "/"}, name="home"),
>>>
>>>
>>
>> If I have a theme and its homepage is like -
>>
>> class HomePage(Page, RichText):
>>     '''
>>     A page representing the format of the home page
>>     '''
>>     heading = models.CharField(_("Heading"), max_length=200,
>>         default=_("Hello, world!"),
>>         help_text=_("The heading under the icon blurbs"))
>>     subheading = models.CharField(_("Subheading"), max_length=1000,
>>         default=_("This is a template for a simple marketing or "\
>>         "informational website. It includes a large callout called "\
>>         "a jumbotron and three supporting pieces of content. Use it "\
>>         "as a starting point to create something more unique."),
>>         help_text=_("The subheading just below the heading"))
>>     heading_button = models.CharField(_("Button text"), max_length=200,
>>         default=_("Learn more"))
>>     heading_link = models.CharField(_("Button link"), max_length=200,
>>         blank=True, default=_("#"),
>>         help_text=_("Optional, if provided the heading button will be 
>> visible."))
>>     iconbox_heading = models.CharField(_("Iconbox heading"), max_length=200,
>>         null=True, blank=True,
>>         help_text=_("Optional, if provided the iconbox heading will be 
>> visible."))
>>     content_heading = models.CharField(_("Content heading"), max_length=200,
>>         default=_("About us"))
>>
>>     class Meta:
>>         verbose_name = _("Home page")
>>
>>         verbose_name_plural = _("Home pages") 
>>
>>
>>
>> Do I need to declare the "/" url in the Meta class of homepage?
>>
>> -- 
>> 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