Here and at me a question...
I cause Ditto and I use a following pattern:
<h1>
<a href="[(base_url)][~[+id+]~]">
[+pagetitle+]
</a>
</h1>
<div class="author">Author [+author+] - [+date+]</div>
<div class="news">
<p>[+introtext+]</p>
<div class="more">[+link+]</div>
</div>
1) the Problem:
if [+introtext +] the document empty to deduce "content" the document without the reference is more detailed on it.
Type:
<h1>
<a href="[(base_url)][~[+id+]~]">
[+pagetitle+]
</a>
</h1>
<div class="author">Author [+author+] - [+date+]</div>
<div class="news">
<p>[+content+]</p>
</div>
1) the Problem: I tried to make check of type:
if (strlen("[+introtext+]">0))
{
return "<p>[+introtext+]</p>
<div class=\"more\">[+link+]</div>";
}
else
{
return "[+content+]";
}
Has not worked :-( And whether there is such attribute at Ditto as [+content +]!?
P.S.:
If to solve this problem it will be possible to facilitate to itself a life... I.e. if your news not greater, and you would not want that the user pressed the button "more in detail" and read too most. You simply fill news in [*content *] both leave "introtext" empty and are not soared in this occasion)
P.P.S.: Thanks the translator www.translate.ru