page&post in index
I confused what is the url, http://www.rotaryclub-balma.fr or http://www.monclub.fr
hi , that will be :
- Découvrez le Rotary -> page
- Actualités du club -> post
- Nos actions -> page
- L'Équipe -> page
and write now it is :
http://www.rotaryclub-balma.fr/notre-histoire
forget monclub.fr
- Découvrez le Rotary -> page
- Actualités du club -> post
- Nos actions -> page
- L'Équipe -> page
and write now it is :
http://www.rotaryclub-balma.fr/notre-histoire
forget monclub.fr
i've find a switch but i don't think that the best option :
<?php
$url = 'http://www.rotaryclub-balma.fr/api/show ... cf735df844';
$jsonData = file_get_contents($url);
$data = json_decode($jsonData, true);
foreach($data as $page) {
if ($page['key']=='notrehistoire'){
$pagePermalink = $page['permalink'];
echo '<h3>'.$page['title'].'</h3>';
echo $page['content'];
echo '<br>';
}
}
?>
that's work like i need. did you have any other option ?
<?php
$url = 'http://www.rotaryclub-balma.fr/api/show ... cf735df844';
$jsonData = file_get_contents($url);
$data = json_decode($jsonData, true);
foreach($data as $page) {
if ($page['key']=='notrehistoire'){
$pagePermalink = $page['permalink'];
echo '<h3>'.$page['title'].'</h3>';
echo $page['content'];
echo '<br>';
}
}
?>
that's work like i need. did you have any other option ?
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
1) Have you tried something with the page "Notre Histoire" as Default home page (Paramètres > Avancé > Général > Page d'accueil par défaut)?
2) You can also use the following:
By the way: Very nice website!
2) You can also use the following:
Code: Select all
foreach ($pages as $Page){
if ($Page->title()=='Notre Histoire'){
echo $Page->content();
}
}
hi,
1/ no, i don't because i will make a 2 & 3 pages for "nos actions" & "les membres" so, i think that will make an error, doesn't it ?
2/ yes, but, if i change the title or if the owner (my client) want to change the title
3/ thx, i appreciated , i take time but i finish to have the result i want ... , and i discovered this cms and i like the possibility. just need now to learn exactly how it work
1/ no, i don't because i will make a 2 & 3 pages for "nos actions" & "les membres" so, i think that will make an error, doesn't it ?
2/ yes, but, if i change the title or if the owner (my client) want to change the title
3/ thx, i appreciated , i take time but i finish to have the result i want ... , and i discovered this cms and i like the possibility. just need now to learn exactly how it work
My bad! it's a bug:
Could you change on this file: /bl-plugins/api/plugin.php
Line 160:
For this
Could you change on this file: /bl-plugins/api/plugin.php
Line 160:
Code: Select all
for($i=0; $i<4; $i++) {
Code: Select all
for($i=0; $i<3; $i++) {