Remove tag limit please
Forum » The Community / General community discussion » Remove tag limit please
started by: montagmontag
on: 1184014222|%e %b %Y, %H:%M %Z|agohover
number of posts: 12
rss icon RSS: new posts
summary:
The limit on the amount of tags a page can have is kind of annoying. Can we get rid of it?
Remove tag limit please
montagmontag 1184014223|%e %b %Y, %H:%M %Z|agohover

I ran into this problem already a couple times, and I was wondering if it would be possible to increase the limit on page tags. Having to pick and choose the most important tags because of the limit is kind of annoying and the wiki would be a lot more useful if people could just go crazy with tags. Are there any plans for this in the works?

unfold Remove tag limit please by montagmontag, 1184014223|%e %b %Y, %H:%M %Z|agohover
Re: Remove tag limit please
hartnellhartnell 1184016924|%e %b %Y, %H:%M %Z|agohover

montag, I have the same problem too. To properly tag something I need at least 10-15 tags and that's not including administrative tags! Believe me, I feel your pain.

I'm not aware if it is in the works, and if so, it's probably low-priority compared to some of the other things that need to get done. People like you and me will just have to consider our tags carefully for just a bit longer.

In the meantime, you might want to mention it in the New Features and Ideas forum so that Michal (the wikidot developer) is aware of the issue.

—hartnell

last edited on 1184016975|%e %b %Y, %H:%M %Z|agohover by hartnell + show more
unfold Re: Remove tag limit please by hartnellhartnell, 1184016924|%e %b %Y, %H:%M %Z|agohover
Re: Remove tag limit please
Alberto BrandoliniAlberto Brandolini 1194965757|%e %b %Y, %H:%M %Z|agohover

I've found 2 separate tag limits issues so far:

  1. Total site tags seems to be limited to 30 tags overall. I can add new tags to pages but they won't be shown in the list. I've gotta investigate if there's a way to tweak the tag cloud component to show more.
  2. max page tags there is not a specific limit to how many tags one can add per page, but I've touched a limit on the length of the string contatining the space separated list of tags. This is kind of annoying, cause you can have also few long tags and run out of space.
unfold Re: Remove tag limit please by Alberto BrandoliniAlberto Brandolini, 1194965757|%e %b %Y, %H:%M %Z|agohover
Re: Remove tag limit please
gerdamigerdami 1194975394|%e %b %Y, %H:%M %Z|agohover

1. Total site tags seems to be limited to 30 tags overall.

Increase the limit from your nav:side page

[[module TagCloud minFontSize="80%" maxFontSize="200%" maxColor="8,8,64" minColor="100,100,128" target="system:page-tags" limit="30"]]

unfold Re: Remove tag limit please by gerdamigerdami, 1194975394|%e %b %Y, %H:%M %Z|agohover
Re: Remove tag limit please
andrewescottandrewescott 1197800686|%e %b %Y, %H:%M %Z|agohover

Yes please - I echo this request!

The limit seems to be currently 70 characters for the tags field. I hit this limit with a large number of the pages on the wiki, so tags get left off, making it potentially harder for people to find the pages they want.

Given that the limit is so low, even doubling it would not be sufficient - it needs to be much larger. At least 200 characters. Maybe 300 characters.

For example, my wiki deals with cafes, and it is appropriate to tag the city, suburb, style, mealtimes it is open for, etc. Very quickly you run out of space.

unfold Re: Remove tag limit please by andrewescottandrewescott, 1197800686|%e %b %Y, %H:%M %Z|agohover
Re: Remove tag limit please
allanpatrickallanpatrick 1202578953|%e %b %Y, %H:%M %Z|agohover

I agree, we need more space to tags, as a whole, and for each one.

unfold Re: Remove tag limit please by allanpatrickallanpatrick, 1202578953|%e %b %Y, %H:%M %Z|agohover
Re: Remove tag limit please
andrewescottandrewescott 1206700370|%e %b %Y, %H:%M %Z|agohover

Looking in the Wikidot v1 source, the tag limits appear to be..

In conf/database/wikidot-db.xml, the site_tag and page_tag tables define the tag field as varchar(20), limiting tags to at most 20 characters in length. This seems a little short, e.g. peoples-republic-of-china takes 25 characters. Maybe 30 would be a better limit?

However, there is no hard limit defined in the database corresponding to the number of tags possible on a site or a page.

In templates/modules/pagetags/PageTagsModule.tpl, the text input is defined like this:

<input type="text" class="text" size="50" maxlength="70" id="page-tags-input" value="{$tags|escape}"/>

which corresponds to the 70 character limit that I mentioned in an earlier post. This is much too short, and appears to be an arbitrary limit since there's no corresponding limit in the database. Something between 200 and 300 would make more sense.

Can these limits please be addressed? (Particularly the maxlength="70" one)

unfold Re: Remove tag limit please by andrewescottandrewescott, 1206700370|%e %b %Y, %H:%M %Z|agohover
Re: Remove tag limit please
andrewescottandrewescott 1207655979|%e %b %Y, %H:%M %Z|agohover

Continuing this thread beyond the point anyone else actually cares…

Entering a tag with a length longer that 20 characters on the sandbox produced the following error pop-up:

<br /> <b>Warning</b>: pg_query() [<a href='function.pg-query'>function.pg-query</a>]:
Query failed: ERROR: value too long for type character varying(20) in
<b>/var/www/www.wikidot.com/ozone/ozone/php/core/database/PgConnection.php</b> on line
<b>100</b><br /> {"status":"not_ok","message":"An error occurred while processing the
request.","callBackIndex":"1"}

Not particularly user-friendly, but it does confirm the database limit I mentioned before.

Also, found the following code in php/actions/WikiPageAction.php

if(strlen8($tags)>256){
  throw new ProcessException( _('"Tags" field too long.'), "form_error");
}

So there's another hard-coded limit on the size of the tags field to 256 characters. Setting the value in PageTagsModule.tpl to 256 would at least be consistent…
unfold Re: Remove tag limit please by andrewescottandrewescott, 1207655979|%e %b %Y, %H:%M %Z|agohover
Re: Remove tag limit please
gerdamigerdami 1207679445|%e %b %Y, %H:%M %Z|agohover
if(strlen8($tags)>256){
  throw new ProcessException( _('"Tags" field too long.'), "form_error");
}

I was a poor lonesome Cobol programmer some time ago. I never(?) handled errors in that way. I used a table of error messages which allowed to display error messages in the user's own language…

unfold Re: Remove tag limit please by gerdamigerdami, 1207679445|%e %b %Y, %H:%M %Z|agohover
Re: Remove tag limit please
andrewescottandrewescott 1208684762|%e %b %Y, %H:%M %Z|agohover

I don't know if this is the method used by Wikidot, but typically the function/macro _('Some text in English') will check a locale table and return the text equivalent of 'Some text in English' in the current locale. It has the advantage of being easy for the coder to read, and any good optimising compiler will remove the inefficiency of using a string rather than a numeric code.

I learned a bit of Cobol years ago, although never got to use it. I always thought that the method for declaring the format of a variable was quite elegant. Ideal for punched cards, too. :)

unfold Re: Remove tag limit please by andrewescottandrewescott, 1208684762|%e %b %Y, %H:%M %Z|agohover
Re: Remove tag limit please
Stephen KayStephen Kay 1209406387|%e %b %Y, %H:%M %Z|agohover

I will just add my voice here. I ran into this limitation today, we have some fairly long tag names, I was shocked to find I couldn't add any more tags to some articles. That seems antithetical to the purpose of a wiki. Please change this as quickly as possible! Thanks.

unfold Re: Remove tag limit please by Stephen KayStephen Kay, 1209406387|%e %b %Y, %H:%M %Z|agohover
Re: Remove tag limit please
hartnellhartnell 1209472753|%e %b %Y, %H:%M %Z|agohover

Yup, I agree. I've run into this problem quite a bit myself.

One of the major problems of wikidot is that it relies on tags for categories and namespaces for categories. We need to discuss what would be a better solution. :)

I'm adding this thread to my personal "thread about something that really needs to be improved" list.

— Shawn

unfold Re: Remove tag limit please by hartnellhartnell, 1209472753|%e %b %Y, %H:%M %Z|agohover
new post
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.