order by tag
Posted: 30 January 2008 04:58 PM   [ Ignore ]
Member
RankRankRank
Total Posts:  67
Joined  2006-01-09

After hours at this I seem to be missing something. searched the forums no ;uck.

I want the entries on a page limited by tag.
If napa is the tag, want only entries tagged napa to show.
Seems impossible, tried 400 things…

Tags are a custom field where they are added.
I get the tag name in url fine, but all entries are all tags not one.?

What do I add to weblog entries tag to limit entries shown on a page by the tag?
In the docs:
“Clicking on the tag brings up a list of all the entries the tag is used on “

Clicking on a tag shows all entries with all tags for me.

Profile
 
 
Posted: 31 January 2008 08:13 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

I apologize for the poor Documentation.

What you need to do is place the Tag:Entries loop in that template, NOT the Weblog:Entries loop.

Also, when linking to that page from your Tag:Tags part of the entry, the tags part in {path=’tags/tag’}{websafe_tag} is the Template name… and the tag part of the path is just a dynamic variable to trigger the Tag:Entries loop.

If your template is located at: template_group/tag_template, then you should link to it accordingly:

{path=’template_group/tag_template/tag’}{websafe_tag}

Let me know if this helps smile

 Signature 
Profile
 
 
Posted: 31 January 2008 08:48 AM   [ Ignore ]   [ # 2 ]
Member
RankRankRank
Total Posts:  67
Joined  2006-01-09

No need to apologise smile
Thanks for answering,

But

Also, when linking to that page from your Tag:Tags part of the entry, the tags part in {path=’tags/tag’}{websafe_tag} is the Template name… and the tag part of the path is just a dynamic variable to trigger the Tag:Entries loop.

I don’t get this pasrt.
My link in articles is:

{exp:tag:tags_from_field}
{tags}
{format}
<a href="{homepage}/usa/{websafe_tag}/">{tag}</a>{/format}
{
/exp:tag:tags_from_field}

How would I write this?

when clicking on the above tag I get /index.php?/usa/napa/ where napa is the tag...I’m using the index template as an example in this case

Profile
 
 
Posted: 31 January 2008 09:29 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

You’ll just need to add the word ”tag” in that url path:

{exp:tag:tags_from_field}
{tags}
{format}
<a href="{homepage}/usa/tag/{websafe_tag}/">{tag}</a>{/format}
{
/exp:tag:tags_from_field}

which will output:

/index.php?/usa/tag/napa/

 Signature 
Profile
 
 
Posted: 31 January 2008 09:35 AM   [ Ignore ]   [ # 4 ]
Member
RankRankRank
Total Posts:  67
Joined  2006-01-09

ok, have that and tested.

All entries on the page are all tags, not just napa…
?

The entries code is:

{exp:weblog:entries weblog="usa" orderby="date" sort="desc" limit="11" dynamic="on" disable="trackbacks"}

and:

{exp:tag:tags_from_field}
{tags}
{format}
<a href="{homepage}/usa/tag/{websafe_tag}/">{tag}</a>{/format}
{
/exp:tag:tags_from_field}
{
/exp:weblog:entries}

Profile
 
 
Posted: 31 January 2008 09:51 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

You CANNOT use the Weblog Entries code.

You MUST use the Tag:Entries code:

{exp:tag:entries weblog="usa" inclusive="yes" orderby="date" sort="desc" limit="11" dynamic="on" disable="trackbacks"} content {/exp:tag:entries}

 Signature 
Profile
 
 
Posted: 31 January 2008 10:08 AM   [ Ignore ]   [ # 6 ]
Member
RankRankRank
Total Posts:  67
Joined  2006-01-09

sorry,

if I use that instead of weblog entries in index template I get a blank page.

So used it in the liked to page index_tagged, replacing weblog:entries with above.

{exp:tag:tags_from_field}
{tags}
{format}
<a href="{homepage}/usa/index_tagged/tag/{websafe_tag}/">{tag}</a>{/format}
{
/exp:tag:tags_from_field}

Where there is one article tagged, I get a blank page.
where there is three tagged I get one article, not 3 tagged nappa.
index_tagged has:

{exp:tag:entries weblog="usa" inclusive="yes" orderby="date" sort="desc" limit="11" dynamic="on" disable="trackbacks"}
<h1>{title}</h1>
{/exp:tag:entries}

Profile
 
 
Posted: 31 January 2008 10:40 AM   [ Ignore ]   [ # 7 ]
Member
RankRankRank
Total Posts:  67
Joined  2006-01-09

I may have found the problem.
I am using a custom field to tag entries.
Going to modules tags, it says I have one entry tagged.
But I have four.
It also says I have one tag.
I have two.

To add a tag, I type in the new tag name in the entry tag field and save.

???

ok, when I go to Harvest, and update them, it works.

Does this mean that an author has to go into modules/tags/harvest, click on all the right settings and update for every single tag added to the custom field?

lol, me stupid!
I just seen the tag tab in entry edit.
This is where they are updated? or added, or does one have to use harvest?

I see if one types it into a custom field, AND types it into the fild in the tag tab, it works…

Thanks for being patient and your time.

Profile
 
 
Posted: 01 February 2008 07:17 AM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Haha, not a problem! smile

Yes, to ADD tags to an entry, just type away in the Tag Tab in the Publish page in the CP smile

 Signature 
Profile
 
 
Posted: 01 February 2008 08:03 AM   [ Ignore ]   [ # 9 ]
Member
RankRankRank
Total Posts:  67
Joined  2006-01-09

Thank you for all your help.
we now have it working perfectly, sorry to be so dense smile

Profile
 
 
Posted: 01 February 2008 08:09 AM   [ Ignore ]   [ # 10 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Good to know!

If you have any further questions, please let me know! wink

 Signature 
Profile