Page 1 of 1

ID to the tag assignment

Posted: Sat Apr 30, 2016 4:59 pm
by mahmut
Hello , how can you do want to assign to the tag ID ?

Re: ID to the tag assignment

Posted: Sun May 01, 2016 6:17 am
by diego
This is a question or an idea ?

Re: ID to the tag assignment

Posted: Sun May 01, 2016 7:21 pm
by mahmut
diego wrote:This is a question or an idea ?
Thank you. This is a question .

Re: ID to the tag assignment

Posted: Wed May 04, 2016 1:07 am
by Edi
What exactly do you want to do? Can you please give an example.

Re: ID to the tag assignment

Posted: Wed May 04, 2016 12:02 pm
by mahmut
Edi wrote:What exactly do you want to do? Can you please give an example.
Oky,

I want to assign CSS was created to each tag.

Example:

Code: Select all

<div class="tag-id-1"><li><a href="#">Example tags 1</a></li></div>
<div class="tag-id-2"><li><a href="#">Example tags 2</a></li></div>
<div class="tag-id-3"><li><a href="#">Example tags 3</a></li></div>
Thanks.

Re: ID to the tag assignment

Posted: Thu May 05, 2016 9:11 pm
by Edi
If you want add a class for example to the plugin Tags list why not like this (line 73):

Code: Select all

		foreach($tagArray as $tagKey=>$fields)
		{
			// Print the parent
			$html .= '<div class="tag-'.$fields['tagKey'].'"><li><a href="'.HTML_PATH_ROOT.$filter.'/'.$fields['tagKey'].'">'.$fields['name'].' ('.$fields['count'].')</a></li></div>';
		}
By the way: I would a class not give a name with "id". ;-)

Re: ID to the tag assignment

Posted: Fri May 06, 2016 8:20 am
by mahmut
Edi wrote:If you want add a class for example to the plugin Tags list why not like this (line 73):

Code: Select all

		foreach($tagArray as $tagKey=>$fields)
		{
			// Print the parent
			$html .= '<div class="tag-'.$fields['tagKey'].'"><li><a href="'.HTML_PATH_ROOT.$filter.'/'.$fields['tagKey'].'">'.$fields['name'].' ('.$fields['count'].')</a></li></div>';
		}
By the way: I would a class not give a name with "id". ;-)
You 're a great brother! Thank you. So how can you answer my other question?

viewtopic.php?f=6&t=629