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 21:46] – 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 76: | Line 97: | ||
La linea: | La linea: | ||
- | |||
- | overflow: | ||
< | < | ||
+ | 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 223: | Line 313: | ||
4. Ajustar permisos | 4. Ajustar permisos | ||
- | chmod 600 / | + | chmod 600 / |
+ | chmod 600 / | ||
+ | chmod 600 / | ||
+ | | ||
+ | chown www-data: | ||
+ | chown www-data: | ||
| | ||
5. Crear un archivo .htaccess: | 5. Crear un archivo .htaccess: | ||
Line 248: | Line 343: | ||
6. Crear el archivo de usuarios para poder hacer un ' | 6. Crear el archivo de usuarios para poder hacer un ' | ||
- | htpasswd / | + | htpasswd / |
**NOTA** Teclear dos veces ' | **NOTA** Teclear dos veces ' | ||
Line 254: | Line 349: | ||
7. Crear el directorio a donde vamos a redirigir cuando se pulse el botón ' | 7. Crear el directorio a donde vamos a redirigir cuando se pulse el botón ' | ||
- | | + | |
+ | mkdir salir | ||
+ | | ||
+ | | ||
8. Crear el archivo: | 8. Crear el archivo: | ||
- | nano / | + | nano ./ |
Con el siguiente contenido: | Con el siguiente contenido: | ||
Line 264: | Line 362: | ||
chau | chau | ||
- | Grabar y salir | + | Grabar y salir y darle permisos: |
+ | |||
+ | chown www-data: | ||
9. Crear el archivo: | 9. Crear el archivo: | ||
- | nano / | + | nano ./ |
Con el siguiente contenido: | Con el siguiente contenido: | ||
Line 282: | Line 382: | ||
Grabar y salir | Grabar y salir | ||
- | |||
- | 10. Crear el siguiente archivo: | ||
- | |||
- | |||
10. Descargar el módulo ggauth en la raíz de nuestro directorio dokuwiki: | 10. Descargar el módulo ggauth en la raíz de nuestro directorio dokuwiki: | ||
Line 314: | Line 410: | ||
$conf[' | $conf[' | ||
+ | $conf[' | ||
+ | $conf[' | ||
+ | </ | ||
+ | 14. Editar: | ||
+ | |||
+ | nano ./ | ||
+ | |||
+ | Y dejar el final del guión tal que así: | ||
+ | |||
+ | < | ||
+ | function logOff() { | ||
+ | /* MODIFICADO */ | ||
+ | header(" | ||
+ | flush(); | ||
+ | exit; | ||
+ | } | ||
</ | </ | ||
+ | |||
+ | ===== Update ===== | ||
+ | Nos bajamos la última versión y la descomprimimos en el servidor | ||
+ | |||
+ | https:// |
informatica/dokuwiki2.1263246411.txt.gz · Last modified: 2015/04/13 20:19 (external edit)