Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Archive
SilverStripe Forums » Archive » Need to Compare Contents of Table with Existing Blog Entry Tags
Our old forums are still available as a read-only archive.
|
Page:
1
|
Go to End | |
| Author | Topic: Need to Compare Contents of Table with Existing Blog Entry Tags | 169 Views |
-
Need to Compare Contents of Table with Existing Blog Entry Tags

28 August 2008 at 7:20am
Hi,
I have a challenge in my Blog module that I'd really like some code help on.
For my blog, I have created a Categories table in the database which contains the Category Name and the Tag which corresponds to that Category. These Tags are unique (e.g., Category Name "Media & PR" would correspond to the Tag "mediaandpr") so that they are not mixed up with regular tags entered by authors for individual posts.
Now, in my Tag Cloud (and also in the posts themselves), I would like to EXCLUDE these Tags from the display, as they are misleading.
So, how can I COMPARE the Tags in this DB table with the Tags in the PHP Tags collection? I obviously need some sort of nested loop, but this isn't going to work in the template. I want to display only the Tags which do NOT appear in this table ("Categories").
Any help anyone could offer on this would be greatly apperciated.
Thanks,
Garrett
| 169 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: xterso, Talby, Webdoc
Welcome to our latest member: AlfonsoGrondo

