-
- 188 Posts
Thanks for you solution. I'm using it with jquery UI tabs, and it seems to be working. However, what I'm noticing is that, rather than retrieving only the articles by the particular tag, it's doing this. For every article with that tag, it's displaying ALL of the articles. So if there are 6 articles, 2 of which are tagged, it will show 6 articles 2 times. Did you have this problem? If so, what did you do to correct it?
[[Edit]] All good - I was using "@INLINE [[+latest_posts]]" for the tpl, and realised that was the problem. Changed it to the (duplicated) default template for latest posts, works great.
[ed. note: moniarde last edited this post 11 years, 2 months ago.]
-
- 1,145 Posts
Enter and Retrieve Tags outside of Articles
For anyone using the wonderful NewsPublisher by Bob Ray: just make sure the articlestags TV is obviously connected (has Template Access) to your Template (even if not connected, Articles has a way of using the values of the Tv)
If not connected and you try to use NewsPublisher, you'll get the error: you are trying to use a TV that does not belong to blah blah. Once connected, everything becomes merry happiness.
Use existing tags, create new tags, use multiple tags. And in all, the Articles [[+tags]] will respect your input nicely.
Then you can use the above getResource call to make yourself even more happy...
One day, I was just mighty angry for nothing, at the fiction that NewsPublisher and getResources won't work with Tags. So I gave it a shot, and voila! I thank myself for daring and not wallowing in ignorantissimusness.
TinymceWrapper: Complete back/frontend content solution.
Harden your MODX site by
passwording your three main folders:
core, manager, connectors and renaming your
assets (thank me later!)
5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.