Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#196 2011-12-15 20:25:38

totoff
Member
From: Cologne, Germany
Registered: 2011-04-04
Posts: 145
Website

Re: smd_tags: unlimited article, image, file and link taxonomy

It’s complicated, but does that make some kind of sense?

yes, it does. but first of all thanks for this comprehensive answer. appreciate that you take so much time for individual support besides developing this stuff! that’s of enormous help.

in short, what i learn from your explanation is, that smd_tag_list needs the section named in the preferences under “trigger(s) for tag lists” to work properly. in my case this section is named “tag_landing” and indeed it is the section on which i got the tag working.

unfortunately this doesn’t solve my problem. all i originally wanted was more categories to build a top level category navigation from which works on every section. i used category_list and it worked fine, but was limited to the two categories that are part of the core.

i’ll now go back to the core functionality for the moment. that’s fine for me because i work on my private fotoblog in order to get better grips on txp for client work.

but, although it tends to be off topic, please allow me to ask why the core is limited to two categories? i assume this to be a drawback for potential clients if they start to compare txp offering with for example wp. ist it to keep the core fast and leightweight?

again, thanks pretty much for your help!

Offline

#197 2011-12-16 15:54:13

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,440
Website GitHub

Re: smd_tags: unlimited article, image, file and link taxonomy

totoff wrote:

all i originally wanted was more categories to build a top level category navigation from which works on every section.

You can probably do this, but I don’t have time right now to propose a solution. Leave it with me and I’ll see if I can cook something up for you.

why the core is limited to two categories?

Legacy. Changing it breaks too much stuff in the 4.x branch. It’ll change one day.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#198 2011-12-31 09:21:49

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

Re: smd_tags: unlimited article, image, file and link taxonomy

Hi:

I’m using this code in my /smd_tags/article/my-tag page and works great:

<txp:smd_tag_list>
...
<txp:smd_related_tags section="directory" form="my-list-form" wraptag="ul" />
...
</txp:smd_tag_list>

But I don’t know if it is posible to filter the query by maching a custom_field value.

I would like, in case there is a param pased by URL, like /smd_tags/article/my-tag?param=foo, list only articles that match custom_field “my-custom” value=“foo”.

I am playing with the “match” option of smd_tag_list but don’t find a way.

Perhaps it would be possible to do with smd_query instead of using smd_related_tags? (the SQL sintax is a deep mistery to my, I’m not a programmer)

Last edited by milosevic (2011-12-31 09:22:56)


<txp:rocks/>

Offline

#199 2012-01-15 19:50:01

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

Re: smd_tags: unlimited article, image, file and link taxonomy

Hello. I have an error with smd_tags instalation:

Can’t see the smd_tag selector (any kind of it) at the Write tab. Then I use rss unlimited categories and later import from smd_tags Extension tab.

When I save a new article, I receibe this message at the bottom of the page:

“Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘)’ at line 1 select tag_id from smd_tags_cat where cat_id IN () in /home/mi-site-name/mi-site-name.com/textpattern/lib/txplib_db.php on line 89”

The diagnosis tab sais th hosting is working with MySQL: 5.1.39-log

Any idea?


<txp:rocks/>

Offline

#200 2012-01-23 09:24:12

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,440
Website GitHub

Re: smd_tags: unlimited article, image, file and link taxonomy

milosevic wrote:

Can’t see the smd_tag selector (any kind of it) at the Write tab

Hmmm, sorry for not replying sooner. The error seems to be related to categories. My guess is that you have set the Link tags to categories preference on and/or have no regular Txp article categories defined. In v0.40 you need at least one category defined (it’s a bug).

Are you using 0.40 or 0.41 beta? I fixed this issue in the beta so if you’re not using it I suggest you try it out as it also massively reduces the plugin’s impact on your database and page load time.

If it’s not that, then I’m not sure what it could be without a bit more info.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#201 2012-01-23 11:32:42

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

Re: smd_tags: unlimited article, image, file and link taxonomy

I was using 4.0, but upgrading to 4.1 didn’t solves the problem. Assigning content to categories with zero articles didn’t fix the problem

I have started from zero deletin the smd_tags tables an reimporting all the stuff from rss_uc. Before an hour reconstructing some dependences, everything looks working ok.

Thank’s!


<txp:rocks/>

Offline

#202 2012-02-01 00:41:19

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,440
Website GitHub

Re: smd_tags: unlimited article, image, file and link taxonomy

I’ve just pushed up a new beta which fixes some of the URL-related problems. So in addition to the stuff I mentioned previously this version also:

  • Fixes <txp:smd_if_tag_list> context trigger with empty URL params. Previously it was reporting ‘true’ if you visited a trigger page with no tags and no tag types. e.g. site.com/trigger/article/tag-name, site.com/trigger/article and site.com/trigger all used to return true. Now only the first two do: the latter case returns false so you can detect if the list has no tags in the current context (and then maybe use showall="1" to list all tags in your <txp:else /> branch).
  • Fixes <txp:smd_tag_list> on empty list and non-list pages. Similar to the above, on pages without tag context, <txp:smd_tag_list> would not fire if there were no tag_type/tags in the URL.
  • Fixed <txp:smd_related_tags> when using it inside smd_tag_list with showall="1". This is a similar problem to the above: it now correctly identifies the tag context at all times.
  • Plays better with with gbp_permanent_links when using <txp:smd_tag_name> to link to tag landing pages.
  • Swaps &nbsp; for the code with ‘#160;’ in it that I can’t print here because it gets eaten by Textile. I did this for no other reason than someone said it was a good idea in case anyone is still serving content as XHTML+XML. I reserve the right to be wrong and put nbsp back..

Although I think this version is better and more consistent it has some rather drastic logic alterations behind the scenes, which I hope won’t give anyone any breakage from prior functionality. Please test it and let me know if you spot any regression. Thanks for your continued patience while I tinker with this.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#203 2012-02-02 23:22:37

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

Re: smd_tags: unlimited article, image, file and link taxonomy

Hi, Stef:

I don’t know if it is a bug or it is normal (If it is normal behavior then I’m not understanding well this tag).

This code, used in an article page, works ok form me:

<txp:smd_tag_list showall="1" parent="a-parent-tag">
    <txp:smd_tag_name/> <txp:smd_tag_count/>
</txp:smd_tag_list>

result:

a-parent-tag (0)
a-child-tag (1)
another-child-1 (1)
another-child-2 (0)
another-child-3 (0)

but, when I try to hide the empty tags removing showall=“1” or changing its value to showall=“0”, returns nothing.

If I try to avoid the parent-tag with the param sublevel=“1”, it returns the same tags (the father and the childs).
If I try to avoid the parent-tag with the param exclude=“a-parent-tag”, it also returns the same tags (the father and the childs).
So it looks like sublevel and exclude don’t works, and showall works badly.

Could you show me please a code example for retrieve “tell me wich not empty tags are child tags of a-parent-tag”?

Thanks a lot.

Last edited by milosevic (2012-02-06 12:13:54)


<txp:rocks/>

Offline

#204 2012-02-10 19:57:43

lithium002
Member
Registered: 2011-04-29
Posts: 25

Re: smd_tags: unlimited article, image, file and link taxonomy

Hi,

I was wondering if it is possible to show files in search results that have a certain tag associated with it?

Right now I’m using rah_file_search to show files on based on the search term, but this search excludes files that may have tags associated with them that are relevant to the search.

rah_file_search only shows results if the search term exists either in the title, name or description of the file. Is it possible to have another query that shows files based on smd_tags associated with it?

Offline

#205 2012-03-21 23:39:24

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

Re: smd_tags: unlimited article, image, file and link taxonomy

I’m getting the blank screen of plugin-rejection with the unzipped, zipped, and beta versions.

I’ve got a bleeding-edge installation, pulled from the repo a few hours ago, 4.4.1 (r3683).

Plenty of other plugins are installing fine (at least from their zipped versions).

Any suggestions?

Offline

#206 2012-03-21 23:48:03

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,440
Website GitHub

Re: smd_tags: unlimited article, image, file and link taxonomy

floodfish wrote:

I’ve got a bleeding-edge installation, pulled from the repo a few hours ago, 4.4.1 (r3683).

Haven’t tried installing it on SVN yet, but its plugin type will need altering to ‘5’ at a minimum (use phpMyAdmin if you can get the plugin installed, before you activate it). I need to check the plugin works with the new ajaxified Write tab. I suspect it’ll collapse in its current form.

The wrong plugin type shouldn’t stop you installing it though, so quite why it’s giving you the white finger is not obvious. I have another beta ready to go which is largely untested. You’re welcome to try that if you drop me a line.

Last edited by Bloke (2012-03-21 23:48:24)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#207 2012-03-29 04:42:44

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: smd_tags: unlimited article, image, file and link taxonomy

Hi Bloke,

I downloaded smd_tags 0.40 a while back to try it out. I haven’t actually been using it since, but it was still set to ‘Yes’ in my plugins list. I just noticed something in my txp Visitor Log that makes me curious. There are a bunch of hits to pages on my site that contain:

/?​smd_tag=&#38;​smd_tagtype=&#38;​

Here’s a screenshot. (btw: I’m not seeing any hits to these urls in my Google Analytics account)

I just set smd_tags to ‘No’ in my plugins list and I’ll watch it to see if the hits stop. Just wanted to let you know about it in case it is some kind of bug.

Thanks!

Last edited by photonomad (2012-03-29 04:46:27)

Offline

#208 2012-03-29 09:19:07

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,440
Website GitHub

Re: smd_tags: unlimited article, image, file and link taxonomy

photonomad wrote:

/?​smd_tag=&​smd_tagtype=&​

Thanks for the report. Yeah it’s a bug of sorts. The tag plugin adds that (with correct details filled in) to tag landing pages but in the current v0.40 it also adds empty params to other URLs, including those submitted by zem_contact_reborn, which is a pain. I’ve squashed it (I think) in the next version but I haven’t made the new beta available just yet while I test out a few more things.

Last edited by Bloke (2012-03-29 09:24:42)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#209 2012-03-30 02:54:15

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: smd_tags: unlimited article, image, file and link taxonomy

Thanks, Bloke! Good to know.

Offline

#210 2012-04-01 23:04:03

saccade
Plugin Author
From: Neubeuern, Germany
Registered: 2004-11-05
Posts: 521

Re: smd_tags: unlimited article, image, file and link taxonomy

Hi,
I have some difficulties with smd_tags:
First everything seemed to have installed well.
I have four articles with tags and seven different tags, not associated to categories.

But now it seems it is no longer functional:
In admin_side: When choosing a tag in the tag list on the right column and saving the article nothing gets saved (checked: no new entry in the smd_tags_used-table). This is true as well for new tags as for existing tags.
I’m not able to activate any tag in any article.
The landing page does show the four tagged articles.
I also can add new tags.
Weird.
I have no clue what happened. edit maybe I have a clue now: I work on a very new release (3685).
Any hints?

Last edited by saccade (2012-04-01 23:06:35)

Offline

Board footer

Powered by FluxBB