Open hachpai opened 8 years ago
The dropdown is only shown when needed. If you only have one view template it creates a new page immediately.
On aug. 18 2016, at 2:27 pm, hachpai notifications@github.com wrote:
Hello,
The menu dropdown doesn't appear for new pages.
<span data-dropdown=""> <a class="button button-primary" style="margin-right: 0"
data-target="#create_page_dropdown" href="/admin/pages/new?view_template=show">
New page </a> <div class="sliding-dropdown align-right"
id="create_page_dropdown">
<div class="slide-controls"> <a class="previous muted icon-only" href="#"> <i class="icon icon-chevron-left"></i> </a> <div class="active slide-title" data-
target="#slide-a-propos">A propos
<a class="next icon-only" href="#">
<i class="icon icon-chevron-right"></i>
</a>
</div>
<div class="active slide" id="slide-a-propos">
<p></p>
<p class="muted"></p>
<div class="slide-dots">
<div class="active slide-dot"></div>
</div>
<a class="button button-primary"
href="/admin/pages/new?view_template=about">
new A propos
</a>
</div>
</div>
</span>
If I use the link '/admin/pages/new?view_template=about' it works.
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
I've that in my theme:
theme.view_templates = [{
name: 'homepage',
title: 'Homepage',
page_parts: ['text']
},{
name: 'about',
title: 'A propos',
page_parts: ['text',"photo"]
}]
theme.custom_pages = [{
name: 'homepage',
title: 'Homepage',
deletable: false,
view_template: 'homepage'
},{
name: 'about',
title: 'A propros',
deletable: false,
view_template: 'about'
}]
If I go to http://0.0.0.0:3000/admin/pages/new?view_template=about
I get the form.
Menu dropdown is still not displayed.
There's just one template available. You shouldn't create multiple homepages. That's why it's not shown.
Groet,
Bram
On aug. 18 2016, at 2:56 pm, hachpai notifications@github.com wrote:
I've that in my theme:
theme.view_templates = [{ name: 'homepage', title: 'Homepage', page_parts: ['text'] },{ name: 'about', title: 'A propos', page_parts: ['text',"photo"] }] theme.custom_pages = [{ name: 'homepage', title: 'Homepage', deletable: false, view_template: 'homepage' },{ name: 'about', title: 'A propros', deletable: false, view_template: 'about' }]
If I go to
http://0.0.0.0:3000/admin/pages/new?view_template=about
I get the form.
Menu dropdown is still not displayed.You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
I've two templates no? homepage and about? What is the correct way to register my theme?
Thank you!
Hello,
The menu dropdown doesn't appear for new pages.
If I use the link '/admin/pages/new?view_template=about' it works.