Author Topic: New Module - Page Tags  (Read 12038 times)

Offline Ruud

  • Posts: 3610
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
New Module - Page Tags
« on: September 24, 2008, 11:56:37 PM »
In this thread Konrad (sparkdigital) was looking for a module for tagging and listing tagged pages.

I found this a good idea so I made a module that allows you to add one or more tags to a page, and optionally display in the frontend the list of tags combined with links to all other pages with those tags.

Install the module as an extra section on every page you want to be tagged and look in the frontend what happens.
Optionally you can use the module to create a list of all tags with their linked pages as an overview page.

Current version (v0.14) is still in alpha testing mode.
Since a next install might mean you need to uninstall first (and therefore remove all Page Tags sections manually), don't use it on a live server yet.

Any comments are welcome.

Ruud


[gelöscht durch Administrator]
« Last Edit: September 25, 2008, 12:12:13 AM by Ruud »

Offline Argos

  • Posts: 2542
  • Gender: Male
    • Argos Media
Re: New Module - Page Tags
« Reply #1 on: September 25, 2008, 12:52:13 AM »
Nice one Ruud! I'll test it one of these days.
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

erpe0812

  • Guest
Re: New Module - Page Tags
« Reply #2 on: September 25, 2008, 01:36:57 AM »
Hi Ruud,

nice module.

See a test page here:
http://www.rvb.bplaced.net/pages/player/video-gallery.php?lang=EN

I will open a new page at AMASP.

rgds

erpe

Offline vyni

  • Posts: 566
  • Gender: Male
Re: New Module - Page Tags
« Reply #3 on: September 25, 2008, 10:04:45 AM »
As usual,
Mr. Ruud is doing great!

For the german users I made the language-file ready.
Just copy this file to the folder languages in modules/tags and rename it to DE.php and You are done.


regards from Himberg, next to Vienna


Edit: I extended the file to german description aswell.

[gelöscht durch Administrator]
« Last Edit: September 25, 2008, 10:17:28 AM by vyni »
PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.

Offline bupaje

  • Posts: 570
    • http://www.stormvisions.com
Re: New Module - Page Tags
« Reply #4 on: September 26, 2008, 01:48:14 AM »
Very nice - thanks!
My Blog, My Site

Offline sparkdigital

  • Posts: 366
  • Once a baker, always a baker!
    • romantic hotels
Re: New Module - Page Tags
« Reply #5 on: September 26, 2008, 11:33:21 AM »
Thanks Ruud, brilliant as usual  8-)

Some input from my end:

  • Would it be possible to add more than one tag at once, using comma separated? That would save some time!
  • Would it be possible to have an amend / delete existing tags?
  • Would it be possible to build in a feature where it looks at parent / child relation and it would only list tagged child pages rather than all tagged pages? For instance, there would be 5 cottages with the tag 'cottages with an open fire' but only 3 of those are in The Lake District so when on the Lake District parent page I only want to display the 3 cottages that are child pages.

Hope this makes sense!

Thanks so much for your hard work!

Konrad

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: New Module - Page Tags
« Reply #6 on: September 26, 2008, 11:53:23 AM »
Hoi Ruud!
Nice Idea!

Unfortunately I get some error in front- and backend.

F-End:
NoticeUndefined variableMOD_TAGS in C:\xampp\htdocs\wb-27\modules\tags\view.php on line 61

B-End:
NoticeUndefined variableopt in C:\xampp\htdocs\wb-27\modules\tags\modify.php on line 62

The module seems to work properly though.

Regards,
Stefek
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline Ruud

  • Posts: 3610
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New Module - Page Tags
« Reply #7 on: September 26, 2008, 12:16:28 PM »
@Stefek, You are using the v0.11 version.
That one was a bit too buggy. (it hasn't been online that long)
Use the current version (v0.14), that should solve it and give some extra options.

@Sparkdigital
Thanks Ruud, brilliant as usual  8-)
Thanks ;-)

Some input from my end:

  • Would it be possible to add more than one tag at once, using comma separated? That would save some time!
  • Would it be possible to have an amend / delete existing tags?
  • Would it be possible to build in a feature where it looks at parent / child relation and it would only list tagged child pages rather than all tagged pages? For instance, there would be 5 cottages with the tag 'cottages with an open fire' but only 3 of those are in The Lake District so when on the Lake District parent page I only want to display the 3 cottages that are child pages.

It makes sense..
I will put it on the whish-list for the next version.

Ruud

aldus

  • Guest
Re: New Module - Page Tags
« Reply #8 on: September 26, 2008, 01:13:25 PM »
Hoi Ruud!
Nice Idea!

Unfortunately I get some error in front- and backend.

F-End:
NoticeUndefined variableMOD_TAGS in C:\xampp\htdocs\wb-27\modules\tags\view.php on line 61

B-End:
NoticeUndefined variableopt in C:\xampp\htdocs\wb-27\modules\tags\modify.php on line 62

The module seems to work properly though.

Regards,
Stefek
As for the line 62 Warning in "modify.php" the var "$opt" isn't declared before the ".=" , so you
have to place a single "$opt = '';" befor the "while"-loop. e.g.
Code:
Only registered users can see contents. Please click here to Register or Login.
Regards
Aldus

Offline bgg

  • Posts: 103
Re: New Module - Page Tags
« Reply #9 on: October 03, 2008, 08:21:09 AM »
Looks very mice and useful.

Can u pls reupload the final version here

Offline Ruud

  • Posts: 3610
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New Module - Page Tags
« Reply #10 on: October 03, 2008, 11:57:33 AM »
Looks very mice and useful.

Can u pls reupload the final version here

The current version is linked in the first message of this thread.
There will be a new version, with lots of improvements, but that might still take a few weeks before it is ready for publication.
When it is ready it will be put in the same first post of this thread. (just keep the notification email on this thread active to get a warning whenever something changes)

Ruud

Offline bgg

  • Posts: 103
Re: New Module - Page Tags
« Reply #11 on: October 03, 2008, 12:03:49 PM »
Thanks Ruud :)

Offline luckyfish

  • Posts: 3
Re: New Module - Page Tags
« Reply #12 on: February 01, 2009, 05:16:04 AM »
Thanks for the module.

Question: Instead of revealing a list of links, could each tag could open a new page that displays these links? (similar to the way Categories function within the News template)

This is my first post within the community - Hopefully I don't come off as a stupid designer.

matt

Offline SlaY3R

  • Posts: 18
Re: New Module - Page Tags
« Reply #13 on: March 21, 2009, 09:15:22 AM »
Hi guys,

I'm trying to add this little script on my webpage. but got 2 questions:

1. How can i add the menu inside my template (instead of only 1 page)?
2. And how can i add tags to existing pages?

Offline Ruud

  • Posts: 3610
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New Module - Page Tags
« Reply #14 on: March 21, 2009, 12:07:30 PM »
Hi

Both questions will have the same answer.

Every page where you add the tags module will display links to other pages with the same tags. (unless you tell it not to show)
Just add an extra "Tags" section to every page and activate the tags. (Help on sections here)

You could also try the Droplet MoreLikeThis.
It uses the keyword list in every page to build a list of links that have one or more similar keywords.
Read more about Droplets here

Ruud


Offline crnogorac081

  • Posts: 1872
  • Gender: Male
Re: New Module - Page Tags
« Reply #15 on: July 17, 2011, 06:56:54 PM »
Its a bit outdated but I am considering to use it.. Im using v0.17

What are the groups for ? You can create group or tag, then check group or tag in be, but what are the groups for.. There is no relation between groups and tags and when you check the groups in be I dont see anything happens ??

could you please explain me this ?
Ivan
no bb in signature

Offline Ruud

  • Posts: 3610
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New Module - Page Tags
« Reply #16 on: July 17, 2011, 11:08:41 PM »
Not sure what you mean by the groups and tags.
You can create tags, link them at a page. these pages will be grouped by a tagname in the page output.
That is the best explanation I can come up with at this time.  :-)

Offline crnogorac081

  • Posts: 1872
  • Gender: Male
Re: New Module - Page Tags
« Reply #17 on: July 18, 2011, 10:06:29 AM »
Yes I know about tags, but I see that you can also create groups and ckeck/uncheck them in BE like tags. But when you see that page in frontend, you see only tags list and not groups, so I am wondering what are groups for ?
no bb in signature

Offline Ruud

  • Posts: 3610
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New Module - Page Tags
« Reply #18 on: July 18, 2011, 02:49:16 PM »
I think that what you see as categories are tags that were created before.
You can link multiple tags to a single page that way.
All tags will become the "categories" in the frontend with all pages listed that will have that tag/category enabled.

Offline crnogorac081

  • Posts: 1872
  • Gender: Male
Re: New Module - Page Tags
« Reply #19 on: July 18, 2011, 04:02:22 PM »
Maybe this is lame, but I still dont understand :)

could you please help me understand on example.. For example at all pages I have checked in BE:

groups: Group1, Group2

tags: car, house, hotel, ball

now In FE, I see only list like this:
car (2)
house (5)
hotel (1)
ball (10)

but I dont see anywhere Group1 and Group2 appearing ?

So I dont understand point of groups.. Maybe you forgot something when you develop this ?

cheers
Ivan
no bb in signature

Offline Ruud

  • Posts: 3610
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New Module - Page Tags
« Reply #20 on: July 19, 2011, 12:50:46 PM »
Ok, I had to install the mod myself again to find out :-)

The idea is that tags are listed only for pages that have the same group (as on the current page) activated.
So that way you can have the same tags in different groups.

Switching on "All Groups" is creating a sort of menu, It iwill list just about everything.
Selecting only one or more groups will create a "More like this.." type of menu.

I agree, it is a bit hard to explain/understand, but by that it is a very powerful method of creating browsing/clicking routes through a website.


Offline crnogorac081

  • Posts: 1872
  • Gender: Male
Re: New Module - Page Tags
« Reply #21 on: July 19, 2011, 11:09:57 PM »
si if I have 3 pages and checked tags amd groups:

Page1 tags: football, basketball, golf Groups: Group1
 
Page2 tags: football, basketball, golf Groups: Group1

Page3 tags: football, basketball, golf Groups: Group2

So if I am on Page1 it will show

football (2) - {Page 1 and Page 2}
basketball (2) - {Page 1 and Page 2}
golf (2) - {Page 1 and Page 2}

And it will not show page 3 because it is not in same group right ?
no bb in signature

Offline Ruud

  • Posts: 3610
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New Module - Page Tags
« Reply #22 on: July 19, 2011, 11:12:54 PM »
Yep, that's the idea.

Of-course it makes more sense with multiple pages having the same group linked.

Offline crnogorac081

  • Posts: 1872
  • Gender: Male
Re: New Module - Page Tags
« Reply #23 on: July 20, 2011, 03:59:46 PM »
Tnx Ruud, I tried example and it is great :) my intention is to use your code on news module to create news tags :)

all best,
Ivan
no bb in signature