T
T
TechNOIR2017-02-21 12:41:58
css
TechNOIR, 2017-02-21 12:41:58

How to implement a tag cloud / menu as in the example?

Good afternoon. How to implement a tag cloud / menu as in the example?
Using html + css
Or if it is possible to implement in DLE using some means?
5214fceaf62140989da7f2fc3fd473c9.JPG

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2017-02-21
@Stalker_RED

Select a list of tags and their number from the database

select tag, count(*) as cnt from article_has_tag
group by tag
order by cnt desc
limit 30

Using data on the number of tags, assign them a weight in some range, for example 100-150.
And display in html <a href="/tag/ $tagname " style="font-size: $weight %"> $tagname </a>
Or you can use some ready-made js library mistic100.github.io/jQCloud
(a lot of analogues are googled according to the words tag cloud js or css)

M
Maxim Timofeev, 2017-02-21
@webinar

https://yandex.ru/search/?text=js%20cloud%20tags...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question