Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Let getResources prefilter processed resources #2

Open
pepebe opened this issue Mar 15, 2014 · 3 comments
Open

Feature Request: Let getResources prefilter processed resources #2

pepebe opened this issue Mar 15, 2014 · 3 comments

Comments

@pepebe
Copy link

pepebe commented Mar 15, 2014

I think it would be a good idea to use getResources to filter the list of resources processed by archivist. This adds &tvFilters to the available options.

Example: Only display Posts belonging to the "Musings" category.

&tvFilers=`Category==Musings`

I have a functional proof of concept in my gists: https://gist.github.com/pepebe/991362dc0ff355b5ef69

If this concept is worth adding to the archivist package, I can do a pull request.

Regards,

pepebe

@jpdevries
Copy link

One question would be, should it use getResources only if it is installed, or include getResources as a subpackage?—
Sent from Mailbox for iPhone

On Sat, Mar 15, 2014 at 10:40 AM, pepebe [email protected] wrote:

I think it would be a good idea to use getResources to filter the list of resources processed by archivist. This adds &tvFilters to the available options.
I have a functional proof of concept in my gists: https://gist.github.com/pepebe/991362dc0ff355b5ef69
If this concept is worth adding to the archivist package, I can do a pull request.
Regards,

pepebe

Reply to this email directly or view it on GitHub:
#2

@pepebe
Copy link
Author

pepebe commented Mar 27, 2014

getResources is already a prerequisite for one of the sniipets included. I believe that tools like archivist should focus on the things they are supposed to do. archivist is fine with a list of ids provided by whatever tool one wants to use. How you get this list should not be important.

@pepebe
Copy link
Author

pepebe commented Mar 27, 2014

BTW: One thing that would be extremly useful would be the ability to work with dateTVs. This would give the opportunity to use archivist for event management with posts in the future.

Right now I (ab)use createdon to do this (i copy the content of a tv to this field on ondocformsave.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants