Sign in

Questions about Publii

#1856
Verhoeckx

@Ajeet:

Hello Ajeet,

What did you do to add an extra menu to the Editorial theme?

I did the following:

a) I added the “aboutMaurice”: “About Maurice” to the JSON-object “menus”.

The complete code is:
“menus”: {
“mainMenu”: “Main menu”,
“aboutMaurice”: “About Maurice”
}

 

b) In a partial I wrote the following code

{{#if menus.aboutMaurice}}
<p>Menu aboutMaurice exists </p>
{{else}}
<p>Menu aboutMaurice doesn’t exist</p>
{{/if}}

 

But when I run the above I get the message that the menu aboutMaurice doesn’t exits.
Is there still something else I have to do?

Thanks in advance,

Verhoeckx