Define Tag for post

Permalink
Hi,
Also posted this on Block request.
I have implemented the Blog feature, explained in another thread(thx) but would like to add TAGS related to the post.
So, what I need is an extra field, where user can add tag for each post and be able to search or select post depending on related tags.

IS it something possible, anybody worked on this?

thx ina dvance

 
Remo replied on at Permalink Reply
Remo
create a new page attribute to save all the tags and use a little block to display them..

I don't think there's a quicker way for this!
simpled replied on at Permalink Reply
thx Remo,

Could you direct me to a post/feature to create a new page attribute?

thx in advance
frz replied on at Permalink Reply
frz
goto the page types section of the dashboard.
simpled replied on at Permalink Reply
Ok, I am working on this Tag Block.

At the moment, I managed to create a new block called Tag, add content as XX, XX, XX and display it on the dependent page (blog style).

I just need to make sure that each tag relate to the blog post, so I am thinking of savingf the page CiD in the Database and create a relation that way.

Trouble is, HOW DO I GET THE CiD number? or save this in a "friendly format" to be able to pull it easily after?

cheers
simpled replied on at Permalink Reply
Grr, Thx Frz, spent long time on that BLock and it was easy with the page attribute...

How do I display this page attribute now on the page?
ScottC replied on at Permalink Reply
ScottC
you can get your page attribute by doing:
$tags = $c->getCollectionAttribute('tags'); 
echo($tags);

wherever you would want your tags to exist.

I personally feel like you are going about this the wrong way, imagine searching a thousand pages, grabbing all the blocks, then block type, grabbing the content from each block, then searching that.

Instead of grabbing all collections of type blogpost, then searching for an attribute.
simpled replied on at Permalink Reply
OK Scott.
Thx for the attribute...

So the best way is the Attribute way (if i understand)
simpled replied on at Permalink Reply 1 Attachment
First, thx to you guys for pointing to the right direction.

I have created a Tag block (see attached) which is working fine.

I would like to perform a "search" or something similar when a tag is clicked.
What I need is to have all related Pages display for a common tag.

In my view page, I currently do
$str = $content;
$str = str_replace(" ", "", $str);
$strSplit = split(",", $str);
foreach ($strSplit as $value) {
echo "<a href=#>".$value."</a>&nbsp;-&nbsp;";
}


But I am not really sure how to code the dynamic link/search feature...

if you have some time, appreciate....
simpled replied on at Permalink Reply
5.3 was supposed to support tags for in post.
I don't see this feature or how to implement it properly.

What I am trying to achieve:
- Set new page attribute call tags, and add keyword for each post/page
- Be able to display these keywords under each post.
- Each keyword should be "linkable" and on click on these tags/keywords, a search should be made to display related post.

HELP PLEASE!

thx
frz replied on at Permalink Reply
frz
tags are coming as a separate block that's part of a blogging add-on we're wrapping up
simpled replied on at Permalink Reply
Cool Frz, any idea when this will be coming out?
frz replied on at Permalink Reply
frz
;)