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
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
thx Remo,
Could you direct me to a post/feature to create a new page attribute?
thx in advance
Could you direct me to a post/feature to create a new page attribute?
thx in advance
goto the page types section of the dashboard.
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
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
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?
How do I display this page attribute now on the page?
you can get your page attribute by doing:
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.
$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.
OK Scott.
Thx for the attribute...
So the best way is the Attribute way (if i understand)
Thx for the attribute...
So the best way is the Attribute way (if i understand)
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
But I am not really sure how to code the dynamic link/search feature...
if you have some time, appreciate....
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> - "; }
But I am not really sure how to code the dynamic link/search feature...
if you have some time, appreciate....
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
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
tags are coming as a separate block that's part of a blogging add-on we're wrapping up
Cool Frz, any idea when this will be coming out?
;)
I don't think there's a quicker way for this!