Articles Anywhere

Make unorderede list from nested articles

4 months 4 weeks ago #89266

Octav A's Avatar Octav A

Hello,
I have finally got required results from nested articles by custom fields. It is very nice and exactly what is needed from this extension.
One more question although. What is the correct articles syntax to display results in ul?
I need to get something like this:

<ul id="set 1 of nested articles">
 <div>Main article 1</div>
  <li>Nested article 1.1</li>
  <li>Nested article 1.2</li>
  .....
</ul>

<ul id="set 2 of nested articles">
 <div>Main article 2</div>
  <li>Nested article 2.1</li>
  <li>Nested article 2.2</li>
  .....
</ul>

...
...
Thanks for your time!

4 months 4 weeks ago #89268

Peter van Westen's Avatar Peter van Westen Admin

Probably something like this:

{articles...}
   <ul id="list-[id]">
      <div>[title]</div>
      {articles-nested ...}
         <li>[title]</li>
      {/articles-nested}
   </ul>
{/articles}

4 months 4 weeks ago #89272

Octav A's Avatar Octav A

Exactly - simple and magic - thanks!

4 months 4 weeks ago #89275

Peter van Westen's Avatar Peter van Westen Admin

I am just a conjurer of cheap tricks!

4 months 4 weeks ago #89282

Octav A's Avatar Octav A

Thanks. One more issue to make the magic perfect. How to order the nested articles sets by number of containing articles. I have checked the tutorials but not found for this very situation.

{articles...}
   <ul id="list-[id]">
      <div>[title]</div>
      {articles-nested ...}
         <li>[title]</li>
      {/articles-nested}
   </ul>
{/articles}
I need to order the ul articles sets by number of containing articles. Is it possible with in house syntax?

4 months 4 weeks ago #89283

Octav A's Avatar Octav A

And please advise how to make article links ([link][title][/link]) get visited class as appropriate. Now they dont. Thanks.

4 months 4 weeks ago #89288

Peter van Westen's Avatar Peter van Westen Admin

No, there is no way in Articles Anywhere to order by amount of nested articles.

how to make article links (...) get visited class
Not sure what you mean with that. What visited class?

4 months 4 weeks ago #89303

Octav A's Avatar Octav A

I mean the a:visited class when user clicking on links and when he gets back he/she sees that has clicked on it. Sorry for my non-technical language. This is not critical, but would be nice

4 months 4 weeks ago #89305

Octav A's Avatar Octav A

And last question regarding this topic would be how to display title of url when displaying articles links using

[link][title][/link]
syntax.
I dont think this will work [link title="Url title"][/link]. Please confirm.
Thanks.

4 months 4 weeks ago #89306

Andrea Malalana's Avatar Andrea Malalana Moderator

Octav A wrote:

I mean the a:visited class when user clicking on links and when he gets back he/she sees that has clicked on it. Sorry for my non-technical language. This is not critical, but would be nice
That has nothing to do with classes. That's a CSS selector. It's up to you to style it:

www.w3schools.com/cssref/sel_visited.asp

4 months 4 weeks ago #89307

Andrea Malalana's Avatar Andrea Malalana Moderator

Octav A wrote:

And last question regarding this topic would be how to display title of url when displaying articles links using
[link][title][/link]
syntax.
I dont think this will work [link title="Url title"][/link]. Please confirm.
Thanks.

You can do:
<a href="[url]" title="[title]">[title]</a>

4 months 4 weeks ago #89308

Octav A's Avatar Octav A

That is good, thanks!