Re: [mezzanine-users] Placeholders as Menu Items.

2016-04-02 Thread Eduardo Rivas
Hi Peter.

I've done this before like so:

- Create a top level Link page (this would be Galleries) . Set the slug to
one of the child pages (for example, Gallery 1).

- Add as many child pages as you like.

You can stop there, and users will always be redirected to a child page,
the top level page is inaccesible. However, something I like to do is
modify the drop-down menu template to remove the  tag from all top level
pages that have children. This makes them completely inaccessible and they
work as pure containers.

-- 
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.


[mezzanine-users] How to change the Mezzanine url based on app

2016-04-02 Thread Marcus Lalić
I do not know how to display different URL based on app/theme. For example 
this is set to the *project_name/urls.py*:

url('^$', direct_to_template, {'template': 'index.html'}, name='home'),

So how do I set this one below to a specific app/theme:

url("^$", mezzanine.pages.views.page, {"slug": "/"}, name="home"),

Thanks in advance guys!

-- 
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.


[mezzanine-users] Submission form with AJAX

2016-04-02 Thread Flaverton Rodrigues Rosa

Hello,
My name is Flaverton and I am porting a theme for the Mezzanine, this work 
is an social project and the Mezzanine it was what met the content 
management needs that they need for the site. As I have worked extensively 
with Python in recent months it is also a good way to be able to help with 
maintenance on the site if they need.

The theme that i am porting html for Mezzanine has 2 problems, one of them 
is what I've been reporting here and ask for your help.

The idea is to have a single page where the bottom of the page there will 
be a form that will send the data via AJAX, my problem is the route / happy 
/ contact which is always displayed the error "not found"

The form in question is shown in this gist along with the theme 
configuration file (read that to create a theme would have to create a 
module in the theme of the installation root and insert my module / topic 
in INSTALED_APPS).

index.html (template, only contact part)
urls.py
views.py

https://gist.github.com/flavertonrr/1cbf19388690fb4310fb6096c816c22e

And what was included in the Mezzanine urls.py

https://gist.github.com/flavertonrr/a807d7ef85636dcc3599230d23a652e1

I apologize for the low level of my English.

The original text is in Portuguese and can be read in this gist

https://gist.github.com/flavertonrr/a12aca9ebd8de59d8316ffb385753908

Thank you very much,
Flaverton

-- 
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.