Skip to content

Editable select and nav group 2.0#325

Closed
paulsponagl wants to merge 1 commit intolocomotivecms:2.0.0.rcfrom
paulsponagl:editable_select_and_nav_group_2.0
Closed

Editable select and nav group 2.0#325
paulsponagl wants to merge 1 commit intolocomotivecms:2.0.0.rcfrom
paulsponagl:editable_select_and_nav_group_2.0

Conversation

@paulsponagl
Copy link
Copy Markdown
Contributor

if one wants to have more than one menue on a page
the "nav group: 'editable_select_name:position'" can be used.

i introduced an editable select for this that is able to
provide this type of control-flow information, so Authors
or Designers can switch between fixed values through the UI.

Example:

Place this editable select within the template:

{% block menue %}{% editable_select menueposition, options: "top=TopMenue,bottom=Bottom Menue" %}top{% endeditable_select %}{% endblock %}

Now an Author gets an Select Dropdown with 'Top Menue' selected while
editing a page.

Use the following nav tags for top and bottom menues:

{% nav 'site', class: 'nav top', group: 'menueposition:top' ...  %}
{% nav 'site', class: 'nav bottom', group: 'menueposition:bottom' ...  %}

if one wants to have more than one menue on a page
the "nav group: 'editable_select_name:position'" can be used.

i introduced an editable select for this that is able to
provide this type of control-flow information, so Authors
or Designers can switch between fixed values through the UI.

Example:

Place this editable select within the template:

    {% block menue %}{% editable_select menueposition, options: "top=Top
Menue,bottom=Bottom Menue" %}top{% endeditable_select %}{% endblock %}

Now an Author gets an Select Dropdown with 'Top Menue' selected while
editing a page.

Use the following nav tags for top and bottom menues:

{% nav 'site', class: 'nav top', group: 'menueposition:top' ...  %}
{% nav 'site', class: 'nav bottom', group: 'menueposition:bottom' ...  %}
@did
Copy link
Copy Markdown
Member

did commented May 13, 2013

already implemented and it has been renamed editable_control. thanks Paul !

@did did closed this May 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants