Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-08-14 16:56:57

philbert25
Member
Registered: 2008-10-06
Posts: 12

old blog posts categorized by keywords

I am building a site for a Veterinarian. There is a blog section in it. I would like it to post the most recent blog post on the left, with the older posts sorted by keywords associated with the article off to the right. I have done a similar setup for a news site using another CMS, but to get the functionality and control I want I like using Textpattern. To show you what I have, and what I want, I am providing a link to the website I am working on, and the news blog with the categorization format I want. Any help or possibly pointing me in the right direction would be greatly appreciated.

Current Site: http://www.yoursivet.com/blog
One with categorization setup similar to what I want to do: http://news.jalc.edu/

*For Extra Credit, how do I link get the headline from the most recent blog post to dynamically link on my homepage. http://www.yoursivet.com/

Offline

#2 2009-08-14 17:53:31

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: old blog posts categorized by keywords

Hi philbert25

article_custom might be of help but in your example on http://news.jalc.edu/ there are no keyword links that I can see.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-08-14 21:16:31

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: old blog posts categorized by keywords

Do you need it to be keywords, or could you use something else, like categories or custom fields?

how do I link get the headline from the most recent blog post to dynamically link on my homepage. http://www.yoursivet.com/

In your article form:

<txp:link_to_home><txp:title /></txp:link_to_home>

Offline

#4 2009-08-14 23:03:47

philbert25
Member
Registered: 2008-10-06
Posts: 12

Re: old blog posts categorized by keywords

Sorry about the confusion. You have to click on the +/- next to the Categories on the right hand side.

Offline

#5 2009-08-14 23:08:26

philbert25
Member
Registered: 2008-10-06
Posts: 12

Re: old blog posts categorized by keywords

Thanks for the replies guys. I’ll look into them. As far as the extra credit goes, I’m not sure how that code would accomplish what I’m trying to do, but I’ll look into it. You can see what I’m trying to do by going to my home page and looking at the section on the right that says, “Most Recent Blog Post”. http://www.yoursivet.com/ Thanks again guys.

Offline

#6 2009-08-14 23:44:19

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: old blog posts categorized by keywords

Ah, I completely misunderstood, apologies! Try this:

<txp:article_custom limit="1" section="blog">
   <txp:permlink><txp:title /></txp:permlink>
</txp:article_custom>

Offline

#7 2009-08-15 01:57:22

philbert25
Member
Registered: 2008-10-06
Posts: 12

Re: old blog posts categorized by keywords

Thanks Els, it works like a charm at feeding that headline, now I need the destination of the link to display right. I’ll put that on my list of tasks, but you get full extra credit.

Offline

Board footer

Powered by FluxBB