informatica:dokuwiki2
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:dokuwiki2 [2010/01/11 23:10] – 192.168.1.30 | informatica:dokuwiki2 [2017/12/05 22:19] (current) – jose | ||
|---|---|---|---|
| Line 34: | Line 34: | ||
| Por defecto no existe. Si seguimos las instrucciones de ' | Por defecto no existe. Si seguimos las instrucciones de ' | ||
| + | El control de usuarios se hace desde el fichero local.php | ||
| + | Puede ser para un usuario | ||
| + | $conf[' | ||
| + | O para un grupo | ||
| + | $conf[' | ||
| + | Luego se modifica desde el módulo admin: | ||
| + | https:// | ||
| ===== Usuarios ===== | ===== Usuarios ===== | ||
| - | Se configuran automáticamente con los valores introducidos en 'http://url_wiki/install' | + | Para configurar |
| + | |||
| + | http://www.dokuwiki.org/acl | ||
| + | |||
| + | |||
| + | Es modificar los ficheros: | ||
| + | acl.auth.php.dist copiar a acl.auth.php \\ | ||
| + | users.auth.php.dist copiar a users.auth.php | ||
| + | |||
| + | Y después administrar desde el plugin Admin. Para acceder al plugin admin, modificamos el usuario admin del fichero users.auth.php y lo metemos en el grupo admin: | ||
| + | |||
| + | admin: | ||
| + | |||
| + | |||
| ===== Barra Lateral ===== | ===== Barra Lateral ===== | ||
| Line 77: | Line 98: | ||
| La linea: | La linea: | ||
| - | | + | < |
| + | overflow: | ||
| - | < | ||
| /* sidebar orientation and position */ | /* sidebar orientation and position */ | ||
| #sidebar | #sidebar | ||
| Line 97: | Line 118: | ||
| Como no me sale, lo hago manualmente | Como no me sale, lo hago manualmente | ||
| + | |||
| ===== Add New Page ===== | ===== Add New Page ===== | ||
| Line 102: | Line 124: | ||
| 1. Descargar | 1. Descargar | ||
| + | cd lib/ | ||
| wget -c --tries=0 http:// | wget -c --tries=0 http:// | ||
| 2. Descomprimir | 2. Descomprimir | ||
| - | unzip /tmp/addnewpage.zip | + | unzip addnewpage.zip |
| - | 3. Mover | + | 3. Realizar cambios en plantilla ' |
| - | cp -Rv / | + | **En la plantilla sidebar:** |
| - | + | ||
| - | 4. Realizar cambios en plantilla | + | |
| - | cp /ruta_wiki/lib/ | + | cp lib/ |
| - | | + | |
| | | ||
| Antes: | Antes: | ||
| Line 167: | Line 188: | ||
| Grabar y salir | Grabar y salir | ||
| + | |||
| + | **En la plantilla dokuwiki** | ||
| + | |||
| + | Modificamos el fichero lib/ | ||
| + | |||
| + | antes: | ||
| + | < | ||
| + | <?php if($showSidebar): | ||
| + | <!-- ********** ASIDE ********** --> | ||
| + | <div id=" | ||
| + | <h3 class=" | ||
| + | <div class=" | ||
| + | <?php tpl_flush() ?> | ||
| + | <?php tpl_includeFile(' | ||
| + | <?php tpl_include_page($conf[' | ||
| + | <?php tpl_includeFile(' | ||
| + | </ | ||
| + | </ | ||
| + | <?php endif; ?> | ||
| + | |||
| + | <!-- ********** CONTENT ********** --> | ||
| + | <div id=" | ||
| + | <div class=" | ||
| + | <div class=" | ||
| + | <?php tpl_flush() ?> | ||
| + | <?php tpl_includeFile(' | ||
| + | <!-- wikipage start --> | ||
| + | <?php tpl_content() ?> | ||
| + | <!-- wikipage stop --> | ||
| + | <?php tpl_includeFile(' | ||
| + | </ | ||
| + | |||
| + | Después | ||
| + | |||
| + | < | ||
| + | <?php if($showSidebar): | ||
| + | <!-- ********** ASIDE ********** --> | ||
| + | <div id=" | ||
| + | <h3 class=" | ||
| + | <div class=" | ||
| + | <?php tpl_flush() ?> | ||
| + | <?php tpl_includeFile(' | ||
| + | <?php tpl_include_page($conf[' | ||
| + | <?php tpl_includeFile(' | ||
| + | </ | ||
| + | </ | ||
| + | <?php endif; ?> | ||
| + | |||
| + | <!-- ********** CONTENT ********** --> | ||
| + | | ||
| + | <!-- ############### | ||
| + | <div class=" | ||
| + | <?php | ||
| + | $out = p_render(' | ||
| + | echo str_replace(array("< | ||
| + | ?> | ||
| + | </ | ||
| + | <!-- ############### | ||
| + | | ||
| + | <div id=" | ||
| + | <div class=" | ||
| + | <div class=" | ||
| + | <?php tpl_flush() ?> | ||
| + | <?php tpl_includeFile(' | ||
| + | <!-- wikipage start --> | ||
| + | <?php tpl_content() ?> | ||
| + | <!-- wikipage stop --> | ||
| + | <?php tpl_includeFile(' | ||
| + | </ | ||
| ===== Substituir _ por espacios en el título ===== | ===== Substituir _ por espacios en el título ===== | ||
| Line 274: | Line 364: | ||
| Grabar y salir y darle permisos: | Grabar y salir y darle permisos: | ||
| - | chown www-data: | + | chown www-data: |
| 9. Crear el archivo: | 9. Crear el archivo: | ||
| - | nano / | + | nano ./ |
| Con el siguiente contenido: | Con el siguiente contenido: | ||
| Line 326: | Line 416: | ||
| 14. Editar: | 14. Editar: | ||
| - | nano ./inc/auth/htaccess.class.php | + | nano ./inc/auth/httpbasic.class.php |
| Y dejar el final del guión tal que así: | Y dejar el final del guión tal que así: | ||
| Line 338: | Line 428: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | ===== Update ===== | ||
| + | Nos bajamos la última versión y la descomprimimos en el servidor | ||
| + | |||
| + | https:// | ||
informatica/dokuwiki2.1263251434.txt.gz · Last modified: (external edit)
