Outputting tags to a separate page
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
You can use the code of the plugin Tags:
Code: Select all
<?php
global $tags;
global $url;
echo '<ul>';
// By default the database of tags are alphanumeric sorted
foreach( $tags->db as $key=>$fields ) {
echo '<li>';
echo '<a href="'.DOMAIN_TAGS.$key.'">';
echo $fields['name'];
echo '</a>';
echo '</li>';
}
echo '</ul>';
?>
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Excuse me, but where to insert this code and how? I made a static page "Tags" and if I insert it from the editor, then the code does not work, and I cannot understand how to insert it differently.Edi wrote: ↑Sun Aug 30, 2020 1:34 am You can use the code of the plugin Tags:
Code: Select all
<?php global $tags; global $url; echo '<ul>'; // By default the database of tags are alphanumeric sorted foreach( $tags->db as $key=>$fields ) { echo '<li>'; echo '<a href="'.DOMAIN_TAGS.$key.'">'; echo $fields['name']; echo '</a>'; echo '</li>'; } echo '</ul>'; ?>
Sorry for a possibly stupid question ..)
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
There are explanations how themes and templates work and examples in the documentation:
https://docs.bludit.com/en/themes
https://docs.bludit.com/en/themes
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets