Hi, I had to ask the question because I'm hopeless to figure it out by myself.
I understand that in spip 1.9 there is no need for pair of php and html. How can
I control the layout by writing my own .html? e.g to change background in all
articles.
I found some html and css file under dist/, however by modifying them I did not
see any change from the website.
Anyone can give me a hint? thanks!
deerchaser schrieb:
Hi, I had to ask the question because I'm hopeless to figure it out by myself.
I understand that in spip 1.9 there is no need for pair of php and html. How can
I control the layout by writing my own .html? e.g to change background in all
articles.
I found some html and css file under dist/, however by modifying them I did not
see any change from the website.
Anyone can give me a hint? thanks!
Hello,
The /dist-directory is the right one, there are the standard templates. If you don't see any change, try to recalculate the sites. they are stored in the spip-cache, so you have to clean up the cache, or if you have set the administrative cookie in the intern section you should have an adminstrative menu on every site (on the right top) with the possibility to recalculate the site.
If you want to make a complete new set of templates, it should be better to make you own folder with your templates (e.g. /squelettes) and save a new file mes_options.php with this content
<?php
//mes_options.php
$GLOBALS['dossier_squelettes'] = 'squelettes';
?>
greeting from Bochum
Heiko
2006/7/26, deerchaser <antlossway@gmail.com>:
Hi, I had to ask the question because I'm hopeless to figure it out by myself.
I understand that in spip 1.9 there is no need for pair of php and html. How can
I control the layout by writing my own .html? e.g to change background in all
articles.
I found some html and css file under dist/, however by modifying them I did not
see any change from the website.
Anyone can give me a hint? thanks!
Create a directory "squelettes" and copy/create inside your own html templates.
Then, you can override the default template files.
To call you own template foo.html, just use this syntaxe :
http://…/spip.php?page=foo
It's a big difference between Spip 1.9 and the older versions :
There is no need of specify php file for your template : spip.php does
all the job.
#SQUELETTE is replaced by #CHEMIN{} wich is more powerfull (for ex.
you can use in your template #CHEMIN{style.css} without taking care
about the directory of this file) : it uses the same mecanism to find
the good template : it searches a corresponding file under squelettes
root_directory > dist > ecrire. The function include_spip() follow
the same path.
To manage your cache, you must add at the begining of your template
#CACHE{value} where value is a number (in second) or a numeric
expression.
To manage your header, use #HTTP_HEADER{} :
A good exemple is the dynamic css file of the private area that is by
default define in dist/style_prive.html : it starts with
#CACHE{360*1000}
#HTTP_HEADER{Content-Type: text/css; charset=iso-8859-15}
#HTTP_HEADER{Vary: Accept-Encoding}
Hope it helps,
.Gilles
---
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en
2006/7/26, Heiko <heiko.jansen@rub.de>:
If you want to make a complete new set of templates, it should be better
to make you own folder with your templates (e.g. /squelettes) and save a
new file mes_options.php with this content<?php
//mes_options.php
$GLOBALS['dossier_squelettes'] = 'squelettes';
?>
Yes, I would just add that 'squelettes' is now by default.
It's like the 'plugin' directory under wich you can install add-on.
See http://trac.rezo.net/trac/spip-zone/wiki/LesPlugins [fr] for a
mini-list and a documentation of the plugins. For a more complete
list, look at http://trac.rezo.net/trac/spip-zone/browser : everything
can be downloaded by a SVN client : it's explained here :
http://trac.rezo.net/trac/spip-zone/wiki/HowtoUseSvn
greeting from Lyon, France (where is Bochum ?)
.Gilles
--
greeting from Bochum
Heiko_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en
Gilles Vincent schrieb:
Yes, I would just add that 'squelettes' is now by default.
But it is default since 1.9, or? Good to know ![]()
It's like the 'plugin' directory under wich you can install add-on.
See http://trac.rezo.net/trac/spip-zone/wiki/LesPlugins [fr] for a
mini-list and a documentation of the plugins. For a more complete
list, look at http://trac.rezo.net/trac/spip-zone/browser : everything
can be downloaded by a SVN client : it's explained here :
http://trac.rezo.net/trac/spip-zone/wiki/HowtoUseSvn
I knew the /plugins-directory and I want to test some of them, but what is wiht the ohters directories. Is it the same way: If I want to have new Logos (I think they are the Logos for the documents etc.) I can install them in a /logos-directory?
There is a lot of development in the SPIP-community, but outside France (or without any knowledge of french language) it is hard to follow. The English and the german translations can't follow this velocity ![]()
greeting from Lyon, France (where is Bochum ?)
That is in Germany, in the Ruhr area.
greetings
Heiko
2006/7/26, Heiko <heiko.jansen@rub.de>:
Gilles Vincent schrieb:
> Yes, I would just add that 'squelettes' is now by default.
>
But it is default since 1.9, or? Good to know
I think that it was already the case for 1.8.3 (but I last used it a
long time ago ![]()
> It's like the 'plugin' directory under wich you can install add-on.
> See http://trac.rezo.net/trac/spip-zone/wiki/LesPlugins [fr] for a
> mini-list and a documentation of the plugins. For a more complete
> list, look at http://trac.rezo.net/trac/spip-zone/browser : everything
> can be downloaded by a SVN client : it's explained here :
> http://trac.rezo.net/trac/spip-zone/wiki/HowtoUseSvnI knew the /plugins-directory and I want to test some of them, but what
is wiht the ohters directories. Is it the same way: If I want to have
new Logos (I think they are the Logos for the documents etc.) I can
install them in a /logos-directory?
No, only 'squelettes' and "plugins" are in the search-path of Spip (in
an old post I've forgotten to precise that the "plugins" directory and
everything inside are at the begining of this path).
You can put your own logos in "squelettes/img" and use
#CHEMIN{img/mylogo.png} : it should find it (#CHEMIN{mylogo.png}
should also work, but I'm not certain about it..)
There is a lot of development in the SPIP-community, but outside France
(or without any knowledge of french language) it is hard to follow. The
English and the german translations can't follow this velocity
A little is always better than nothing ![]()
.Gilles
---
>
> greeting from Lyon, France (where is Bochum ?)That is in Germany, in the Ruhr area.
greetings
Heiko