luya wrote:For your information, category "Society" is a child of "English". "*" before the category name is look at its parents, in my case, "English". I discovered that property, the help guide seems to lack that information
Maybe but, unless the the author states it specifically, for me it's a bug and I wouldn't count on it working.
luya wrote:The result from applying a debug comment Code:<!-- $news_there: '{$news_there}' -->returnsCode:' --> It seems empty and should lead to other condition where {news category="Society*"}
Check your source HTML: there seems to be some misuse of inline css/smarty:
Code: Select all
<!-- $news_there: '<style type="text/css">.news-summary {/* border-top: 1px solid #ccc; */margin-top: 1em;width: 100%;}.news-summary .heading {margin-top: 0.6em;font-weight: bold;width: 100%;}.article-thumbnail{display: block;max-width: 10em;height: 10em;background-color: #aaa;[[foreach from=$vendors item='one']][[$one]]transition: all .5s;[[/foreach]]transition: all .5s;}.article-thumbnail:hover{background-color: #888;}.news-article-list {font-family: 'asapregular', "Droid Sans", sans-serif;display: block;vertical-align: top;width: 100%;height: 80%;/* max-width: 18.5em; */border: 1px solid #ccc;box-shadow: 0px 0px 1px #ccc;background-color: #fff;margin: 0 0.4em 1em 0;padding: 0;overflow: hidden;[[foreach from=$vendors item='one']][[$one]]transition: all .5s;[[/foreach]]transition: all .5s;}.news-article-list:hover,.news-article-list:focus {color: #999;background-color: #FCF0EE;[[foreach from=$vendors item='one']][[$one]]box-shadow: 1px 1px 5px #201c1c;[[/foreach]]box-shadow: 1px 1px 5px #201c1c;}.news-article-list strong.category {position: relative;top: .125em;left: 0;margin: 1em 0.2em;font-family: "League Gothic", sans-serif;font-weight: bold;font-size: 200%;font-variant: small-caps;text-indent: 30%;text-shadow: 0px 0px 1px #201c1c;color: #201c1c;}.news-article-list a {text-decoration: none;color: #5f1300;}.news-article-list a > img {display: inline-block;vertical-align: top;width: 30%;height: 10em;margin: .8em;background-color: #ccc;}.news-article-list div.news-info {display: inline-block;vertical-align: text-top;width: 62%;height: 30%;margin: .8em .8em .8em 0;}.news-article-list div.news-info h2.news-title {font-size: 150%;margin: 0;padding: 0;transition: all .5s;[[foreach from=$vendors item='one']][[$one]]transition: all .5s;[[/foreach]]}.news-article-list a:hover{color: #e8231a;}.news-article-list p {font-size: 90%;text-overflow: ellipsis;}.news-meta {font-size: 80%;}</style><!-- .news-summary wrapper --><article class='news-summary'><!-- h2>Latest articles</h2 --><!-- .news-article-list (wrapping each article) --><section class='news-article-list'><div class="news-info"><header class='news-meta'>Oct 10, 2013<strong> Category:</strong> Société<!-- <strong> Posted by:</strong> racine --></header><h2 class="news-title"><a href='http://cwmag.ca/stg/news/10/82/La-guerre-contre-les-femmes.html' title='La guerre contre les femmes'>La guerre contre les femmes</a></h2><p> Une guerre invisible mais une réalité envers les femmes. <span class='more'><a href="http://cwmag.ca/stg/news/10/82/La-guerre-contre-les-femmes.html">More</a> →</span></p></div></section><!-- .news-article-list //--><!-- news pagination --></article><!-- .news-summary //-->' --> <!-- Page content -->
If your css is inline smarty tags should use
{} delimiters instead of
[[]] which is only required on css residing on the css database.