To display the most relevant entries to you in priority,
vote for the stories you are interested in
(  )
and reject those that you are not interested in
(  )
Challies Dot Com -
16 hours and 6 minutes ago
spana href="http://www.nationalpost.com/news/story.html?id=1028536" target="_blank"Dissident
Anglicans/a/spanbr / "Dissident Anglicans in Canada and the United States took the giant step of
forming a new church on Wednesday, another step in the deepening schism between orthodox and
liberal elements of the faith." hr / spana href="http://www.ccwblog.org/2008/12/free-december.html"
target="_blank"Free December at CCW/a/spanbr / Christian Communicators Worldwide (think Jim Elliff)
is giving away a copy of every one of their books. hr / spana
href="http://www.traviscarden.com/archive/2007/01/08/total-depravity-verse-list"
target="_blank"Total Depravity Verse List/a/spanbr / Travis has compiled an excellent list of
verses dealing with total depravity. This is a good one to file away since sooner or later you'll
want these verses! hr / spana
href="http://www.telegraph.co.uk/arts/main.jhtml?xml=/arts/2008/11/22/sm_immersion.xml"
target="_blank"The Immersion Project/a/spanbr / "Robbie Cooper's film stills capture children's
faces as they play violent videogames and form the basis of an art project that could also help us
understand the effects of spending time in a virtual world." hr / spana
href="http://www.desiringgod.org/ResourceLibrary/TasteAndSee/ByDate/2008/3443_Kissing_Retirement_Goodbye/"
target="_blank"Kissing Retirement Goodbye/a/spanbr / John Ensor: "I kissed retirement goodbye--at
least the kind traditionally planned for in America. My mother has finally persuaded me that there
are better things to do when I reach her age." hr / spana
href="http://www.albertmohler.com/blog_read.php?id=2861" target="_blank"Children and Media/a/spanbr
/ "A new report indicates that the average child in America now spends 45 hours a week immersed in
the media -- a multiple of the hours spent with parents or in the classroom." hr / spana
href="http://www.heritagebooks.org/bookstore/catalog/product_info.php?products_id=9267"
target="_blank"Deal of the Day: The Gospel Ministry/a/spanbr / "In this book, Foxcroft exhorts
ministers to make Christ the focal point of their preaching. He shows the importance of character
in ministry, calling for pastors to be wise and prudent in every aspect of their lives." RHB has
this book on sale for only $8 today only (that's 50% off). hr /br /strongSponsor:/strongbr /a
href="http://www.rpmissions.com"img src="http://www.adgrab.org/www/images/RPMissions.jpg" //adiv
class="feedflare" a href="http://feeds.feedburner.com/~f/challies/XhEt?a=59LkO"img
src="http://feeds.feedburner.com/~f/challies/XhEt?i=59LkO" border="0"/img/a a
href="http://feeds.feedburner.com/~f/challies/XhEt?a=eDCbo"img
src="http://feeds.feedburner.com/~f/challies/XhEt?i=eDCbo" border="0"/img/a a
href="http://feeds.feedburner.com/~f/challies/XhEt?a=ryauo"img
src="http://feeds.feedburner.com/~f/challies/XhEt?i=ryauo" border="0"/img/a /divimg
src="http://feeds.feedburner.com/~r/challies/XhEt/~4/474627702" height="1" width="1"/

|
Boing Boing -
16 hours and 52 minutes ago
Democracy Now! interviews Matthew Alexander, author of How to Break a Terrorist: The US
Interrogators Who Used Brains, Not Brutality, to Take Down the Deadliest Man in Iraq. Alexander is
a former US military interrogator who deplores the use of torture in interrogation as ineffective
at extracting intelligence -- and he argues that it's very effective at outraging potential enemies
and turning them into murderous extremists. Yeah, you know, torture, it’s so narrowly or
broadly defined depending on who you’re talking to these days. I would say torture, to me, is
just unethical behavior. And you can do things that are legal, within the rules, that are
unethical. And so, I just know, me, by my gut feeling, based on the principles that I was raised
on, you know, that my parents gave to me, that there’s things I’ll never do, because I
know it feels wrong and it is wrong. And so, you know, others felt comfortable either pushing all
the way up to the limits and doing things that were unethical, but were legal, or breaking the
rules. I felt that was not something I was ever going to do and I wasn’t going to allow my
team to do. I think what’s more important at this point is we know that torture has cost us
American lives. We know that it’s ineffective. And we know that it’s wrong, and
it’s damaged our image. I think, you know, for me as a military officer, my job isn’t
to identify broken wheels, it’s to fix them. And so, the approach that I took and that I talk
about in the book is, how do we move forward? You know, we’re given this choice of either
terrorist attacks or torture. But maybe there’s a third way. Maybe there’s a better way
to do interrogations that has nothing to do with torture. And in the book, I describe the process
of coming up with these new ways and how my team, together, we were able to come up with the new
methods. US Interrogator in Iraq Says Torture Policy Has Led to Deaths of Thousands of American
Soldiers, How to Break a Terrorist: The US Interrogators Who Used Brains, Not Brutality, to Take
Down the Deadliest Man in Iraq on Amazon (Thanks, Denver Jewelry Guy!)...br style="clear: both;"/ a
href="http://www.pheedo.com/click.phdo?s=ada9e5163f6d49afdb17fd54a73459aap=1"img alt=""
style="border: 0;" border="0"
src="http://www.pheedo.com/img.phdo?s=ada9e5163f6d49afdb17fd54a73459aap=1"//a img
src="http://www.pheedo.com/feeds/tracker.php?i=ada9e5163f6d49afdb17fd54a73459aa" style="display:
none;" border="0" height="1" width="1" alt=""/

|
Wooster Collective -
17 hours and 11 minutes ago
We've been fans of Jeff Soto's for a long time. So we were thrilled to learn that Jeff will be
opening his first museum exhibit on December 13th at the Riverside Art Museum in Southern
California. It will be his last show in Southern California for a couple years. Here's the info:
Jeff Soto: Turning in Circles
December 13, 2008 – February 21, 2009
Reception: Saturday, Dec 13, 2008 6-9pm public reception.
Riverside Art Museum
3425 Mission Inn Ave.
Riverside, CA 92501
(951) 684-7111
Age: 33
Hometown: Fullerton, CA
Where do you now live?: Riverside, CA
Where would you most like to live?: We are an hour from Los Angeles so it would
be nice to move closer at some point. My wife and I always talk about moving to Oregon but we
have a ton of family and friends here. Plus the weather is nice so I don't see us leaving any
time soon.
Who was your first "hero" in life?: Kind of embarrassing but the first person I
remember thinking was heroic was Luke Skywalker. And I remember thinking my dad was pretty
heroic. He had fishing and art skills.
What is your favorite thing to do on your day off from work?: I really need a
week off at this point. I'd probably spend it with my wife and daughter, maybe we'd go to the zoo
or something, maybe go feed ducks at the park. Something simple. And I'd get a nap in the
afternoon. Just a nice lazy day.
What is your favorite color?: A mixture of Burnt Umber and Pthalo blue- it makes
beautifully different shades of grey.
Who (or what) do you love?: The easy answer is my wife and daughter. But there's
so many beautiful things in the world to love- looking at the stars, the smell of Ultra Flat
Black, climbing a mountain, ice cream, jumping into the water on a sweltering day, anything that
overwhelms the senses with goodness.
Who and/or what are some of your influences?
In high school I was looking at a lot of Impressionists and NY graffiti writers. Then in college
I discovered hundreds- thousands of artists, and by now I'm a fan of so many. If I had to narrow
it down to the ones who influenced me most, probably the Clayton Brothers who I had as teachers,
Rich Jacobs, Van Gogh, the English illustrator Patrick Woodroffe, Mear, Seen, some of the
surrealists like Max Ernst, Frida Kahlo, probably throw Hayao Miyazaki into the mix as well.
Wooster: What other artists do you most admire?
I'm drawn to artists that do their thing and do it well. Kinsey is making some incredible art
these days. Dave Choe is nuts. Travis Millard... Maya Hayuk... Mark Ryden is always doing his
thing well. AlexOne.. Esther Pearl Watson, Monica Canilao.. there's a lot of great art coming
up..
Wooster: How would you describe your art to someone who could not see it?
Lots of colors, fragmented imagery, tight rendering mixed with randomness and mark making. I am
starting to get much looser, which is how I painted when I started out so things are coming full
circle somehow.
Wooster: What other talent would most like to have?
I always tell my wife I'd trade all my visual art skills to be a badass acoustic guitar player. I
just want to sing songs around the campfire. In reality I wouldn't trade what I have.
Wooster: What do you fear the most?
I used to really fear getting caught for graffiti. When I was younger the rumor was that La eMe,
which is the Mexican Mafia, would chop off your pointer finger if you were in prison for
graffiti. Especially if you were a white boy. That really used to freak me out, but I found out
later it was untrue. I think now that I have a daughter the big fear is that something happens to
her, or that I die early and miss seeing her grow up. Probably the same fear all parents have.
Wooster: What is your greatest ambition?
Usually I have some idea of where I'm headed with my art but right now I have no idea. I'm just
happy to be making some things and hope I can keep on doing that.

|
Guardian Unlimited -
18 hours and 21 minutes ago
divimg alt=""
src="http://hits.guardian.co.uk/b/ss/guardiangu-feeds/1/H.15.1/33509?ns=guardianpageName=Education%3A+Faith+schools+urged+to+end+selection+on+basis+of+religionch=Educationc3=guardian.co.ukc4=Faith+schools%2CSecondary+schools%2CPrimary+schools%2CSchools%2CReligion+%28News%29%2CUK+newsc5=Not+commercially+useful%2CSchools+Educationc6=Donald+MacLeodc7=2008_12_04c8=1128668c9=articlec10=GUc11=Educationc12=Faith+schoolsc13=c14=h2=GU%2FEducation%2FFaith+schools"
width="1" height="1" //divpFaith schools should stop selecting pupils on the basis of their
religious background in order to promote social cohesion, the Runnymede Trust, a charity set up to
promote a multi-ethnic Britan, said today. /ppA report, Right to Divide? Faith Schools and
Community Cohesion, examines how faith schools operate and is based on consultations with more than
1,000 people over the last two years./ppThe trust's proposals, launched at a conference attended by
the education minister Sarah McCarthy-Fry, will reopen the fierce arguments provoked by the
government's failed attempts two years ago to impose quotas of pupils from other religions on faith
schools. /ppAlan Johnson, then education secretary, was forced to back down after strong protests
from the Catholic and Anglican churches in favour of a voluntary code. br / br /The Runnymede Trust
has identified six key recommendations, which the report's authors say will clarify the role of
faith schools within England's education system./ppIt argues that the schools should end selection
on the basis of faith, as they should be "for the benefit of all in society rather than just
some"./ppIt says: "If faith schools are convinced of their relevance for society, that should apply
equally for all children./pp"With state funding comes an obligation to be relevant and open to all
citizens."/ppThe report calls for pupils to be given a greater say in how they are educated, and
claims there is little discussion about children's voices in the faith schools debate./ppIt says
faith schools should address concerns that they educate a disproportionately small number of
children from the most disadvantaged backgrounds./ppAnd it argues that faith schools should value
all young people, regardless of religion, while religion should be more highly valued in
non-denominational schools. /ppThe report also says religious education should be a part of the
core national curriculum./ppIt concludes that faith schools "should remain a significant and
important part of our education system, offering diversity in the schooling system as a means of
improving standards, offering choice to parents, and developing effective responses to local,
national and global challenges in education."/ppFigures put forward in the report show that there
are more than 4,600 Church of England primary and secondary schools in England, over 2,000 Roman
Catholic schools, 26 Methodist primary schools, 88 schools of other Christian denominations, 27
Jewish schools, seven Muslim schools, two Sikh schools, and two of other denominations./ppThere are
more than 11,100 state primary schools of no religious character, and 2,756 secondary
schools./ppThe Accord coalition, which argues faith schools should not be able to discriminate
against pupils or staff on grounds of religion, welcomed the report./ppAccord chairman, Rabbi
Jonathan Romain, said: "We are witnessing a major change in attitude towards faith schools:
previously flavour of the month, they are now being seriously questioned - both in the way they
operate and whether they serve the public good. /pp"It is a debate that is long overdue and may
save much heartache later."/pdiv style="float: left; margin-right: 10px; margin-bottom: 10px;"ullia
href="http://www.guardian.co.uk/education/faithschools"Faith schools/a/lilia
href="http://www.guardian.co.uk/education/secondaryschools"Secondary schools/a/lilia
href="http://www.guardian.co.uk/education/primaryschools"Primary schools/a/lilia
href="http://www.guardian.co.uk/education/schools"Schools/a/lilia
href="http://www.guardian.co.uk/world/religion"Religion/a/li/ul/diva
href="http://www.guardian.co.uk"guardian.co.uk/a copy; Guardian News Media Limited 2008 | Use of
this content is subject to our a
href="http://users.guardian.co.uk/help/article/0,,933909,00.html"Terms Conditions/a | a
href="http://www.guardian.co.uk/webfeeds/1,,1309488,00.html"More Feeds/a pa
href="http://feedads.googleadservices.com/~at/nMcGeWus2yd03JNwzsSFvuYQ8As/a"img
src="http://feedads.googleadservices.com/~at/nMcGeWus2yd03JNwzsSFvuYQ8As/i" border="0"
ismap="true"/img/a/p

|
iPod touch Fans forum -
18 hours and 46 minutes ago
 Category: Entertainment
Released: Dec 03, 2008
Price: $1.99
Description:
Santa Mail enables you or your kids to write letters to Santa on your iPhone. Santa Mail provides
an indulging Christmas environment (dressed with images and sounds) for writing your very own
letter to Santa. Write him what your wish for Christmas and Santa Mail sends this letter to Santa
all the way to the North Pole. Between 3 to 5 days Santa gets back to you with your very own
personalized response. Launch Santa Mail to see if there are new messages from Santa, and simply
touch your name to read Santa's message. Messages from Santa are archived on your phone for later
reading. Lots of fun for kids and it will keep them occupied forever, especially the anticipation
for their response. The application supports multiple letters, so all members of the family can
write their very own message to Santa. Parents your and your kids privacy is important to us, this
application does not transmit any data, all responses are canned in the application, everything
happens on your iPhone. Wait ... Santa is on your iPhone :)
Website: http://santamailapp.com
Support Website: http://santamailapp.com
Note: The description above is the official one supplied by the application
developer and does not necessarily represent the views or opinions of this site or its staff.
Get it on iTunes: Santa Mail

|
GamesIndustry.biz -
19 hours and 16 minutes ago
UK industry body reminds those buying games as gifts over the holiday to check the age and content
rating
|
Open"Source::critere -
19 hours and 20 minutes ago
Depuis 2001 et jusqu'en juillet 2008, l'Office Français de Protection des
Réfugiés et Apatrides (OFPRA) reconnaissait les risques encourus par certaines
petites filles et jeunes femmes en cas de retour dans le pays d'origine de leurs parents - Europe /
|
Open"Source::critere -
20 hours and 20 minutes ago
(Lyon) Plusieurs centaines d'écoles dans une vingtaine de communes vont être
occupées ce soir et demain soir. Ces actions vont être menées par les
enseignants et les parents d'élèves dans plusieurs établissements de
Vénissieux, Villeurbanne, Rillieux-la-P
|
Le Soir en ligne: le fil info -
21 hours and 26 minutes ago
Une famille turque de quatre personnes a #233;t#233; retrouv#233;e morte mercredi soir #224;
Rheine, dans l#8217;ouest de l#8217;Allemagne, a indiqu#233; la police, qui soup#231;onne le
p#232;re de famille d#8217;avoir tu#233; sa femme et ses deux fils avant de se donner la mort.
L#8217;homme, #226;g#233; de 38#160;ans, avait auparavant annonc#233; par SMS #224; des parents
qu#8217;un #171;#160;malheur#160;#187; allait arriver et qu#8217;il souhaitait #234;tre enterr#233;
en Turquie,.img width='1' height='1'
src='http://rss.feedsportal.com/c/864/f/11087/s/27ed6ef/mf.gif' border='0'/br/br/a
href="http://da.feedsportal.com/r/25853556312/u/89/f/11087/c/864/s/41866991/a2.htm"img
src="http://da.feedsportal.com/r/25853556312/u/89/f/11087/c/864/s/41866991/a2.img" border="0"//a
|
BELLACIAO - FR -
21 hours and 38 minutes ago
Après avoir fait massivement grève la semaine dernière, les enseignants de
l'École maternelle des Oustalous à Toulouse observent ce jour une grève
à la japonaise. Vêtus du gilet de sauvetage jaune obligatoire en cas d'arrêt en
bord de route (et dont il faut bien qu'il serve à quelque chose), ils distribuent des tracts
de couleur jaune aux parents pour leur faire prendre conscience du sort réservé
à l'école de leurs enfants. br /Les autorités prévoient la suppression
de la petite et de la (...)
|
-Daily. Gay. News.- Towleroad: a premium site for modern gay men. -
21 hours and 48 minutes ago
San Francisco Catholic Archbishop George Niederauer has spoken out on his role in the passage of
Proposition 8 in the aftermath of the ensuing protests, asking, "What is the way forward for all
of us together? Even though we supporters of Proposition 8 did not intend to hurt or offend our
opponents, still many of them, especially in the gay community, feel hurt and offended. What is
to be done?"
Niederauer, who is credited with bringing in the Mormon church and the massive finances of
its donors, urged people to tone down the rhetoric: "Tolerance, respect, and trust are always
two-way streets, and tolerance respect and trust often do not include agreement, or even
approval. We need to be able to disagree without being disagreeable. We need to stop talking as
if we are experts on the real motives of people with whom we have never even spoken. We need to
stop hurling names like 'bigot' and 'pervert' at each other. And we need to stop it now."
The
SF Chronicle reports:
"During the campaign, Niederauer issued statements, sent flyers and gave a videotaped interview
posted at www.marriagematterstokids.org. But Niederauer's most prominent action was drawing in
the Church of Jesus Christ of Latter-day Saints, whose members responded with intensive
grassroots organizing and an estimated $20 million in campaign contributions from individuals
that accounted for half of the Yes on 8 campaign's total. Niederauer noted that many other
Christian denominations supported Prop. 8, including evangelical Protestant, Orthodox and
historically African American churches. The Mormon church has said Niederauer, previously the
bishop of Salt Lake City for 11 years, played a pivotal role in its joining the cause. 'We were
invited to join the coalition,' Michael Otterson, managing director of public affairs for the
church, told The Chronicle in an interview shortly after the election. 'We didn't
unilaterally go into the battle.' Otterson said Niederauer's letter persuaded the Mormon church
that they wouldn't be fighting this battle alone, a status that would have made them vulnerable."
Niederauer wants everyone to accept the procreation argument for the family and the "marriage"
label, and wants gays to accept "a contract for the benefit of a relationship between adults" but
not call it marriage.
He forgives "single parents, grandparents, foster parents and others" who "fail to realize" the
ideal procreative one man-one woman model but doesn't deny them his permission to marry, because
they are heterosexual.
Basically, Niederauer wants gays and lesbians (many of whom do procreate through
surrogates, etc, I might add) to accept our status as second-class citizens and move on.
Read his full message, entitled "Moving Forward Together," AFTER THE JUMP...
S.F. archbishop defends role in Prop. 8 passage [sf chronicle]
***
SAN FRANCISCO CATHOLIC ARCHBISHOP NIEDERAUER - "MOVING FORWARD TOGETHER"
“Only marriage between a man and a woman is valid or recognized in California.” In
the weeks since the adoption of this amendment the media have carried many speculations about the
role of the Catholic bishops in California, and about my role in particular, in the passage of
this proposition. It is my wish to clarify here what was done and why it was done, and offer some
thoughts about the way forward amid so many misunderstandings and hard feelings.
Five years before my appointment as Archbishop of San Francisco, in the year 2000, Proposition 22
was placed on the California ballot. This statute, which defined marriage as between a man and a
woman, passed with 61% of the vote. On May 15th of this year, the California State Supreme Court
declared that statute unconstitutional and legalized same-sex marriage in California. Around the
same time, Proposition 8, a constitutional amendment qualified for the ballot.
The Catholic bishops of California, organized as the California Catholic Conference, and speaking
through their office of public policy in Sacramento, endorsed Proposition 8 and urged Catholics,
and organizations of lay Catholics, to work for its passage, by means of grass roots activity and
contributions from their resources. We bishops also endorsed Proposition 4, regarding parental
notification of a minor child’s intended abortion (defeated at the polls) and we opposed
Proposition 6, a “tough on crime” initiative inconsistent with the principles of
restorative justice (defeated).
The Archdiocese of San Francisco did not donate or transfer any Archdiocesan funds to the
campaign in favor of Proposition 8. As far as I know, that is also true of other Catholic
dioceses in California. The Archdiocese did pay, and appropriately disclose, printing and
distribution of flyers to parishes.
Last May the staff of the Conference office informed me that leaders and members of the Church of
Jesus Christ of Latter-day Saints (the Mormons) had given their support to the campaign for
Proposition 22 in the year 2000, and were already considering an involvement in connection with
Proposition 8. Accordingly, I was asked to contact leaders of the LDS Church whom I had come to
know during my eleven years as Bishop of Salt Lake City, to ask them to cooperate again, in this
election cycle. I did write to them and they urged the members of their Church, especially those
in California, to become involved.
It is important to point out here that a wide range of churches became active in favor of
Proposition 8: in addition to Catholics and LDS members, evangelical Protestant churches and
churches with many African-American members joined the effort, and, among the Orthodox churches,
the Greek Orthodox Metropolitan of San Francisco and three other Orthodox bishops signed and
published a joint statement in favor of Proposition 8.
That is what was done. Why was it done? Some voices in the wider community declare that there
could be only one motive: hatred, prejudice and bigotry against gays, along with a determination
to discriminate against them and deny them their civil rights. That is not so. The churches that
worked in favor of Proposition 8 did so because of their belief that the traditional
understanding and definition of marriage is in need of defense and support, and not in need of
being re-designed or re-configured.
Some of our opponents respond with this question: Even if these churches saw the California State
Supreme Court decision in May as damaging to the institution of marriage as they understood and
valued it, shouldn’t they have kept quiet and stayed on the sidelines? Some would say that,
in light of the separation of church and state, churches should remain silent about any political
matter. However, religious leaders in America have the constitutional right to speak out on
issues of public policy. Catholic bishops, specifically, also have a responsibility to teach the
faith, and our beliefs about marriage and family are part of this faith.
Indeed, to insist that citizens be silent about their religious beliefs when they are
participating in the public square is to go against the constant American political tradition.
Such a gag order would have silenced many abolitionists in the nineteenth century and many civil
rights advocates in the twentieth. Quite a number of important political issues regularly touch
upon the ethical, moral, and religious convictions of citizens: immigration policy, the death
penalty, torture of prisoners, abortion, euthanasia, and the right to health care are some such
issues.
Members of churches who supported Proposition 8 sincerely believe that defining marriage as only
between a man and a woman is one such issue. They see marriage and the family as the basic
building blocks of human society, existing before government and not created by it. Marriage is
for us the ideal relationship between a man and woman, in which, through their unique sexual
complementarity, the spouses offer themselves to God as co-creators of new human persons, a
father and mother giving them life and enabling them to thrive in the family setting.
Are there many instances in which this ideal fails to be realized? Of course there are. Single
parents, grandparents, foster parents and others deserve praise and support for their courage,
sacrifice and devotion in raising the children for whom they are responsible. Still, the
proponents of Proposition 8 subscribe to a definition of marriage that recognizes and protects
its potential to create and nurture new human life, not merely a contract for the benefit of a
relationship between adults.
Whatever others may say, the proponents of Proposition 8 supported it as a defense of the
traditional understanding and definition of marriage, not as an attack on any group, or as an
attempt to deprive others of their civil rights. The fact remains that, under California law,
after the passage of Proposition 8, same sex couples who register as domestic partners will
continue to have “the same rights, protections and benefits” as married couples.
Proposition 8 simply recognizes that there is a difference between traditional marriage and a
same sex partnership.
What is the way forward for all of us together? Even though we supporters of Proposition 8 did
not intend to hurt or offend our opponents, still many of them, especially in the gay community,
feel hurt and offended. What is to be done?
Tolerance, respect, and trust are always two-way streets, and tolerance respect and trust often
do not include agreement, or even approval. We need to be able to disagree without being
disagreeable. We need to stop talking as if we are experts on the real motives of people with
whom we have never even spoken. We need to stop hurling names like “bigot” and
“pervert” at each other. And we need to stop it now.
For our part, we churchgoers need to speak and act out of the truth that all people are
God’s children and are unconditionally loved by God. While we argue among ourselves, the
people who need our help with hunger, unemployment, homelessness and other problems wait for us
to turn together toward them. More particularly, we Catholics in the Archdiocese of San Francisco
need to minister to the needs of all Catholics in this local Church. Whoever they are, and
whatever their circumstances, their spiritual and pastoral rights should be respected, together
with their membership in the Church. In that spirit, with God’s grace and much prayer,
perhaps we can all move forward together.
***END OF STATEMENT***


|
AgoraVox le media citoyen -
21 hours and 51 minutes ago
J'avoue avoir changé d'avis sur cette intrusion de gendarmes dans un collège du Gers,
le 19 novembre dernier, en vue d'un contrôle anti-drogues, qui a entraîné une
mobilisation importante des parents d'élèves. Car à première vue, sans
avoir pris connaissance des faits exacts (France (...)
|
AgoraVox le média citoyen -
21 hours and 51 minutes ago
J'avoue avoir changé d'avis sur cette intrusion de gendarmes dans un collège du Gers,
le 19 novembre dernier, en vue d'un contrôle anti-drogues, qui a entraîné une
mobilisation importante des parents d'élèves. Car à première vue, sans
avoir pris connaissance des faits exacts (France (...)div class="feedflare" a
href="http://feeds.feedburner.com/~f/agoravox/gEOF?a=haetO"img
src="http://feeds.feedburner.com/~f/agoravox/gEOF?i=haetO" border="0"/img/a /div
|
SPIP - Contrib -
22 hours and 57 minutes ago
img src=http://www.spip-contrib.net/IMG/arton2900.png alt= align=right width=128 height=128
class=spip_logos / div class='rss_chapo'pUn outil du Couteau Suisse : une balise (ou plusieurs !)
pour afficher le titre du parent d'un objet (article, rubrique, brève, mot-clé, ...),
ou simplement le titre d'un objet SPIP. Sans boucle supplémentaire !/p/div div
class='rss_texte'h3 class=spipPrésentation/h3 pCet outil est une fonctionnalité du
plugin « stronga href='http://www.spip-contrib.net/Le-Couteau-Suisse' class='spip_in'Le
Couteau Suisse/a/strong ». Pour avoir accès au paramétrage de la balise
#TITRE_PARENT, il vous faut donc avoir préalablement installé ce plugin, puis
activé l'outil « strongBalise #TITRE_PARENT/strong » sur la page
d'administration du plugin en espace privé./p pCet article est une version approfondie et
adaptée au Couteau Suisse de : a href='http://www.spip-contrib.net/balise-TITRE_PARENT'
class='spip_in'balise #TITRE_PARENT/a (par a href='http://www.spip-contrib.net/James,178'
class='spip_in'James/a)/p pVoici donc une simple balise qui évite d'ajouter une boucle dans
un squelette pour afficher le titre du parent d'un objet./p h3 class=spipUn peu d'histoire.../h3
p[a href='http://www.spip-contrib.net/romy-tetue-net' class='spip_in'romy.tetue.net/a] nous disait
:/p blockquote class=spip pCe n'est pas grand-chose, mais c'est un besoin que j'ai de façon
répétitive depuis que je connais SPIP : dans un squelette article, afficher
rapidement le titre de sa rubrique parente, pour faire un lien de retour (par exemple)./p pDans une
boucle article, on peut utiliser #URL_RUBRIQUE et #ID_RUBRIQUE... mais pas #TITRE pour afficher le
titre de la rubrique en question, pour lequel on devra alors sortir l'artillerie d'une boucle, si
bien qu'on peut se retrouver avec quelque chose d'un peu grotesque :/p div style='text-align:
left;' class='spip_code' dir='ltr'codea href=#URL_RUBRIQUEbr /
BOUCLE_rub(RUBRIQUES){id_rubrique}#TITRE/BOUCLE_rubbr / /a/code/div p ;-)/p /blockquote
pD'après Grégoire :/p blockquote class=spip pSi tu es dans une boucle incluse dans
une autre, c'est encore plus simple./p div style='text-align: left;' class='spip_code'
dir='ltr'codeBOUCLE_lstRub(RUBRIQUES)br / BOUCLE_art(ARTICLES){id_rubrique}br / br / Art :
#ID_ARTICLE - #TITREbr / [(#REM) titre de la rubrique maintenant]br / br /#_lstRub:TITREbr / [(REM)
ça marche avec les URL aussi]br / /BOUCLE_artbr / /BOUCLE_lstRub/code/div /blockquote pMais
une balise strong#TITRE_PARENT/strong simplifierait drôlement la vie :/p pcode
class='spip_code' dir='ltr'a href=#URL_RUBRIQUE#TITRE_PARENT/a/code/p pElle permettrait d'afficher
facilement le titre de la rubrique parente dans les boucles articles, brèves, rubriques.../p
pLa chose est faite. Cet outil ajoute à l'arsenal des balises utilisables sur votre site la
fameuse balise, sans boucle supplémentaire./p h3 class=spipUn peu de technique.../h3 pLe
fichier code class='spip_code' dir='ltr'outils/titre_parent_fonctions.php/code est le seul fichier
réellement essentiel à SPIP pour fournir la fonctionnalité. En effet, le
plugin n'a pour rôle que de proposer ce fichier comme extension au compilateur de SPIP./p pIl
se décompose en trois concepts : le filtre SPIP, la balise SPIP et le traitement SPIP des
balises./p h3 class=spipLES FILTRES/h3 pLa fonction « cs_titre_id() » est le filtre
« |cs_titre_id » qui permet de récupérer l'information voulue, c'est
à dire le titre de la table parent d'un objet $id. Il faut donc absolument appliquer ce
filtre à un #ID dont on est sûr qu'il est le parent de l'objet en cours dans la
boucle, et par défaut, une rubrique. Quatre exemples pour éclaircir cette idée
:/p pimg src=http://www.spip-contrib.net/local/cache-vignettes/L8xH11/puce-5996f.gif width='8'
height='11' alt=- style='height:11px;width:8px;' / code class='spip_code'
dir='ltr'BOUCLE_a(ARTICLES)[(#ID_RUBRIQUE|cs_titre_id)]/BOUCLE_a/code br /img
src=http://www.spip-contrib.net/local/cache-vignettes/L8xH11/puce-5996f.gif width='8' height='11'
alt=- style='height:11px;width:8px;' / code class='spip_code'
dir='ltr'BOUCLE_b(BREVES)[(#ID_BREVE|cs_titre_id)]/BOUCLE_b/code br /img
src=http://www.spip-contrib.net/local/cache-vignettes/L8xH11/puce-5996f.gif width='8' height='11'
alt=- style='height:11px;width:8px;' / code class='spip_code'
dir='ltr'BOUCLE_r(RUBRIQUES)[(#ID_PARENT|cs_titre_id)]/BOUCLE_r/code br /img
src=http://www.spip-contrib.net/local/cache-vignettes/L8xH11/puce-5996f.gif width='8' height='11'
alt=- style='height:11px;width:8px;' / code class='spip_code'
dir='ltr'BOUCLE_m(MOTS)[(#ID_GROUPE|cs_titre_id{groupes_mots,id_groupe})]/BOUCLE_m/code/p pJe le
reconnais, pour utiliser « |cs_titre_id », il faut avoir une bonne connaissance de la
structure des tables SPIP et reconnaître les liaisons entre les objets enfants et leurs
parents. Ce filtre explore par défaut la table des rubriques, mais il est possible de
spécifier d'autres tables en utilisant les deux arguments prévus à cette effet
: itable, champ id/i. Le 3e exemple ci-dessus explore la table des groupes de mots-clés
(groupes_mots) et récupère le titre du groupe dont le champ id_groupe est bien
égal à #ID_GROUPE, le groupe parent du mot-clé traité par la boucle./p
pVoici le code du filtre « |cs_titre_id » :/p div class=coloration_codediv
class=spip_php codespan style=color: #666666; font-style: italic;// Renvoie le titre trouve dans la
$table_parent, là où $champ = $id/spanbr / span style=color: #000000; font-weight:
bold;function/span cs_titre_idspan style=color: #009900;#40;/spanspan style=color:
#000088;$id/spanspan style=color: #339933;,/span span style=color: #000088;$table_parent/spanspan
style=color: #339933;=/spanspan style='rubriques'/spanspan style=color: #339933;,/span span
style=color: #000088;$champ/spanspan style=color: #339933;=/spanspan style='id_rubrique'/spanspan
style=color: #009900;#41;/span span style=color: #009900;{/spanbr / span style=color: #666666;
font-style: italic;// retour nul si pas de parent a priori/spanbr / span style=color:
#b1b100;if/spanspan style=color: #009900;#40;/spanspan style=color: #339933;!/spanspan style=color:
#000088;$id/spanspan style=color: #009900;#41;/span span style=color: #b1b100;return/span span
style=''/span;br / span style=color: #666666; font-style: italic;// Utiliser la bonne requete en
fonction de la version de SPIP/spanbr / span style=color: #b1b100;if/spanspan style=color:
#009900;#40;/spana href=http://www.php.net/function_existsspan style=color:
#990000;function_exists/span/aspan style=color: #009900;#40;/spanspan
style='sql_getfetsel'/spanspan style=color: #009900;#41;/spanspan style=color: #009900;#41;/span
span style=color: #009900;{/spanbr / span style=color: #666666; font-style: italic;// SPIP
2.0/spanbr / span style=color: #b1b100;if/spanspan style=color: #009900;#40;/spanspan style=color:
#000088;$titre/span span style=color: #339933;=/span sql_getfetselspan style=color:
#009900;#40;/spanspan style='titre'/spanspan style=color: #339933;,/span span style=color:
#0000ff;spip_$table_parent/spanspan style=color: #339933;,/span span style=color: #0000ff;
$champ=$id/spanspan style=color: #009900;#41;/spanspan style=color: #009900;#41;/spanbr / span
style=color: #b1b100;return/span span style=color: #000088;$titre/span;br / span style=color:
#009900;}/span span style=color: #b1b100;else/span span style=color: #009900;{/spanbr / span
style=color: #b1b100;if/spanspan style=color: #009900;#40;/spanspan style=color: #000088;$r/span
span style=color: #339933;=/span spip_queryspan style=color: #009900;#40;/spanspan style=color:
#0000ff;SELECT titre FROM spip_$table_parent WHERE $champ=$id/spanspan style=color:
#009900;#41;/spanspan style=color: #009900;#41;/spanbr / span style=color: #666666; font-style:
italic;// s'il existe un champ, on le retourne/spanbr / span style=color: #b1b100;if/spanspan
style=color: #009900;#40;/spanspan style=color: #000088;$row/span span style=color: #339933;=/span
spip_fetch_arrayspan style=color: #009900;#40;/spanspan style=color: #000088;$r/spanspan
style=color: #009900;#41;/spanspan style=color: #009900;#41;/span span style=color:
#b1b100;return/span span style=color: #000088;$row/spanspan style=color: #009900;#91;/spanspan
style='titre'/spanspan style=color: #009900;#93;/span;br / span style=color: #009900;}/spanbr /
span style=color: #666666; font-style: italic;// sinon, rien !/spanbr / span style=color:
#b1b100;return/span span style=''/span;br / span style=color: #009900;}/span/divdiv
class='code_download' style='text-align: right;' a
href='http://www.spip-contrib.net/local/cache-code/40188ab05bb1d0c8d6b9ac3c49e607c5.txt'
style='font-family: verdana, arial, sans; font-weight: bold; font-style:
normal;'Télécharger/a/div/div pHistoire de simplifier un peu, voici deux autres
filtres bien plus pratiques : strong|titre_rubrique/strong et strong|titre_groupe/strong. En fait
ils sont tous les deux basés sur le précédent : br /img
src=http://www.spip-contrib.net/local/cache-vignettes/L8xH11/puce-5996f.gif width='8' height='11'
alt=- style='height:11px;width:8px;' / Le premier, appliqué à un #ID_RUBRIQUE (de
tout objet sauf les rubriques elles-mêmes) donne le titre de la rubrique parente.
Appliqué à #ID_PARENT (champ disponible dans la table des rubriques), ce filtre
renverra la rubrique mère de la rubrique en cours. br /img
src=http://www.spip-contrib.net/local/cache-vignettes/L8xH11/puce-5996f.gif width='8' height='11'
alt=- style='height:11px;width:8px;' / Le second, appliqué à #ID_GROUPE, balise
disponible uniquement si l'objet est un mot-clé, donne le titre du groupe parent./p pVoici
comment nos quatres exemples précédents peuvent maintenant s'écrire : br /img
src=http://www.spip-contrib.net/local/cache-vignettes/L8xH11/puce-5996f.gif width='8' height='11'
alt=- style='height:11px;width:8px;' / code class='spip_code'
dir='ltr'BOUCLE_a(ARTICLES)[(#ID_RUBRIQUE|titre_rubrique)]/BOUCLE_a/code br /img
src=http://www.spip-contrib.net/local/cache-vignettes/L8xH11/puce-5996f.gif width='8' height='11'
alt=- style='height:11px;width:8px;' / code class='spip_code'
dir='ltr'BOUCLE_b(BREVES)[(#ID_BREVE|titre_rubrique)]/BOUCLE_b/code br /img
src=http://www.spip-contrib.net/local/cache-vignettes/L8xH11/puce-5996f.gif width='8' height='11'
alt=- style='height:11px;width:8px;' / code class='spip_code'
dir='ltr'BOUCLE_r(RUBRIQUES)[(#ID_PARENT|titre_rubrique)]/BOUCLE_r/code br /img
src=http://www.spip-contrib.net/local/cache-vignettes/L8xH11/puce-5996f.gif width='8' height='11'
alt=- style='height:11px;width:8px;' / code class='spip_code'
dir='ltr'BOUCLE_m(MOTS)[(#ID_GROUPE|titre_groupe)]/BOUCLE_m/code/p pVoici le code de ces deux
filtres :/p div class=coloration_codediv class=spip_php codespan style=color: #666666; font-style:
italic;// filtre 'titre_rubrique' a utiliser sur #ID_RUBRIQUE d'un objet ou #ID_PARENT d'une
rubrique/spanbr / span style=color: #666666; font-style: italic;// Ex : :
BOUCLE_a(ARTICLES)[(#ID_RUBRIQUE|titre_rubrique)]/BOUCLE_a/spanbr / span style=color: #666666;
font-style: italic;// Ex : : BOUCLE_b(BREVES)[(#ID_RUBRIQUE|titre_rubrique)]/BOUCLE_b/spanbr / span
style=color: #666666; font-style: italic;// Ex : :
BOUCLE_r(RUBRIQUES)[(#ID_PARENT|titre_rubrique)]/BOUCLE_r/spanbr / span style=color: #000000;
font-weight: bold;function/span titre_rubriquespan style=color: #009900;#40;/spanspan style=color:
#000088;$id_rubrique/spanspan style=color: #339933;,/span span style=color: #000088;$table/spanspan
style=color: #339933;=/spanspan style='rubriques'/spanspan style=color: #339933;,/span span
style=color: #000088;$id/spanspan style=color: #339933;=/spanspan style='id_rubrique'/spanspan
style=color: #009900;#41;/span span style=color: #009900;{/spanbr / span style=color:
#b1b100;return/span cs_titre_idspan style=color: #009900;#40;/spanspan style=color:
#000088;$id_rubrique/spanspan style=color: #339933;,/span span style=color: #000088;$table/spanspan
style=color: #339933;,/span span style=color: #000088;$id/spanspan style=color:
#009900;#41;/span;br / span style=color: #009900;}/spanbr / span style=color: #666666; font-style:
italic;// filtre 'titre_groupe' a utiliser sur #ID_GROUPE d'un mot-clef/spanbr / span style=color:
#666666; font-style: italic;// Ex : : BOUCLE_m(MOTS)[(#ID_GROUPE|titre_groupe)]/BOUCLE_m/spanbr /
span style=color: #000000; font-weight: bold;function/span titre_groupespan style=color:
#009900;#40;/spanspan style=color: #000088;$id_mot/spanspan style=color: #339933;,/span span
style=color: #000088;$table/spanspan style=color: #339933;=/spanspan style='groupes_mots'/spanspan
style=color: #339933;,/span span style=color: #000088;$id/spanspan style=color: #339933;=/spanspan
style='id_groupe'/spanspan style=color: #009900;#41;/span span style=color: #009900;{/spanbr / span
style=color: #b1b100;return/span cs_titre_idspan style=color: #009900;#40;/spanspan style=color:
#000088;$id_mot/spanspan style=color: #339933;,/span span style=color: #000088;$table/spanspan
style=color: #339933;,/span span style=color: #000088;$id/spanspan style=color:
#009900;#41;/span;br / span style=color: #009900;}/span/divdiv class='code_download'
style='text-align: right;' a
href='http://www.spip-contrib.net/local/cache-code/74f50bc612c98ce7df7e9ded0b55e215.txt'
style='font-family: verdana, arial, sans; font-weight: bold; font-style:
normal;'Télécharger/a/div/div pDans l'absolu, ces filtres suffisent
déjà à simplifier l'écriture de vos squelettes, mais.../p pcode
class='spip_code' dir='ltr'BOUCLE_a(ARTICLES)[(#ID_RUBRIQUE|titre_rubrique)]/BOUCLE_a/code/p h3
class=spipLES BALISES/h3 pstrongMais allez, oubliez tout ce qu'on vient de dire, il y a encore plus
simple ! Laissons tomber les filtres et créons des balises !/strong/p pLa balise
strong#TITRE_PARENT/strong ne sert qu'à une chose, faire croire au compilateur SPIP qu'il
existe un champ 'titre_parent' dans la base de données. Le code va subtilement lui faire
chercher autre chose, un « vrai » champ de la base de données et on profit de
l'aubaine pour appliquer directement le filtre qu'on vient d'imaginer. Voici comment sont devenus
nos exemples proposés ci-dessus :/p pimg
src=http://www.spip-contrib.net/local/cache-vignettes/L8xH11/puce-5996f.gif width='8' height='11'
alt=- style='height:11px;width:8px;' / code class='spip_code'
dir='ltr'BOUCLE_a(ARTICLES)#TITRE_PARENT/BOUCLE_a/code br /img
src=http://www.spip-contrib.net/local/cache-vignettes/L8xH11/puce-5996f.gif width='8' height='11'
alt=- style='height:11px;width:8px;' / code class='spip_code'
dir='ltr'BOUCLE_b(BREVES)#TITRE_PARENT/BOUCLE_b/code br /img
src=http://www.spip-contrib.net/local/cache-vignettes/L8xH11/puce-5996f.gif width='8' height='11'
alt=- style='height:11px;width:8px;' / code class='spip_code'
dir='ltr'BOUCLE_r(RUBRIQUES)#TITRE_PARENT/BOUCLE_r/code br /img
src=http://www.spip-contrib.net/local/cache-vignettes/L8xH11/puce-5996f.gif width='8' height='11'
alt=- style='height:11px;width:8px;' / code class='spip_code'
dir='ltr'BOUCLE_m(MOTS)#TITRE_PARENT/BOUCLE_m/code/p pJoli n'est-ce pas ?/p pLa fonction «
balise_TITRE_PARENT_dist() » définit donc la balise #TITRE_PARENT. Cette fonction est
appelée par le compilateur au strongre/strongcalcul de la page, pour remplacer le symbole
« #TITRE_PARENT » par l'appel du code PHP, voilà comment./p pLe fichier HTML
dans lequel on va placer #TITRE_PARENT, qu'on appelle squelette, est décortiqué par
le compilateur pour y découvrir des symboles qu'il va transformer en une portion de code
plus complexe./p pCes portions de code vont être empilées dans une mémoire
à laquelle on accédera plus tard pour recomposer un nouveau fichier, écrit en
PHP./p pLa définition d'une balise SPIP sert donc à préciser par quelle
portion de code sera remplacé le symbole auquel il fait référence, le tout
étant stocké au bon endroit dans la pile. Cet endroit est un objet technique
appelé Champ (parce qu'il fait référence au champ dans une table de base de
données). Celui-ci est capable d'explorer la pile de code qu'on a mémorisé et
pour faciliter l'exploration de cette pile mémoire, ainsi que la composition du code, on
peut utiliser les fonctions du compilateur. C'est le fameux paramètre code class='spip_code'
dir='ltr'$p/code. Voici le code de cette balise :/p div class=coloration_codediv class=spip_php
codespan style=color: #666666; font-style: italic;// Rubrique parente de tout objet
possédant un 'id_rubrique' ou groupe de mot-clef/spanbr / span style=color: #000000;
font-weight: bold;function/span balise_TITRE_PARENT_distspan style=color: #009900;#40;/spanspan
style=color: #000088;$p/spanspan style=color: #009900;#41;/span span style=color: #009900;{/spanbr
/ span style=color: #666666; font-style: italic;// examen du contexte/spanbr / span style=color:
#b1b100;switch/span span style=color: #009900;#40;/spanspan style=color: #000088;$p/spanspan
style=color: #339933;-/spanspan style=color: #004000;type_requete/spanspan style=color:
#009900;#41;/span span style=color: #009900;{/spanbr / span style=color: #b1b100;case/span span
style='rubriques'/spanspan style=color: #339933;:/spanbr / span style=color:
#000088;$table_parent/span span style=color: #339933;=/span span style='rubriques'/span;br / span
style=color: #000088;$champ_parent/span span style=color: #339933;=/span span
style='id_rubrique'/span;br / span style=color: #000088;$id/span span style=color: #339933;=/span
span style='id_parent'/span;br / span style=color: #b1b100;break/span;br / span style=color:
#b1b100;case/span span style='mots'/spanspan style=color: #339933;:/spanbr / span style=color:
#000088;$table_parent/span span style=color: #339933;=/span span style='groupes_mots'/span;br /
span style=color: #000088;$id/span span style=color: #339933;=/span span style=color:
#000088;$champ_parent/span span style=color: #339933;=/span span style='id_groupe'/span;br / span
style=color: #b1b100;break/span;br / span style=color: #000000; font-weight: bold;default/spanspan
style=color: #339933;:/spanbr / span style=color: #000088;$table_parent/span span style=color:
#339933;=/span span style='rubriques'/span;br / span style=color: #000088;$id/span span
style=color: #339933;=/span span style=color: #000088;$champ_parent/span span style=color:
#339933;=/span span style='id_rubrique'/span;br / span style=color: #b1b100;break/span;br / span
style=color: #009900;}/spanbr / span style=color: #666666; font-style: italic;// id de l'objet a
trouver pour retourner son titre/spanbr / span style=color: #000088;$id/span span style=color:
#339933;=/span champ_sqlspan style=color: #009900;#40;/spanspan style=color: #000088;$id/spanspan
style=color: #339933;,/span span style=color: #000088;$p/spanspan style=color: #009900;#41;/span;br
/ span style=color: #666666; font-style: italic;// le code php a executer/spanbr / span
style=color: #000088;$p/spanspan style=color: #339933;-/spanspan style=color: #004000;code/span
span style=color: #339933;=/span span style=color: #0000ff;cs_titre_id(intval($id),
'$table_parent', '$champ_parent')/span;br / span style=color: #b1b100;return/span span style=color:
#000088;$p/span;br / span style=color: #009900;}/span/divdiv class='code_download'
style='text-align: right;' a
href='http://www.spip-contrib.net/local/cache-code/5ed2d6b6450e15afe870a3495158e052.txt'
style='font-family: verdana, arial, sans; font-weight: bold; font-style:
normal;'Télécharger/a/div/div pOn enregistre donc dans ce champ le code PHP qu'on
souhaite. Ici, un appel au filtre 'cs_titre_id' détaillé plus haut, avec en
paramètre, la référence à de « vrais » champs de la la
table de base de données : le numéro du père connu du fils. D'où
l'utilisation de la fonction champ_sql, qui explore la pile pour atteindre le « vrai »
champ SQL qui nous intéresse ici./p pEncore un petit plaisir ? Voici une deuxième
balise qui permet d'obtenir facilement le titre du groupe auquel appartient un mot-clé. Bien
sûr, ceci est très pédagogique, mais que ne donnerait-on pour simplifier la
lecture de nos squelettes ! Voici le code de la balise strong#TITRE_GROUPE/strong :/p div
class=coloration_codediv class=spip_php codespan style=color: #666666; font-style: italic;// juste
le groupe d'un mot-clef/spanbr / span style=color: #000000; font-weight: bold;function/span
balise_TITRE_GROUPE_distspan style=color: #009900;#40;/spanspan style=color: #000088;$p/spanspan
style=color: #009900;#41;/span span style=color: #009900;{/spanbr / span style=color:
#000088;$p/spanspan style=color: #339933;-/spanspan style=color: #004000;code/span span
style=color: #339933;=/span span style=color: #0000ff;''/span;br / span style=color:
#b1b100;return/span span style=color: #000088;$p/spanspan style=color: #339933;-/spanspan
style=color: #004000;type_requete/spanspan style=color: #339933;==/spanspan
style='mots'/span?balise_TITRE_PARENT_distspan style=color: #009900;#40;/spanspan style=color:
#000088;$p/spanspan style=color: #009900;#41;/spanspan style=color: #339933;:/spanspan style=color:
#000088;$p/span;br / span style=color: #009900;}/span/divdiv class='code_download'
style='text-align: right;' a
href='http://www.spip-contrib.net/local/cache-code/6e3a641a8dd7322582ef53717bb77fff.txt'
style='font-family: verdana, arial, sans; font-weight: bold; font-style:
normal;'Télécharger/a/div/div pPour les connaisseurs, il existe en fait un champ
'type' dans la table des mots-clés, qui reproduit exactement ce que l'on veut ici. La balise
#TITRE_GROUPE renvoie donc le même résultat que #TYPE ; seuls les traitements peuvent
être différents (cf. paragraphe suivant)./p h3 class=spipLA SPÉCIFICATION DES
TRAITEMENTS/h3 pUne fois que le compilateur à entièrement exploré le fichier
HTML et constitué cette fameuse pile mémoire, il va fabriquer un fichier en PHP qui
aura donc remplacé tous les symboles par du « vrai » code. Ce résultat
est visible quand on affiche le débusqueur (code class='spip_code'
dir='ltr'var_mode=debug/code)./p pMais avant d'imprimer le code qu'on a demandé dans le
fichier, SPIP va ajouter d'autres traitements, autrement dit, il va appliquer d'autres filtres. Par
exemple, la typographie, la fonction propre() qui transformera les raccourcis SPIP en HTML ou
autre. Tout ces traitements sont regroupés dans une variable code class='spip_code'
dir='ltr'$table_des_traitements/code./p pUn SPIP installé connaît les traitements
qu'il doit appliquer au champ qui lui sont connu. Mais #TITRE_PARENT, il ne le connaît pas
encore. Or, c'est le titre d'une rubrique, il faut appliquer la typographie des #TITREs
traditionnels. On explique donc au compilateur que #TITRE_PARENT est à traiter comme un
#TITRE normal et par conséquent, la typographie standard lui sera appliquée avant son
affichage./p div class=coloration_codediv class=spip_php codespan style=color: #666666; font-style:
italic;/// invoquer la table des traitements/spanbr / include_spipspan style=color:
#009900;#40;/spanspan style='public/interfaces'/spanspan style=color: #009900;#41;/span;br / a
href=http://www.php.net/globalspan style=color: #990000;global/span/a span style=color:
#000088;$table_des_traitements/span;br / span style=color: #666666; font-style: italic;//
TITRE_PARENT et TITRE_GROUPE sont des TITREs !/spanbr / span style=color: #b1b100;if/span span
style=color: #009900;#40;/spanspan style=color: #339933;!/spana href=http://www.php.net/issetspan
style=color: #990000;isset/span/aspan style=color: #009900;#40;/spanspan style=color:
#000088;$table_des_traitements/spanspan style=color: #009900;#91;/spanspan
style='TITRE_PARENT'/spanspan style=color: #009900;#93;/spanspan style=color: #009900;#41;/spanspan
style=color: #009900;#41;/spanbr / span style=color: #000088;$table_des_traitements/spanspan
style=color: #009900;#91;/spanspan style='TITRE_PARENT'/spanspan style=color: #009900;#93;/span
span style=color: #339933;=/span span style=color: #000088;$table_des_traitements/spanspan
style=color: #009900;#91;/spanspan style='TITRE'/spanspan style=color: #009900;#93;/span;br / span
style=color: #b1b100;if/span span style=color: #009900;#40;/spanspan style=color: #339933;!/spana
href=http://www.php.net/issetspan style=color: #990000;isset/span/aspan style=color:
#009900;#40;/spanspan style=color: #000088;$table_des_traitements/spanspan style=color:
#009900;#91;/spanspan style='TITRE_GROUPE'/spanspan style=color: #009900;#93;/spanspan style=color:
#009900;#41;/spanspan style=color: #009900;#41;/spanbr / span style=color:
#000088;$table_des_traitements/spanspan style=color: #009900;#91;/spanspan
style='TITRE_GROUPE'/spanspan style=color: #009900;#93;/span span style=color: #339933;=/span span
style=color: #000088;$table_des_traitements/spanspan style=color: #009900;#91;/spanspan
style='TITRE'/spanspan style=color: #009900;#93;/span;br / span style=color: #009900;}/span/divdiv
class='code_download' style='text-align: right;' a
href='http://www.spip-contrib.net/local/cache-code/60f40fc4345dd56421d075ac3c94dd6e.txt'
style='font-family: verdana, arial, sans; font-weight: bold; font-style:
normal;'Télécharger/a/div/div pPetite finesse ici : Les experts pourront toute de
même personnaliser le traitement qu'ils tiennent à réserver à ces
nouvelles balises. Aussi, si un traitement spécifique leur est affecté dans le
fichier code class='spip_code' dir='ltr'config/mes_options.php/code, on ne l'écrase pas./p
h3 class=spipLa suite : la syntaxe étendue.../h3 pPourquoi ne pas étendre cette
idée #TITRE_OBJET à tous les objets de SPIP ? L'idée serait de programmer une
balise « ouverte » (#TITRE_QQCHOSE) qui donnerait le titre de n'importe quel objet
référencé dans n'importe quelle table, grâce à son simple «
id_qqchose »./p pSaviez-vous que la table 'spip_forum' par exemple possède tous ces
champs : iid_forum, id_parent, id_thread, id_rubrique, id_article, id_breve, id_auteur, id_message,
id_syndic/i ? Et donc, autant de liaisons avec tous ces objets.../p pM'enfin, avec nos filtres
décrits en tout début d'article, on peut, même sans balise
dédiée, accéder à tous les titres sans boucle supplémentaire. Il
suffit juste d'avoir un peu les idées claires :/p div style='text-align: left;'
class='spip_code' dir='ltr'codeBOUCLE_f1(FORUMS){tout}br / bull; Message #ID_FORUM, enfant du
message : br / [(#ID_PARENT|cs_titre_id{forum,id_forum})]br / br /br / /BOUCLE_f1br / br /
BOUCLE_f2(FORUMS){tout}br / bull; Message #ID_FORUM, attaché à l'article : br /
[(#ID_ARTICLE|cs_titre_id{articles,id_article})]br / br /br / /BOUCLE_f2/code/div pAprès
activation de la fonctionnalité au niveau de la configuration de l'outil « balise
#TITRE_PARENT », le Couteau Suisse donne accès à ces nouvelles balises
raccourcis (uniquement vous utilisez SPIP v2.0 minimum). Il s'agit donc d'un ensemble de balises
#TITRE_XXX qui pourront vous donner le titre de l'objet 'xxx', à condition que le champ
'id_xxx' soit présent dans la table en cours (#ID_XXX utilisable dans la boucle en cours)./p
pPar exemple, dans une boucle sur (ARTICLES), #TITRE_SECTEUR donnera le titre du secteur dans
lequel est placé l'article en cours, puisque l'identifiant #ID_SECTEUR (ou le champ
'id_secteur') est disponible dans ce cas./p pCes « balises ouvertes » existent
déjà dans SPIP : #LOGO_QQCHOSE, #URL_QQCHOSE, #FORMULAIRE_QQCHOSE, etc./p pDans le
cas de notre table 'spip_forum', les nouvelles balises #TITRE_THREAD, #TITRE_RUBRIQUE,
#TITRE_ARTICLE, #TITRE_BREVE, #TITRE_AUTEUR, #TITRE_MESSAGE renverrons les titres contenus dans la
table, si les identifiants respectifs (#ID_THREAD, #ID_RUBRIQUE, etc.) ont été
renseignés par SPIP au moment de la création de l'objet 'forum'./p pUne exception
à connaitre : équivalente à la balise #NOM placée dans une boucle sur
(AUTEURS), la balise #TITRE_AUTEUR renvoie le 'nom' de l'auteur et non le 'titre'./p h3
class=spipMise en garde !!/h3 pL'un des intérêts de cette contribution est la
pédagogie. Dans vos squelettes, n'abusez pas des balises décrites ici, car chacune
crée un appel à la base de données. Hors, il faut tout faire pour
éviter les appels trop fréquents, histoire de ne pas surcharger le serveur, surtout
s'il est mutualisé. Certains hébergeurs limitent parfois le nombre d'accès
afin d'éviter les abus./p pimg
src=http://www.spip-contrib.net/local/cache-vignettes/L8xH11/puce-5996f.gif width='8' height='11'
alt=- style='height:11px;width:8px;' / La règle est donc : strongune seule balise
#TITRE_QQCHOSE par(...)

|
|