Skip to content

Instantly share code, notes, and snippets.

@pmourelle
Created April 8, 2015 20:21
Show Gist options
  • Save pmourelle/93c34d1e80adc4dec73a to your computer and use it in GitHub Desktop.
Save pmourelle/93c34d1e80adc4dec73a to your computer and use it in GitHub Desktop.
ideas sobre globalnav.json customizado para region
admin
REGIONS
-------
1. default/none
2. US
3. IN
4. AUS
5. UK
...
N. AR
JSON 4 REGIONS (lista de jsons para regiones)
--------------
1 - DEFAULT / none
[+]
al crear una nueva / editar una existente ->
[nombre/codigo region v]
SECCIONES VISIBLE
[item 1 region default v] []
[item 2 region default v] []
[item 3 region default v] []
...
[item N region default v] []
[+]
[INDIA - daily_news]
[DEFAULT - daily_news]
al hacer save():
default genera --> global-nav.json, draft_global-nav.json
INDIA genera --> global-nav_IN.json, draft_global-nav_IN.json
UK genera --> global-nav_UK.json, draft_global-nav_UK.json
SECCIONES 4 REGIONS (lista de secciones)
-------------------
[+]
al crear/editar ->
[region v] (**no editable una vez creado)
[id] (nombre) por ejemplo "news". (**debe coincidir con el id del default que se reemplace, en caso de querer hacerlo)
[titulo]
[textarea con el json (incluye id, title, url, y todo el dropdown )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment