I am new to spip and I am trying to figure out how to work on the templates , the sample file given in the site example doesn’t seem to exist , where can I get more detail on this.
I am new to spip and I am trying to figure out how to work on the templates , the sample file given in the site example doesn’t seem to exist , where can I get more detail on this.
I assume you're talking about this article : http://www.spip.net/en_article2138.html
The problem is that is is a little bit outdated ... Spip don't use .php3 files anymore, all the templates are .html files with classical html inside plus a few spip loops.
To do a few experiments audwill gave you a good recipie: copy the files you want to modify from squelettes-dist/ into squelettes/ ( this directory contains the default custom templates ).
Here are a few files to start with :
- sommaire.html ( the homepage )
- articles.html ( the main article pages )
- rubriques.html ( the same for sections ).
If you want to start a new page from scratch, you can create a file like mytest.html, put whatever you want inside and call it like this : http://www.yoursite.com/spip.php/?page=mytest
I have renamed the squelettes-dist/ to squelettes/
I have also changed the css and page color to blue but on the live site I still see no updates.
I have a layout I want to implement on spip , I just cant seem to get anything on the templates working
Regards
Fabian Owuor
Business & Project Co-ordinator
EPIPHANY
Cape Office Park
Ring Road Kilimani
+254 (0) 721 94 88 52
+254 (0) 735 27 08 52
Customer Support Line : +254 20-208 82 40
Web: www.epiphany.co.ke
| Consulting | Software | Hosting | Design | Domains | SEO Marketing | Web Easy Pay (WEP) |
-----Original Message-----
From: Vincent [mailto:vincent@logaweb.fr]
Sent: Monday, November 30, 2009 1:54 PM
To: Fabian Owuor; SPIP
Subject: Re: [Spip] spip layout
Hello,
I assume you're talking about this article : http://www.spip.net/en_article2138.html
The problem is that is is a little bit outdated ... Spip don't use .php3
files anymore, all the templates are .html files with classical html
inside plus a few spip loops.
To do a few experiments audwill gave you a good recipie: copy the files
you want to modify from squelettes-dist/ into squelettes/ ( this
directory contains the default custom templates ).
Here are a few files to start with :
- sommaire.html ( the homepage )
- articles.html ( the main article pages )
- rubriques.html ( the same for sections ).
If you want to start a new page from scratch, you can create a file like
mytest.html, put whatever you want inside and call it like this : http://www.yoursite.com/spip.php/?page=mytest
You should not rename squelettes-dist into squelettes because spip will use squelette-dist as a default solution when nothing is found in squelettes.
You should start by the beginning: create a simple blank file called sommaire.html and try some experiments on it:
a few article/rubrique loops. You can see this as the usual "hello world" test ^^
When you'll be at ease with those tricks, you can move on to something more difficult like reproducing a custom version of the default skin.