3scale/issues-test — Issue #350: Publish blog posts filtered based on tags
Author: HakubJozak
Created: 2012-02-10 17:49:01+00:00
State: open
Labels: feature

Note: in the email background ignore the references to the security issue, since there is a separate pivotal task for that. Tech team to decide if that is a dependency or not.

This is to support LBL/HES/EIQ and is required 30th June, in order to keep buying time on the project with them.

---------------------------------------

> On Tue, Jun 21, 2011 at 5:29 PM, Mark Cheshire wrote:
Jakub,
Thanks for checking into this.
Are either of the two methods Aurelian mentions available as a template
variable? Or is there any other way that I can access all the blog post
contents and query the tag setting for each post?
Unfortunately I cannot use the code from Genability's dynamic portlet,
because that relies on a RSS feed as a data source to parse. If we had
an
RSS feed that would another (more indirect route) to achieve the same
end.
We can chat about it tomorrow if that helps.
Best Regards,
Mark Cheshire

On Tue, Jun 21, 2011 at 5:02 PM, Jakub Hozak wrote:
>
> Hi Mark,
>
> I am bit confused here - are you asking me about the actual code
> invocation? Arbitrary code is definitely invocable from the templates.
> If you need some method that the template variables don't expose it is
> definitely not impossible but it is by far a feature request and not a
> support one. The only thing I can do is to make a Pivotal for it but
> please talk to Josep and Steve to put it on schedule.
>
> Support
>
> On Tue, Jun 21, 2011 at 4:38 PM, Mark Cheshire wrote:
Hi,
For HES we have two services that share one blog. The admins of the
two
services should tag each of their blog posts with "hes" or "eiq".
Then
we
need to display two alternative pages for the blog results. One only
should
posts tagged with "hes" and the other only those posts tagged "eiq".
In the previous email Aurelian found some methods that might help.
However
I have tried using both dynamic portlets as well as blog posts
portlets
and
I cannot find the instance variable name which contains all the posts
and on
which I can use these methods.
It would be great if someone can help resolve this by end of day Wed.
Thanks.
Best Regards,
Mark Cheshire

---------- Forwarded message ----------
From: Aurelian Oancea
Date: Fri, Jun 17, 2011 at 5:25 PM
Subject: Re: blog post portlet
To: Mark Cheshire

aha, I see

some options:

* BlogPost.tagged_with "id1" -> creates a list of blog post objects
that
have id1 as tag (probably that's what you'll need)

* starting from a blog_post: @blog_post.tags.find_by_name "id1" #=>
check
if the blog post has a tag with a name id1, returns nil if it doesn't
have
one or the tag object if it has

Anyway, I think is better to pass this to our support team

- --
Aurelian

On Jun 17, 2011, at 4:57 PM, Mark Cheshire wrote:

> It does not actually help because the 3scale blog does not create
> the
> rss
> feed - genability use wordpress.
>
> What I am trying:
> 1) Providers tag each post they create in the 3scale blog with "id1"
> or
> "id2"
> 2) Buyers view two different News/Blog pages. One filters only
> posts
> with
> tag "id1" and the other only with "id2".
>
> I am stuck with finding what is the attribute to query for the tag
> in
> the
> @blog_posts variable.
>
> Best Regards,
> Mark Cheshire
>

Tasks

https://www.pivotaltracker.com/story/show/14875611