Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 06:56:27 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
149672
Posts in
21101
Topics by
7538
Members
Latest Member:
ionline
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
New Module - Page Tags
Pages: [
1
]
Go Down
Author
Topic: New Module - Page Tags (Read 4138 times)
Ruud
Board member
WebsiteBaker Org e.V.
Offline
Posts: 2094
New Module - Page Tags
«
on:
September 24, 2008, 10: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
«
Last Edit: September 24, 2008, 11:12:13 PM by Ruud
»
Logged
Professional WebsiteBaker Developer
Argos
Moderator
Offline
Posts: 2084
Re: New Module - Page Tags
«
Reply #1 on:
September 24, 2008, 11:52:13 PM »
Nice one Ruud! I'll test it one of these days.
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
erpe
Offline
Posts: 2077
Re: New Module - Page Tags
«
Reply #2 on:
September 25, 2008, 12: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
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
vyni
Offline
Posts: 566
Re: New Module - Page Tags
«
Reply #3 on:
September 25, 2008, 09: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.
«
Last Edit: September 25, 2008, 09:17:28 AM by vyni
»
Logged
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.
bupaje
Offline
Posts: 519
Re: New Module - Page Tags
«
Reply #4 on:
September 26, 2008, 12:48:14 AM »
Very nice - thanks!
Logged
My Blog, My Site
sparkdigital
Offline
Posts: 345
Re: New Module - Page Tags
«
Reply #5 on:
September 26, 2008, 10:33:21 AM »
Thanks Ruud, brilliant as usual
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
Logged
Stefek
WebsiteBaker Org e.V.
Online
Posts: 4755
Re: New Module - Page Tags
«
Reply #6 on:
September 26, 2008, 10:53:23 AM »
Hoi Ruud!
Nice Idea!
Unfortunately I get some error in front- and backend.
F-End:
Notice
:
Undefined variable
:
MOD_TAGS in C
:\
xampp
\
htdocs
\
wb
-
27
\
modules
\
tags
\
view
.
php on line 61
B-End:
Notice
:
Undefined variable
:
opt in C
:\
xampp
\
htdocs
\
wb
-
27
\
modules
\
tags
\
modify
.
php on line 62
The module seems to work properly though.
Regards,
Stefek
Logged
"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Ruud
Board member
WebsiteBaker Org e.V.
Offline
Posts: 2094
Re: New Module - Page Tags
«
Reply #7 on:
September 26, 2008, 11:16:28 AM »
@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
Quote from: sparkdigital on September 26, 2008, 10:33:21 AM
Thanks Ruud, brilliant as usual
Thanks
Quote from: sparkdigital on September 26, 2008, 10:33:21 AM
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
Logged
Professional WebsiteBaker Developer
aldus
Offline
Posts: 1238
Re: New Module - Page Tags
«
Reply #8 on:
September 26, 2008, 12:13:25 PM »
Quote from: Stefek on September 26, 2008, 10:53:23 AM
Hoi Ruud!
Nice Idea!
Unfortunately I get some error in front- and backend.
F-End:
Notice
:
Undefined variable
:
MOD_TAGS in C
:\
xampp
\
htdocs
\
wb
-
27
\
modules
\
tags
\
view
.
php on line 61
B-End:
Notice
:
Undefined variable
:
opt 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:
<?php
$opt
=
""
;
// **!
$result
=
$database
->
query
(
"SELECT * FROM `"
.
TABLE_PREFIX
.
"mod_tags_names`"
);
if (
$result
&&
$result
->
numRows
() >
0
) {
while(
$tag
=
$result
->
fetchRow
()){
$this_tag
=
htmlspecialchars
(
$tag
[
'tag_name'
]);
$this_tag_id
=
$tag
[
'tag_id'
];
$value
=
in_array
(
$this_tag_id
,
$the_tags
) ?
" checked"
:
""
;
$opt
.=
"<input type='checkbox' name='tag_id_"
.
$this_tag_id
.
"'"
.
$value
.
">"
.
$this_tag
.
" "
;
// **!
}
}
?>
Regards
Aldus
Logged
bgg
Offline
Posts: 101
Re: New Module - Page Tags
«
Reply #9 on:
October 03, 2008, 07:21:09 AM »
Looks very mice and useful.
Can u pls reupload the final version here
Logged
Ruud
Board member
WebsiteBaker Org e.V.
Offline
Posts: 2094
Re: New Module - Page Tags
«
Reply #10 on:
October 03, 2008, 10:57:33 AM »
Quote from: bgg on October 03, 2008, 07:21:09 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
Logged
Professional WebsiteBaker Developer
bgg
Offline
Posts: 101
Re: New Module - Page Tags
«
Reply #11 on:
October 03, 2008, 11:03:49 AM »
Thanks Ruud
Logged
luckyfish
Offline
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
Logged
SlaY3R
Offline
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?
Logged
Ruud
Board member
WebsiteBaker Org e.V.
Offline
Posts: 2094
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
Logged
Professional WebsiteBaker Developer
crnogorac081
AddOn Development
Offline
Posts: 1680
Re: New Module - Page Tags
«
Reply #15 on:
July 17, 2011, 05: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
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Ruud
Board member
WebsiteBaker Org e.V.
Offline
Posts: 2094
Re: New Module - Page Tags
«
Reply #16 on:
July 17, 2011, 10: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.
Logged
Professional WebsiteBaker Developer
crnogorac081
AddOn Development
Offline
Posts: 1680
Re: New Module - Page Tags
«
Reply #17 on:
July 18, 2011, 09: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 ?
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Ruud
Board member
WebsiteBaker Org e.V.
Offline
Posts: 2094
Re: New Module - Page Tags
«
Reply #18 on:
July 18, 2011, 01: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.
Logged
Professional WebsiteBaker Developer
crnogorac081
AddOn Development
Offline
Posts: 1680
Re: New Module - Page Tags
«
Reply #19 on:
July 18, 2011, 03: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
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Ruud
Board member
WebsiteBaker Org e.V.
Offline
Posts: 2094
Re: New Module - Page Tags
«
Reply #20 on:
July 19, 2011, 11:50:46 AM »
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.
Logged
Professional WebsiteBaker Developer
crnogorac081
AddOn Development
Offline
Posts: 1680
Re: New Module - Page Tags
«
Reply #21 on:
July 19, 2011, 10: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 ?
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Ruud
Board member
WebsiteBaker Org e.V.
Offline
Posts: 2094
Re: New Module - Page Tags
«
Reply #22 on:
July 19, 2011, 10:12:54 PM »
Yep, that's the idea.
Of-course it makes more sense with multiple pages having the same group linked.
Logged
Professional WebsiteBaker Developer
crnogorac081
AddOn Development
Offline
Posts: 1680
Re: New Module - Page Tags
«
Reply #23 on:
July 20, 2011, 02: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
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...