How to make sidebar?
Closed this issue · 3 comments
Dear Developer!
I'd like to ask how to make a sidebar? It's like your blog.
Ich möchte fragen, wie man eine Sidebar erstellt? Es ist wie dein Blog. :)
Thank you!
Regards,
Lacesz
Hi. Do you mean the recommended post list?
This is done manually within the template file main.php
and with the undocumented function POST()
, which will return an array with all the keys listed here. If the item ID wasn't found, an empty array is returned instead. This also applies to the other two functions PAGE()
and USER()
.
<ul id="recommended-list">
<?php foreach([3, 9, 11, 139, 45, 136, 67, 131] as $postID): ?>
<?php if($post = POST($postID)): ?>
<li>
<a href="<?=$post['URL']?>" title="<?=$Language->text('select_post')?> »<?=escapeHTML($post['ATTR']['NAME'])?>«">
<?=escapeHTML($post['ATTR']['NAME'])?>
</a>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
I hope, I could help you with it?
– Thomas
Hi. I don't exactly understand what you are asking for. The sidebar itself is just HTML and CSS, but here is the complete markup for the <aside>
-Tag how I use it on my own template.
I hope, this is helpful. If this is a question like "How to make a sticky sidebar with HTML and CSS", then I can't help you, because this is a HTML/CSS thing.
– Thomas